| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 4 |
export DEB_LDFLAGS_MAINT_APPEND = -Wl,-z,defs |
| 5 |
|
| 6 |
ifeq (,$(filter wireplumber-doc,$(shell dh_listpackages))) |
| 7 |
CONFIGURE_FLAGS = -Ddoc=disabled |
| 8 |
else |
| 9 |
CONFIGURE_FLAGS = -Ddoc=enabled |
| 10 |
endif |
| 11 |
ifeq (,$(filter nogir,$(DEB_BUILD_PROFILES))) |
| 12 |
CONFIGURE_FLAGS += -Dintrospection=enabled |
| 13 |
else |
| 14 |
CONFIGURE_FLAGS += -Dintrospection=disabled |
| 15 |
endif |
| 16 |
|
| 17 |
%: |
| 18 |
dh $@ --buildsystem=meson |
| 19 |
|
| 20 |
override_dh_auto_configure: |
| 21 |
dh_auto_configure -- \ |
| 22 |
-Dmodules=true \ |
| 23 |
-Ddaemon=true \ |
| 24 |
-Dtools=true \ |
| 25 |
-Dsystem-lua=true \ |
| 26 |
-Dsystemd=enabled \ |
| 27 |
-Dsystemd-system-service=true \ |
| 28 |
-Dsystemd-user-service=true \ |
| 29 |
-Dtests=true \ |
| 30 |
-Ddbus-tests=true \ |
| 31 |
$(CONFIGURE_FLAGS) \ |
| 32 |
$(NULL) |
| 33 |
|
| 34 |
override_dh_makeshlibs: |
| 35 |
dh_makeshlibs \ |
| 36 |
--exclude=/usr/lib/$(DEB_HOST_MULTIARCH)/wireplumber-0.5 \ |
| 37 |
-- -c4 |
| 38 |
|
| 39 |
# We only use dh-sequence-gnome so that Ubuntu |
| 40 |
# runs dh_translations |
| 41 |
override_dh_gnome: |
| 42 |
|
| 43 |
# Workaround for Ubuntu language pack issue |
| 44 |
execute_after_dh_translations: |
| 45 |
ninja -C obj-$(DEB_HOST_GNU_TYPE) wireplumber-pot |
| 46 |
|
| 47 |
override_dh_installsystemd: |
| 48 |
# The recommanded way to install wireplumber is using user services, but |
| 49 |
# we install system services anyway for specific use cases (like embedded |
| 50 |
# and accessibility) without enabling/starting them to avoid clashes. |
| 51 |
dh_installsystemd -pwireplumber-system-services --no-enable --no-start |