Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
2
3 export DEB_BUILD_MAINT_OPTIONSscip-debian debian htslib 1.22.1+ds2-1 htslib/rules/DEB_BUILD_MAINT_OPTIONS. = hardening=+all
4 export DH_VERBOSEscip-debian debian htslib 1.22.1+ds2-1 htslib/rules/DH_VERBOSE.=1
5
6 include /usr/share/dpkg/default.mk
7
8 ifneq (,$(filterscip-debian debian htslib 1.22.1+ds2-1 htslib/rules/filter. $(DEB_HOST_ARCHscip-debian debian htslib 1.22.1+ds2-1 htslib/rules/DEB_HOST_ARCH.),i386 kfreebsd-i386 hurd-i386))
9 DEB_CFLAGS_MAINT_APPEND=-msse -mfpmath=sse
10 endif
11 DEB_CFLAGS_MAINT_APPENDscip-debian debian htslib 1.22.1+ds2-1 htslib/rules/DEB_CFLAGS_MAINT_APPEND.+=-ffat-lto-objects
12 DEB_LDFLAGS_MAINT_APPENDscip-debian debian htslib 1.22.1+ds2-1 htslib/rules/DEB_LDFLAGS_MAINT_APPEND.+=-Wl,-flto -fvisibility=hidden -ffat-lto-objects
13
14 export DEB_CFLAGS_MAINT_APPENDscip-debian debian htslib 1.22.1+ds2-1 htslib/rules/DEB_CFLAGS_MAINT_APPEND.
15 export DEB_LDFLAGS_MAINT_APPENDscip-debian debian htslib 1.22.1+ds2-1 htslib/rules/DEB_LDFLAGS_MAINT_APPEND.
16
17 # Prune +,ds etc from version
18 UPSTREAM_VERSIONscip-debian debian htslib 1.22.1+ds2-1 htslib/rules/UPSTREAM_VERSION. := $(shellscip-debian debian htslib 1.22.1+ds2-1 htslib/rules/shell. echo $(DEB_VERSION_UPSTREAMscip-debian debian htslib 1.22.1+ds2-1 htslib/rules/DEB_VERSION_UPSTREAM.) | sed 's/+.*//')
19
20 libdirscip-debian debian htslib 1.22.1+ds2-1 htslib/rules/libdir. = /usr/lib/$(DEB_HOST_MULTIARCHscip-debian debian htslib 1.22.1+ds2-1 htslib/rules/DEB_HOST_MULTIARCH.)
21 plugindirscip-debian debian htslib 1.22.1+ds2-1 htslib/rules/plugindir. = $(libdirscip-debian debian htslib 1.22.1+ds2-1 htslib/rules/libdir.)/htslib
22
23 %scip-debian debian htslib 1.22.1+ds2-1 htslib/rules/`%`().:
24 dh $@
25
26 helloscip-debian debian htslib 1.22.1+ds2-1 htslib/rules/hello().:
27 echo "Upstream version: $(UPSTREAM_VERSIONscip-debian debian htslib 1.22.1+ds2-1 htslib/rules/UPSTREAM_VERSION.)"
28
29 override_dh_auto_configurescip-debian debian htslib 1.22.1+ds2-1 htslib/rules/override_dh_auto_configure().:
30 ifneq (,$(filterscip-debian debian htslib 1.22.1+ds2-1 htslib/rules/filter. $(DEB_HOST_ARCHscip-debian debian htslib 1.22.1+ds2-1 htslib/rules/DEB_HOST_ARCH.),i386 kfreebsd-i386 hurd-i386))
31 cp htslib.pc.in debian/
32 cp debian/i386-htslib.pc.in ./htslib.pc.in
33 endif
34 # create clean copy of test dir
35 cp -a test test_backup
36 # to help with cross building, otherwise MMAP might get turned off
37 export ac_cv_func_mmap_fixed_mapped=yes \
38 && autoconf \
39 && dh_auto_configurescip-debian debian debhelper . dh_auto_configure(). -- \
40 --enable-libcurl \
41 --enable-gcs \
42 --enable-s3 \
43 --enable-plugins \
44 --with-plugin-dir='$(libdirscip-debian debian htslib 1.22.1+ds2-1 htslib/rules/libdir.)/htslib' \
45 --with-external-htscodecs \
46 --with-plugin-path='/usr/local/lib/htslib:/usr/local/libexec/htslib:$(plugindirscip-debian debian htslib 1.22.1+ds2-1 htslib/rules/plugindir.)'
47
48 override_dh_auto_build-archscip-debian debian htslib 1.22.1+ds2-1 htslib/rules/override_dh_auto_build-arch().:
49 dh_auto_buildscip-debian debian debhelper . dh_auto_build(). -- \
50 CFLAGS="$$(dpkg-buildflags --get CFLAGS)" \
51 CPPFLAGS="-I. -DSAMTOOLS=1 $$(dpkg-buildflags --get CPPFLAGS)" \
52 PACKAGE_VERSION="$(UPSTREAM_VERSIONscip-debian debian htslib 1.22.1+ds2-1 htslib/rules/UPSTREAM_VERSION.)" \
53 libdir=$(libdirscip-debian debian htslib 1.22.1+ds2-1 htslib/rules/libdir.)
54 # re-try later LDLIBS=-lhts \
55
56 override_dh_auto_build-indepscip-debian debian htslib 1.22.1+ds2-1 htslib/rules/override_dh_auto_build-indep().:
57
58 override_dh_auto_install-archscip-debian debian htslib 1.22.1+ds2-1 htslib/rules/override_dh_auto_install-arch().:
59 for binary in sam test-regidx hts_endian test-bcf-sr test_bgzf ; do \
60 rm $(CURDIRscip-debian debian htslib 1.22.1+ds2-1 htslib/rules/CURDIR.)/test/$${binary} ; \
61 done
62 dh_auto_installscip-debian debian debhelper . dh_auto_install(). -- prefix=/usr \
63 CFLAGS="$$(dpkg-buildflags --get CFLAGS)" \
64 CPPFLAGS="-I. -DSAMTOOLS=1 $$(dpkg-buildflags --get CPPFLAGS)" \
65 PACKAGE_VERSION="$(UPSTREAM_VERSIONscip-debian debian htslib 1.22.1+ds2-1 htslib/rules/UPSTREAM_VERSION.)" \
66 libdir=$(libdirscip-debian debian htslib 1.22.1+ds2-1 htslib/rules/libdir.)
67 # restore clean copy of test dir before dh_installscip-debian debian debhelper . dh_install(). is run
68 # This should not be done earlier since dh_auto_installscip-debian debian debhelper . dh_auto_install(). contains some unconditional removals
69 $(RMscip-debian debian htslib 1.22.1+ds2-1 htslib/rules/RM.) -r test
70 mv test_backup test
71
72 override_dh_stripscip-debian debian htslib 1.22.1+ds2-1 htslib/rules/override_dh_strip().:
73 # This is apparently important for the interpretation by ldc2 in sambamba
74 dh_stripscip-debian debian debhelper . dh_strip(). -Xlibhts.a
75
76 override_dh_auto_install-indepscip-debian debian htslib 1.22.1+ds2-1 htslib/rules/override_dh_auto_install-indep().:
77
78 override_dh_auto_test-archscip-debian debian htslib 1.22.1+ds2-1 htslib/rules/override_dh_auto_test-arch().:
79 ifeq (,$(filterscip-debian debian htslib 1.22.1+ds2-1 htslib/rules/filter. nocheck,$(DEB_BUILD_OPTIONSscip-debian debian htslib 1.22.1+ds2-1 htslib/rules/DEB_BUILD_OPTIONS.)))
80 dh_auto_test -- \
81 CFLAGS="$$(dpkg-buildflags --get CFLAGS)" \
82 CPPFLAGS="-I. -DSAMTOOLS=1 $$(dpkg-buildflags --get CPPFLAGS)" \
83 PACKAGE_VERSION="$(UPSTREAM_VERSION)" \
84 libdir=$(libdir) \
85 || \
86 if find . -name "FAIL*" > /dev/null ; then \
87 for file in $$(find . -name "FAIL*"); do echo $${file}; cat $${file}; done && false ; \
88 fi
89 endif
90
91 override_dh_auto_test-indepscip-debian debian htslib 1.22.1+ds2-1 htslib/rules/override_dh_auto_test-indep().:
92 ifeq (,$(filterscip-debian debian htslib 1.22.1+ds2-1 htslib/rules/filter. nocheck,$(DEB_BUILD_OPTIONSscip-debian debian htslib 1.22.1+ds2-1 htslib/rules/DEB_BUILD_OPTIONS.)))
93 echo "Suppress test for Architecture independant builds."
94 endif
95
96 execute_after_dh_install-indepscip-debian debian htslib 1.22.1+ds2-1 htslib/rules/execute_after_dh_install-indep().:
97 sed -i 's#\.\./\.\./htslib/#htslib/#' `grep -Rl '../../htslib/' debian/htslib-test/*`
98
99 execute_after_dh_installdocsscip-debian debian htslib 1.22.1+ds2-1 htslib/rules/execute_after_dh_installdocs().:
100 # Fix Perl interpreter path
101 for pl in `grep -Rl '#!/usr/bin/env[[:space:]]\+perl' debian/*/usr/*` ; do \
102 sed -i '1s?^#!/usr/bin/env[[:space:]]\+perl?#!/usr/bin/perl?' $${pl} ; \
103 done
104
105 override_dh_installchangelogsscip-debian debian htslib 1.22.1+ds2-1 htslib/rules/override_dh_installchangelogs().:
106 dh_installchangelogsscip-debian debian debhelper . dh_installchangelogs(). NEWS
107
108 execute_before_dh_missingscip-debian debian htslib 1.22.1+ds2-1 htslib/rules/execute_before_dh_missing().:
109 # FIXME: No idea why these files are remaining in debian/tmp
110 rm -rf debian/tmp/usr/bin debian/tmp/usr/share/man
111
112 execute_after_dh_fixpermsscip-debian debian htslib 1.22.1+ds2-1 htslib/rules/execute_after_dh_fixperms().:
113 find debian -name simple_test_driver.sh -exec chmod +x \{\} \;
114
115 execute_before_dh_auto_cleanscip-debian debian htslib 1.22.1+ds2-1 htslib/rules/execute_before_dh_auto_clean().:
116 ifneq (,$(filterscip-debian debian htslib 1.22.1+ds2-1 htslib/rules/filter. $(DEB_HOST_ARCHscip-debian debian htslib 1.22.1+ds2-1 htslib/rules/DEB_HOST_ARCH.),i386 kfreebsd-i386 hurd-i386))
117 ifneq (,$(wildcardscip-debian debian htslib 1.22.1+ds2-1 htslib/rules/wildcard. debian/htslib.pc.in))
118 cp debian/htslib.pc.in ./
119 endif
120 endif
121
122 execute_after_dh_auto_cleanscip-debian debian htslib 1.22.1+ds2-1 htslib/rules/execute_after_dh_auto_clean().:
123 rm -rf test_backup/