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 34 35 36 37 38
|
#!/usr/bin/make -f
export DEB_BUILD_MAINT_OPTIONS=hardening=+all
CXXFLAGS += -DBUILD_DATE="\"$(shell LC_ALL=C date -u --date="`dpkg-parsechangelog -SDate`" +'%b %e %Y')\""
VERSION=$(shell dpkg-parsechangelog -SVersion)
%:
dh $@ --parallel -Scmake
override_dh_auto_configure:
dh_auto_configure -- \
-DDEB_BUILD_MULTIARCH=`dpkg-architecture -qDEB_BUILD_MULTIARCH` \
-DFFTW=YES \
-DPYTHON=YES \
-DPYTHON_MODULE=YES \
-DWXWIDGETS=YES \
-DGRIB=YES \
-DQHULL=YES \
-DUDUNITS=YES \
-DPSLIB=YES
override_dh_auto_test:
( cd obj*/testsuite \
&& cp ../../testsuite/formats.idl . \
&& $(CXX) -o libtest_ce.so ../../testsuite/libtest_ce.cpp -shared -fPIC \
&& $(CC) -o launchtest ../../testsuite/launchtest.c )
LD_LIBRARY_PATH="../src" xvfb-run dh_auto_test --no-parallel -Scmake || true
override_dh_compress:
dh_compress -X.pro
# The epoch in front of python-gdl's version number is needed since
# Debian Squeeze had a python-gdl binary package with version 2.25.3-7
# built from the gnome-python-extras source package.
override_dh_gencontrol:
dh_gencontrol -ppython-gdl -- -v1:$(VERSION)
dh_gencontrol --remaining
|