| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all reproducible=+fixfilepath |
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic |
| 12 |
|
| 13 |
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed |
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
%: |
| 18 |
dh $@ --builddirectory=build |
| 19 |
|
| 20 |
override_dh_auto_configure: |
| 21 |
dh_auto_configure -- \ |
| 22 |
-DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH) \ |
| 23 |
-DCMAKE_BUILD_RPATH_USE_ORIGIN=ON \ |
| 24 |
-DCODE_COVERAGE=OFF \ |
| 25 |
$(empty) |
| 26 |
|
| 27 |
|
| 28 |
override_dh_auto_test: DEB_BUILD_OPTIONS += terse |
| 29 |
|
| 30 |
override_dh_auto_test: |
| 31 |
dh_auto_test --no-parallel |
| 32 |
|
| 33 |
override_dh_clean: |
| 34 |
dh_clean |
| 35 |
rm -f easy.tmp.json |
| 36 |
rm -f src/config.h src/hrtf/mysofa_export.h |
| 37 |
|
| 38 |
DEB_COPYRIGHT_CHECK_IGNORE_REGEX = \ |
| 39 |
debian/.*|tests/.*\.sofa|tests/.*\.json\.bz2|share/MIT_KEMAR_normal_pinna\.sofa |
| 40 |
|
| 41 |
|
| 42 |
.PHONY: licensecheck |
| 43 |
licensecheck: |
| 44 |
LANG=C.UTF-8 licensecheck \ |
| 45 |
-i "^($(DEB_COPYRIGHT_CHECK_IGNORE_REGEX))$$" \ |
| 46 |
--check '.*' --recursive --deb-machine --lines 0 * \ |
| 47 |
> debian/copyright_newhints |
| 48 |
cmp debian/copyright_hints debian/copyright_newhints \ |
| 49 |
&& rm debian/copyright_newhints |