#!/usr/bin/make -f export DH_VERBOSE=1 export DH_NO_ORIG_LIBS=1 export FC_DEFAULT=gfortran export FC_OPTIONAL=flang lfortran # The magic debhelper rule %: dh $@ --buildsystem fortran --with fortran export DEB_BUILD_PROFILES=stage1 # Need a bootstrap version for fpm full build ifneq ($(filter stage1,$(DEB_BUILD_PROFILES)),) execute_before_dh_auto_clean: - mv fpm.toml.orig fpm.toml - mv meson.build.orig meson.build - mv config/meson.build.orig config/meson.build execute_before_dh_auto_configure: cp fpm.toml fpm.toml.orig cp meson.build meson.build.orig cp config/meson.build config/meson.build.orig cp debian/fpm.toml.bootstrap fpm.toml cp debian/meson.build.bootstrap meson.build cp debian/config.meson.build.bootstrap config/meson.build endif execute_after_dh_clean: rm -rf mbuild subprojects/test-drive subprojects/toml-f execute_before_dh_install: # to create pkgconfig file meson setup mbuild --prefix=$(CURDIR)/debian/tmp/usr meson install -C mbuild