| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
# export DH_VERBOSE=1 |
| 4 |
|
| 5 |
export FC_DEFAULT=gfortran |
| 6 |
export FC_OPTIONAL=flang-22 lfortran |
| 7 |
|
| 8 |
# Necessary to build shared libraries |
| 9 |
export DEB_LDFLAGS_MAINT_APPEND=-fPIC |
| 10 |
|
| 11 |
# Need a bootstrap version for fpm full build |
| 12 |
ifneq ($(filter stage1,$(DEB_BUILD_PROFILES)),) |
| 13 |
execute_before_dh_auto_clean: |
| 14 |
- mv fpm.toml.orig fpm.toml |
| 15 |
|
| 16 |
execute_before_dh_auto_configure: |
| 17 |
cp fpm.toml fpm.toml.orig |
| 18 |
cp debian/fpm.toml.bootstrap fpm.toml |
| 19 |
endif |
| 20 |
|
| 21 |
# The magic debhelper rule |
| 22 |
%: |
| 23 |
dh $@ --with fortran --buildsystem=fortran |
| 24 |
|
| 25 |
execute_after_dh_fixperms: |
| 26 |
chrpath -d debian/libfortran-regex-0d/usr/lib/*/* |