| 1 |
|
| 2 |
|
| 3 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 4 |
export DEB_LDFLAGS_MAINT_APPEND = -Wl,-O1 -Wl,-z,defs |
| 5 |
export DPKG_GENSYMBOLS_CHECK_LEVEL = 4 |
| 6 |
|
| 7 |
ifeq ($(filter sysprof,$(shell dh_listpackages)),) |
| 8 |
gtk=-Dgtk=false |
| 9 |
endif |
| 10 |
|
| 11 |
ifeq ($(filter libsysprof-6-dev,$(shell dh_listpackages)),) |
| 12 |
libunwind=-Dexamples=false -Dlibsysprof=false -Dsysprofd=none -Dtests=false -Dtools=false |
| 13 |
else |
| 14 |
libunwind=-Dsysprofd=bundled |
| 15 |
endif |
| 16 |
|
| 17 |
%: |
| 18 |
dh $@ |
| 19 |
|
| 20 |
override_dh_auto_configure: |
| 21 |
dh_auto_configure -- \ |
| 22 |
-Dsystemdunitdir=/usr/lib/systemd/system \ |
| 23 |
$(gtk) \ |
| 24 |
$(libunwind) |
| 25 |
|
| 26 |
override_dh_makeshlibs: |
| 27 |
|
| 28 |
|
| 29 |
dh_makeshlibs -Nlibsysprof-6-modules |
| 30 |
|
| 31 |
override_dh_auto_test: |
| 32 |
dh_auto_test -- --timeout-multiplier 2 |
| 33 |
|
| 34 |
|
| 35 |
override_dh_gencontrol: |
| 36 |
ifeq ($(shell dpkg-vendor --query vendor),Ubuntu) |
| 37 |
dh_gencontrol -- \ |
| 38 |
-Vsysprof:Suggests='mesa-utils' |
| 39 |
else |
| 40 |
dh_gencontrol -- \ |
| 41 |
-Vsysprof:Recommends='mesa-utils' |
| 42 |
endif |
| 43 |
|
| 44 |
|
| 45 |
override_dh_gnome: |