Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 DEB_MAKE_CHECK_TARGET=check LD_LIBRARY_PATH=.
4 DEB_DH_BUILDDEB_ARGS=-- -Zxz
5 DEB_MAKE_ENVVARS=QT_SELECT=5
6
7 ifeq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))$(filter ia64 mipsel,$(DEB_HOST_ARCH)))
8 CFLAGS += -O3
9 CXXFLAGS += -O3
10 endif
11
12 CFLAGS += -D_REENTRANT $(CPPFLAGS)
13 CXXFLAGS += -D_REENTRANT $(CPPFLAGS)
14 DEB_CONFIGURE_EXTRA_FLAGS += DLLFLAGS="$(LDFLAGS)" GLDFLAGS="$(LDFLAGS)"
15
16 %: configure.ac
17 dh $@ --with=autoreconf
18
19 override_dh_auto_configure:
20 dh_auto_configure -- --enable-gist --enable-qt --enable-float-vars --enable-cppprofiler --enable-cbs --disable-examples --libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH) QT_SELECT=5 --with-host-os=linux
21
22 override_dh_auto_build-indep: changelog
23 $(MAKE) doc
24
25 changelog:
26 $(MAKE) ChangeLog
27 iconv -f ISO-8859-1 -t UTF-8 ChangeLog > changelog
28 rm ChangeLog
29
30 configure.ac:
31 ln -s configure.ac.in configure.ac
32
33 override_dh_install-indep:
34 dh_install
35 find $(CURDIR)/debian/libgecode-doc/usr/share/doc/libgecode-dev/examples/ -type f -exec chmod 0644 '{}' ';'
36 install -m 0644 -D debian/Makefile.examples $(CURDIR)/debian/libgecode-doc/usr/share/doc/libgecode-dev/examples/Makefile
37
38 override_dh_installdocs-indep:
39 dh_installdocs
40 rm -f $(CURDIR)/debian/libgecode-doc/usr/share/doc/libgecode-dev/html/jquery.js
41
42 override_dh_install-arch:
43 dh_install
44 find $(CURDIR)/debian/libgecode-dev/usr/include -type f -exec chmod -x {} \;
45 rm -f $(CURDIR)/debian/libgecode-dev/usr/include/gecode/third-party/boost/LICENSE_1_0.txt