Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
2
3 ifeq (,$(filterscip-debian debian cvs 2:1.12.13+real-31 cvs/rules/filter. terse,${DEB_BUILD_OPTIONSscip-debian debian cvs 2:1.12.13+real-31 cvs/rules/DEB_BUILD_OPTIONS.}))
4 export DH_VERBOSEscip-debian debian cvs 2:1.12.13+real-31 cvs/rules/DH_VERBOSE.=1
5 export Vscip-debian debian cvs 2:1.12.13+real-31 cvs/rules/V.=1
6 export VERBOSEscip-debian debian cvs 2:1.12.13+real-31 cvs/rules/VERBOSE.=1
7 endif
8
9 LC_ALLscip-debian debian cvs 2:1.12.13+real-31 cvs/rules/LC_ALL.:=C
10 export LC_ALLscip-debian debian cvs 2:1.12.13+real-31 cvs/rules/LC_ALL.
11
12 shellescapescip-debian debian cvs 2:1.12.13+real-31 cvs/rules/shellescape.='$(subst ','\'',$(1scip-debian debian cvs 2:1.12.13+real-31 cvs/rules/1.))'
13 shellexportscip-debian debian cvs 2:1.12.13+real-31 cvs/rules/shellexport.=$(1scip-debian debian cvs 2:1.12.13+real-31 cvs/rules/1.)=$(callscip-debian debian cvs 2:1.12.13+real-31 cvs/rules/call. shellescape,${$(1scip-debian debian cvs 2:1.12.13+real-31 cvs/rules/1.)})
14
15 include /usr/share/dpkg/architecture.mk
16 DPKG_EXPORT_BUILDTOOLSscip-debian debian cvs 2:1.12.13+real-31 cvs/rules/DPKG_EXPORT_BUILDTOOLS.:=1
17 include /usr/share/dpkg/buildtools.mk
18
19 OUR_CPPFLAGSscip-debian debian cvs 2:1.12.13+real-31 cvs/rules/OUR_CPPFLAGS.:=
20 OUR_CFLAGSscip-debian debian cvs 2:1.12.13+real-31 cvs/rules/OUR_CFLAGS.:=
21 OUR_LDFLAGSscip-debian debian cvs 2:1.12.13+real-31 cvs/rules/OUR_LDFLAGS.:=
22
23 ifneq (,$(filterscip-debian debian cvs 2:1.12.13+real-31 cvs/rules/filter. debug,${DEB_BUILD_OPTIONSscip-debian debian cvs 2:1.12.13+real-31 cvs/rules/DEB_BUILD_OPTIONS.}))
24 OUR_CFLAGSscip-debian debian cvs 2:1.12.13+real-31 cvs/rules/OUR_CFLAGS.+= -Og -g3
25 endif
26
27 OUR_CFLAGSscip-debian debian cvs 2:1.12.13+real-31 cvs/rules/OUR_CFLAGS.+= -Wall -Wformat
28 OUR_CPPFLAGSscip-debian debian cvs 2:1.12.13+real-31 cvs/rules/OUR_CPPFLAGS.+= -D_GNU_SOURCE
29 OUR_CPPFLAGSscip-debian debian cvs 2:1.12.13+real-31 cvs/rules/OUR_CPPFLAGS.+= -DUSE_LIBBSD
30 OUR_CFLAGSscip-debian debian cvs 2:1.12.13+real-31 cvs/rules/OUR_CFLAGS.+= -fno-strict-aliasing
31 # not fully protoised
32 OUR_CFLAGSscip-debian debian cvs 2:1.12.13+real-31 cvs/rules/OUR_CFLAGS.+= -std=gnu11
33 # addresses part of #698908
34 OUR_CFLAGSscip-debian debian cvs 2:1.12.13+real-31 cvs/rules/OUR_CFLAGS.+= -fwrapv
35 # for now. uses are mostly checked.
36 OUR_CFLAGSscip-debian debian cvs 2:1.12.13+real-31 cvs/rules/OUR_CFLAGS.+= -Wno-unused-result
37
38 dpkgbuildflagsmkescapescip-debian debian cvs 2:1.12.13+real-31 cvs/rules/dpkgbuildflagsmkescape.=$(substscip-debian debian cvs 2:1.12.13+real-31 cvs/rules/subst. \,\\\,$(1scip-debian debian cvs 2:1.12.13+real-31 cvs/rules/1.))
39 export DEB_BUILD_MAINT_OPTIONSscip-debian debian cvs 2:1.12.13+real-31 cvs/rules/DEB_BUILD_MAINT_OPTIONS.:=hardening=+all optimize=-lto
40 export DEB_CPPFLAGS_MAINT_APPENDscip-debian debian cvs 2:1.12.13+real-31 cvs/rules/DEB_CPPFLAGS_MAINT_APPEND.:=$(callscip-debian debian cvs 2:1.12.13+real-31 cvs/rules/call. dpkgbuildflagsmkescape,${OUR_CPPFLAGSscip-debian debian cvs 2:1.12.13+real-31 cvs/rules/OUR_CPPFLAGS.})
41 export DEB_CFLAGS_MAINT_APPENDscip-debian debian cvs 2:1.12.13+real-31 cvs/rules/DEB_CFLAGS_MAINT_APPEND.:=$(callscip-debian debian cvs 2:1.12.13+real-31 cvs/rules/call. dpkgbuildflagsmkescape,${OUR_CFLAGSscip-debian debian cvs 2:1.12.13+real-31 cvs/rules/OUR_CFLAGS.})
42 export DEB_LDFLAGS_MAINT_APPENDscip-debian debian cvs 2:1.12.13+real-31 cvs/rules/DEB_LDFLAGS_MAINT_APPEND.:=$(callscip-debian debian cvs 2:1.12.13+real-31 cvs/rules/call. dpkgbuildflagsmkescape,${OUR_LDFLAGSscip-debian debian cvs 2:1.12.13+real-31 cvs/rules/OUR_LDFLAGS.})
43 include /usr/share/dpkg/default.mk
44
45 %scip-debian debian cvs 2:1.12.13+real-31 cvs/rules/`%`().:
46 dh $@ -Snone
47
48 LIBSscip-debian debian cvs 2:1.12.13+real-31 cvs/rules/LIBS.+= -lbsd
49
50 CONFIGURE_ENVscip-debian debian cvs 2:1.12.13+real-31 cvs/rules/CONFIGURE_ENV.:= $(foreachscip-debian debian cvs 2:1.12.13+real-31 cvs/rules/foreach. i,CC CPPFLAGS CFLAGS LDFLAGS LIBS,$(callscip-debian debian cvs 2:1.12.13+real-31 cvs/rules/call. shellexport,$iscip-debian debian cvs 2:1.12.13+real-31 cvs/rules/i.))
51 CONFIGURE_ENVscip-debian debian cvs 2:1.12.13+real-31 cvs/rules/CONFIGURE_ENV.+= CSH=/bin/csh
52 CONFIGURE_ENVscip-debian debian cvs 2:1.12.13+real-31 cvs/rules/CONFIGURE_ENV.+= ac_cv_path_MKTEMP=/bin/mktemp
53
54 CONFIGURE_ARGSscip-debian debian cvs 2:1.12.13+real-31 cvs/rules/CONFIGURE_ARGS.:= --build=${DEB_BUILD_GNU_TYPEscip-debian debian cvs 2:1.12.13+real-31 cvs/rules/DEB_BUILD_GNU_TYPE.} \
55 --host=${DEB_HOST_GNU_TYPEscip-debian debian cvs 2:1.12.13+real-31 cvs/rules/DEB_HOST_GNU_TYPE.} \
56 --prefix=/usr \
57 --infodir=/usr/share/info \
58 --mandir=/usr/share/man \
59 --sysconfdir=/etc \
60 --disable-dependency-tracking \
61 --disable-maintainer-mode \
62 --disable-pam \
63 --disable-nls \
64 --enable-client \
65 --enable-password-authenticated-client \
66 --enable-server \
67 --enable-proxy \
68 --enable-case-sensitivity \
69 --enable-encryption \
70 --disable-lock-compatibility \
71 --enable-rootcommit \
72 --enable-config-override=no \
73 --without-krb4 \
74 --with-gssapi \
75 --with-external-zlib \
76 --with-rsh=/usr/bin/ssh \
77 --with-editor=/usr/bin/editor \
78 --with-tmpdir=/var/tmp \
79 --with-umask=002 \
80 --with-cvs-admin-group=_cvsadmin
81
82 MAKE_ARGSscip-debian debian cvs 2:1.12.13+real-31 cvs/rules/MAKE_ARGS.:= MAKEINFO=makeinfo
83 MAKE_ARGSscip-debian debian cvs 2:1.12.13+real-31 cvs/rules/MAKE_ARGS.+= MAKEINFOFLAGS=--no-split
84 # ‘u’ is default in Debian and gives warnings (upstream has ‘cru’)
85 MAKE_ARGSscip-debian debian cvs 2:1.12.13+real-31 cvs/rules/MAKE_ARGS.+= ARFLAGS=rc
86
87 CLEANFILESscip-debian debian cvs 2:1.12.13+real-31 cvs/rules/CLEANFILES.:= autom4te.cache build-aux/config.guess \
88 build-aux/config.sub cvs.spec debian/.*_stamp \
89 debian/CVSTEMP debian/builddir debian/stagedir \
90 doc/cvs-paper.pdf doc/cvs.1 doc/cvs.info* \
91 doc/cvs.pdf doc/cvsclient.info* doc/cvsclient.pdf \
92 doc/getdate-cvs.texi emx/Makefile os2/Makefile \
93 vms/config.h windows-NT/config.h
94
95 execute_before_dh_auto_cleanscip-debian debian cvs 2:1.12.13+real-31 cvs/rules/execute_before_dh_auto_clean().:
96 dh_testdirscip-debian debian debhelper . dh_testdir().
97 dh_autoreconf_cleanscip-debian debian debhelper . dh_autoreconf_clean().
98 -rm -rf ${CLEANFILESscip-debian debian cvs 2:1.12.13+real-31 cvs/rules/CLEANFILES.}
99
100 override_dh_auto_configurescip-debian debian cvs 2:1.12.13+real-31 cvs/rules/override_dh_auto_configure().:
101 dh_testdirscip-debian debian debhelper . dh_testdir().
102 -rm -rf ${CLEANFILESscip-debian debian cvs 2:1.12.13+real-31 cvs/rules/CLEANFILES.}
103 cp /usr/share/misc/config.guess /usr/share/misc/config.sub build-aux/
104 dh_autoreconfscip-debian debian debhelper . dh_autoreconf().
105 mkdir debian/builddir debian/stagedir
106 cd debian/builddir && \
107 env ${CONFIGURE_ENVscip-debian debian cvs 2:1.12.13+real-31 cvs/rules/CONFIGURE_ENV.} sh ../../configure ${CONFIGURE_ARGSscip-debian debian cvs 2:1.12.13+real-31 cvs/rules/CONFIGURE_ARGS.}
108 # generate PDF 1.4 by default
109 ln -s ../../../build-aux/texinfo.tex debian/builddir/doc/texinfo-r.tex
110 printf '%s\n' \
111 '\pdfminorversion4\relax\pdfobjcompresslevel0\relax%' \
112 '\input texinfo-r.tex' \
113 >debian/builddir/doc/texinfo.tex
114
115 override_dh_auto_buildscip-debian debian cvs 2:1.12.13+real-31 cvs/rules/override_dh_auto_build().:
116 dh_testdirscip-debian debian debhelper . dh_testdir().
117 cd debian/builddir && ${MAKEscip-debian debian cvs 2:1.12.13+real-31 cvs/rules/MAKE.} ${MAKE_ARGSscip-debian debian cvs 2:1.12.13+real-31 cvs/rules/MAKE_ARGS.}
118 ifeq (,$(filterscip-debian debian cvs 2:1.12.13+real-31 cvs/rules/filter. nodoc,$(DEB_BUILD_OPTIONSscip-debian debian cvs 2:1.12.13+real-31 cvs/rules/DEB_BUILD_OPTIONS.)))
119 cd debian/builddir && ${MAKE} -C doc ${MAKE_ARGS} doc html info pdf txt
120 endif
121
122 override_dh_auto_testscip-debian debian cvs 2:1.12.13+real-31 cvs/rules/override_dh_auto_test().:
123 ifeq (,$(filterscip-debian debian cvs 2:1.12.13+real-31 cvs/rules/filter. nocheck,$(DEB_BUILD_OPTIONSscip-debian debian cvs 2:1.12.13+real-31 cvs/rules/DEB_BUILD_OPTIONS.)))
124 # run the testsuite after build
125 # Depends on procps and, if running locally (not in a buildd chroot),
126 # ssh + rsync (logging in to localhost), for testing remote/proxy op.
127 # Drop DISABLE_ANY_RSH=1 below to re-enable these.
128 # warning: this takes a *lot* of time!
129 # idea: run this under Valgrind to take even more time ;)
130 set +e; \
131 cd debian/builddir && \
132 env DISABLE_ANY_RSH=1 ${MAKE} ${MAKE_ARGS} check; \
133 rv=$$?; \
134 echo; \
135 test $$rv = 0 || for f in lib/getdate.log \
136 src/check.plog~ src/check.plog src/check.log; do \
137 echo; \
138 if test -e "$$f"; then \
139 echo === "$$f" ===; \
140 echo; \
141 cat "$$f"; \
142 else \
143 echo ::: "$$f" not found :::; \
144 fi; \
145 echo; \
146 done; \
147 echo === CVS testsuite finished with errorlevel $$rv; \
148 exit $$rv
149 endif
150
151 override_dh_auto_installscip-debian debian cvs 2:1.12.13+real-31 cvs/rules/override_dh_auto_install().:
152 -rm -rf debian/stagedir
153 mkdir -p debian/stagedir/clogs
154 cd debian/builddir && \
155 ${MAKEscip-debian debian cvs 2:1.12.13+real-31 cvs/rules/MAKE.} ${MAKE_ARGSscip-debian debian cvs 2:1.12.13+real-31 cvs/rules/MAKE_ARGS.} DESTDIR=${CURDIRscip-debian debian cvs 2:1.12.13+real-31 cvs/rules/CURDIR.}/debian/stagedir install
156 cat ChangeLog ChangeLog.zoo >debian/stagedir/clogs/ChangeLog
157 cat doc/ChangeLog doc/ChangeLog.fsf >debian/stagedir/clogs/ChangeLog.doc
158 #cat lib/ChangeLog lib/ChangeLog.fsf >debian/stagedir/clogs/ChangeLog.lib
159 #cat src/ChangeLog src/ChangeLog-97 src/ChangeLog-96 src/ChangeLog-9395 \
160 # src/ChangeLog-9194 >debian/stagedir/clogs/ChangeLog.src
161 cp src/ChangeLog debian/stagedir/clogs/ChangeLog.src
162 cp contrib/ChangeLog debian/stagedir/clogs/ChangeLog.contrib
163 cp diff/ChangeLog debian/stagedir/clogs/ChangeLog.diff
164 #cp m4/ChangeLog debian/stagedir/clogs/ChangeLog.m4
165 #cp man/ChangeLog debian/stagedir/clogs/ChangeLog.man
166 #cp tools/ChangeLog debian/stagedir/clogs/ChangeLog.tools
167 # fat and nonsensical to ship this
168 rm -f debian/stagedir/usr/share/cvs/contrib/rcs-5.7-commitid.patch
169 # uses csh
170 rm -f debian/stagedir/usr/share/cvs/contrib/sccs2rcs
171 # unsafe
172 rm -f debian/stagedir/usr/share/cvs/contrib/commit_prep
173 rm -f debian/stagedir/usr/share/cvs/contrib/cvs_acls
174 rm -f debian/stagedir/usr/share/cvs/contrib/log
175 rm -f debian/stagedir/usr/share/cvs/contrib/log_accum
176 rm -f debian/stagedir/usr/share/cvs/contrib/mfpipe
177 rm -f debian/stagedir/usr/share/cvs/contrib/rcslock
178 # we ship cvs-switchroot(1) instead
179 rm -f debian/stagedir/usr/share/cvs/contrib/newcvsroot
180 ifneq (,$(filterscip-debian debian cvs 2:1.12.13+real-31 cvs/rules/filter. nodoc,$(DEB_BUILD_OPTIONSscip-debian debian cvs 2:1.12.13+real-31 cvs/rules/DEB_BUILD_OPTIONS.)))
181 # the nodoc profile will cause lintian warnings as it installs the doc-base files
182 endif
183
184 override_dh_installchangelogsscip-debian debian cvs 2:1.12.13+real-31 cvs/rules/override_dh_installchangelogs().:
185 dh_installchangelogsscip-debian debian debhelper . dh_installchangelogs(). debian/stagedir/clogs/ChangeLog
186
187 execute_after_dh_installdocsscip-debian debian cvs 2:1.12.13+real-31 cvs/rules/execute_after_dh_installdocs().:
188 mv debian/cvs/usr/share/cvs/contrib/intro.doc \
189 debian/cvs/usr/share/doc/cvs/intro.txt
190
191 override_dh_compressscip-debian debian cvs 2:1.12.13+real-31 cvs/rules/override_dh_compress().:
192 dh_compressscip-debian debian debhelper . dh_compress(). -X.pdf
193
194 execute_before_dh_fixpermsscip-debian debian cvs 2:1.12.13+real-31 cvs/rules/execute_before_dh_fixperms().:
195 cd debian/cvs/usr/share/cvs/contrib && chmod +x descend.sh rcs2sccs.sh
196
197 override_dh_builddebscip-debian debian cvs 2:1.12.13+real-31 cvs/rules/override_dh_builddeb().:
198 dh_builddebscip-debian debian debhelper . dh_builddeb(). -- -Zgzip -z9