1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
#!/usr/bin/make -f
export DH_VERBOSE=1
include /usr/share/dpkg/architecture.mk
FMODDIR:=$(shell dh_fortran get_fmoddir)
FLIBDIR:=$(shell dh_fortran get_flibdir)
PKGFILE=debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/test-drive.pc
# The magic debhelper rule
%:
dh $@ --with fortran
override_dh_auto_clean:
rm -rf build
override_dh_auto_configure:
meson setup build --prefix=$(CURDIR)/debian/tmp/usr
override_dh_auto_build:
meson compile -C build
override_dh_auto_test:
@echo Bypass tests this build. require downloads
override_dh_auto_install:
meson install -C build
sed -i -e 's%@FMODDIR@%${FMODDIR}%' $(PKGFILE)
sed -i -e 's%@FLIBDIR@%${FLIBDIR}%' $(PKGFILE)
sed -i -e 's%{libdir}%{flibdir}%' $(PKGFILE)
sed -i -e 's%{includedir}%{fmoddir}%g' $(PKGFILE)
|