| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 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 |
|
| 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 |
|
| 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 |