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 39 40 41 42 43 44 45 46 47 48 49 50 51 52
|
#!/usr/bin/make -f
# debian/rules for murasaki
# Copyright 2015 Andreas Tille
# GPL
include /usr/share/dpkg/default.mk
DEBMEDBIN := debian/$(DEB_SOURCE)-common/usr/lib/debian-med/bin
MANDIR := debian/$(DEB_SOURCE)/usr/share/man/man1
CMANDIR := debian/$(DEB_SOURCE)-common/usr/share/man/man1
MMANDIR := debian/$(DEB_SOURCE)-mpi/usr/share/man/man1
# export DEB_BUILD_MAINT_OPTIONS = hardening=+all
# leads to linking failure:
# /usr/bin/ld: murasaki.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow
%:
dh $@
override_dh_auto_build:
dh_auto_build -- USE_MPI=YES
for bin in geneparse mbfa murasaki cgr-* testeco align-* ; do \
mv $${bin} $${bin}-mpi ; \
done
make clean
dh_auto_build -- USE_MPI=NO
override_dh_installman-indep:
dh_installman -i
# create manpages for PL files
mkdir -p $(CMANDIR)
for pscript in $(DEBMEDBIN)/* ; do \
pod2man $${pscript} > $(CMANDIR)/`basename $${pscript}`.1 ; \
done
find $(CMANDIR) -empty -delete
override_dh_installman-arch:
dh_installman -a
mkdir -p $(MMANDIR)
for man in $(MANDIR)/*.1 ; do \
cp -a $${man} $(MMANDIR)/`basename $${man} .1`-mpi.1 ; \
done
override_dh_install-arch:
dh_install -a
# using wildcards in install files is practical but it duplicates some files
find debian/$(DEB_SOURCE)/usr -name "*-mpi" -delete
override_dh_fixperms-indep:
dh_fixperms -i
chmod a+x debian/$(DEB_SOURCE)-common/usr/share/perl5/murasaki/config.pl
|