Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 # enable additional hardening
4 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
5
6 include /usr/share/dpkg/buildflags.mk
7
8 INSTDIR = $(CURDIR)/debian/tmp
9 PY3VER := $(shell py3versions -d -v | tr -d .)
10 export PYTHON = $(shell py3versions -d)
11
12 %:
13 dh $@
14
15 override_dh_autoreconf:
16 ./autogen.sh
17 dh_autoreconf
18
19 override_dh_auto_configure:
20 ./configure --prefix=/usr --with-boost-python='boost_python$(PY3VER)' CFLAGS='$(CFLAGS)' CXXFLAGS='$(CXXFLAGS)' CPPFLAGS='$(CPPFLAGS)'
21
22 override_dh_auto_build:
23 dh_auto_build -- V=1
24
25 override_dh_auto_install:
26 dh_auto_install -- DESTDIR=$(INSTDIR)
27 find debian/tmp -name '*.pyc' -delete
28 find debian/tmp -name '*.la' -delete
29 rm debian/tmp/usr/lib/python3/dist-packages/gengeo/gengeo.so
30 mv debian/tmp/usr/lib/python3/dist-packages/gengeo/gengeo-*.so debian/tmp/usr/lib/python3/dist-packages/gengeo/gengeo.so
31 chrpath -d debian/tmp/usr/lib/python*/dist-packages/gengeo/gengeo*so
32
33 override_dh_makeshlibs: