Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
2 #export DH_VERBOSE = 1
3
4 # see FEATURE AREAS in dpkg-buildflags(1)
5 #export DEB_BUILD_MAINT_OPTIONS = hardening=+all
6
7 # see ENVIRONMENT in dpkg-buildflags(1)
8 # package maintainers to append CFLAGS
9 #export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
10 # package maintainers to append LDFLAGS
11 #export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
12
13 CONFIGURE_FLAGS = -DLINK_BUILD_JACK=ON
14
15 ifneq ($(filter nocheck,$(DEB_BUILD_PROFILES)),)
16 CONFIGURE_FLAGS += -DLINK_BUILD_TESTS=OFF
17 else
18 CONFIGURE_FLAGS += -DLINK_BUILD_TESTS=ON
19 endif
20
21
22 # workaround for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81358
23 ifneq (,$(filter $(DEB_HOST_ARCH), armel m68k mipsel powerpc riscv64 sh4))
24 export DEB_LDFLAGS_MAINT_APPEND += -Wl,--no-as-needed -latomic -Wl,--as-needed
25 endif
26
27 %:
28 dh $@
29
30
31 override_dh_auto_configure:
32 dh_auto_configure -- \
33 -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH) \
34 -DCMAKE_BUILD_TYPE=RelWithDebInfo \
35 $(CONFIGURE_FLAGS)
36
37 execute_after_dh_install-indep:
38 find $(CURDIR)/debian/ableton-link-dev/usr/share -name "*.cmake" -exec \
39 sed -e 's|$${CMAKE_CURRENT_LIST_DIR}/include|/usr/include|g' -i {} +
40
41 DEB_COPYRIGHT_CHECK_IGNORE_REGEX = \
42 debian/.*
43 # licensecheck v1
44 .PHONY: licensecheck
45 licensecheck:
46 LANG=C.UTF-8 licensecheck \
47 -i "^($(DEB_COPYRIGHT_CHECK_IGNORE_REGEX))$$" \
48 --check '.*' --recursive --deb-machine --lines 0 * \
49 > debian/copyright_newhints
50 cmp debian/copyright_hints debian/copyright_newhints \
51 && rm debian/copyright_newhints