Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
2
3 include /usr/share/dpkg/architecture.mk
4 include /usr/share/dpkg/pkg-info.mk
5
6 UPSTREAM_VERSION=$(shell echo $(DEB_VERSION_UPSTREAM) | sed -e 's/\+.*//')
7
8 export DEB_BUILD_MAINT_OPTIONS=hardening=+all
9
10 # reduce debug info to fix FTBFS on archs with few address space
11 ifneq (,$(filter $(DEB_HOST_ARCH),arm64 armhf ppc64el))
12 CMAKECXXFLAGS="-DCMAKE_CXX_FLAGS_RELWITHDEBINFO=' -O2 -g1 -DNDEBUG'"
13 endif
14
15 %:
16 dh $@
17
18 override_dh_auto_configure:
19 dh_auto_configure -- \
20 -DCMAKE_BUILD_TYPE=RelWithDebInfo \
21 $(CMAKECXXFLAGS) \
22 -DCMAKE_INSTALL_PREFIX=/usr \
23 -DCMAKE_INSTALL_LIBDIR=lib/$(DEB_HOST_MULTIARCH) \
24 -DCMAKE_VERBOSE_MAKEFILE=ON \
25 -DSFCGAL_BUILD_TESTS=ON
26
27 override_dh_auto_test:
28 ifneq (,$(filter $(DEB_BUILD_ARCH),s390x))
29 # Skip tests
30 else
31 dh_auto_test
32 endif
33
34 execute_before_dh_install:
35 # removing embedded rpath in binaries
36 -find $(CURDIR)/debian/tmp/usr/bin -type f -not -name sfcgal-config -exec chrpath --delete {} \;
37
38 # removing embedded rpath in libraries
39 -find $(CURDIR)/debian/tmp/usr/lib -name "*.so*" -type f -exec chrpath --delete {} \;
40
41 # Remove test executables
42 $(RM) $(CURDIR)/debian/tmp/usr/bin/*test*
43
44 override_dh_installchangelogs:
45 dh_installchangelogs NEWS
46
47 override_dh_makeshlibs:
48 dh_makeshlibs -- -c0 -v$(UPSTREAM_VERSION)