debian/rules
raw| 1 | #!/usr/bin/make -f |
| 2 | |
| 3 | export DH_VERBOSE=1 |
| 4 | |
| 5 | export FC_DEFAULT=gfortran |
| 6 | export FC_OPTIONAL=flang-21 flang-22 lfortran |
| 7 | |
| 8 | |
| 9 | # The magic debhelper rule |
| 10 | %: |
| 11 | dh $@ --buildsystem fortran --with fortran |
| 12 | |
| 13 | |
| 14 | execute_after_dh_clean: |
| 15 | rm -rf mbuild |
| 16 | |
| 17 | execute_before_dh_install: |
| 18 | # to create pkgconfig file |
| 19 | meson setup mbuild --prefix=$(CURDIR)/debian/tmp/usr |
| 20 | meson install -C mbuild |
| 21 | |
| 22 | execute_after_dh_fixperms: |
| 23 | chrpath -d debian/libfortran-testdrive-0/usr/lib/*/* |