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
|
#!/usr/bin/make -f
# DH_VERBOSE := 1
include /usr/share/dpkg/default.mk
include /usr/share/dpkg/architecture.mk
export CPATH := /usr/include/hdf5/serial
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
CMAKE_EXTRA_FLAGS += -DARMA_USE_HDF5=1
override_dh_auto_build:
dh_auto_build -- LDFLAGS+=-L/usr/lib/$(DEB_HOST_MULTIARCH)/hdf5/serial
override_dh_auto_install:
dh_auto_install -- PREFIX=$(CURDIR)/debian/$(DEB_SOURCE)/usr
for pl in scripts/*.pl ; do \
plbase=`basename $${pl} .pl` ; \
sed "s+Usage: ./$${plbase}.pl+Usage: $${plbase}+" $${pl} > $(CURDIR)/debian/$(DEB_SOURCE)/usr/bin/$${plbase} ; \
done
# Fix broken usage hint:
sed -i "s+Usage: ./hits_to_matrix.pl+Usage: reformat_output+" $(CURDIR)/debian/$(DEB_SOURCE)/usr/bin/reformat_output
%:
dh $@
override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
if dh_auto_test ; then echo Test passed ; else echo '****************************** TEST FAILED. Please contact upstream *******************************' ; fi
endif
override_dh_fixperms:
dh_fixperms
find debian -name Makefile -exec chmod -x \{\} \;
find debian -name "*.fa" -exec chmod -x \{\} \;
|