Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
2
3 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
4 DPKG_EXPORT_BUILDFLAGS = 1
5 include /usr/share/dpkg/buildflags.mk
6
7 include /usr/share/dpkg/pkg-info.mk
8
9
10 #Set SOVERSION
11 SOVERSION=0
12
13 ITK_MINOR=$(shell dpkg --list | sed -n 's/.*libinsighttoolkit\([0-9]\+\.[0-9]\+\).*/\1/p')
14
15 %:
16 dh $@ --buildsystem=cmake
17
18 override_dh_auto_configure:
19 # Use our home-made CMakeLists.txt file, save the unused one.
20 mv CMakeLists.txt CMakeLists.txt.old
21 sed "s/ITK_VERSION/$(ITK_MINOR)/" debian/CMakeLists.txt.in > CMakeLists.txt
22 dh_auto_configure -- \
23 -DCMAKE_LIBRARY_ARCHITECTURE="$(DEB_HOST_MULTIARCH)" \
24 -DVERSION="$(DEB_VERSION_UPSTREAM)" \
25 -DSOVERSION="$(SOVERSION)"
26
27 execute_before_dh_clean:
28 # Remove our home-made CMakeLists.txt file, put back the unused one.
29 if [ -e CMakeLists.txt.old ]; then \
30 mv CMakeLists.txt.old CMakeLists.txt; \
31 fi