1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
|
#!/usr/bin/make -f
built_binaries := $(shell dh_listpackages)
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_APPEND = -Wl,-O1
%:
dh $@
CONFFLAGS =
ifneq ($(DEB_HOST_ARCH_OS),linux)
CONFFLAGS += -Dgudev=disabled
else
CONFFLAGS += -Dgudev=enabled
endif
ifeq ($(DEB_HOST_ARCH_OS),hurd)
CONFFLAGS += -Dbrasero=disabled
CONFFLAGS += -Dipod=disabled
else
CONFFLAGS += -Dbrasero=enabled
CONFFLAGS += -Dipod=enabled
endif
ifneq ($(filter %-doc,$(built_binaries)),)
CONFFLAGS += -Dapidoc=true
else
CONFFLAGS += -Dapidoc=false
endif
override_dh_auto_configure:
dh_auto_configure -- \
-Dauto_features=enabled \
-Ddaap=enabled \
-Dplugins_vala=disabled \
-Dtests=$(if $(filter nocheck,$(DEB_BUILD_OPTIONS)),disabled,enabled) \
$(CONFFLAGS)
override_dh_auto_test:
env NO_AT_BRIDGE=1 \
debian/tests/run-with-display x11 \
dh_auto_test -- --timeout-multiplier 3
# This plugin was dropped from the Debian package years ago
# It would need to depend on zeitgeist to be useful
# So we'd probably want to add a separate binary package
# since zeitgeist isn't something we need by default these days
override_dh_missing:
dh_missing -Xrbzeitgeist
override_dh_python3:
dh_python3 --no-ext-rename /usr/lib/$(DEB_HOST_MULTIARCH)/rhythmbox
override_dh_makeshlibs:
dh_makeshlibs -prhythmbox-plugins --no-act
dh_makeshlibs -prhythmbox-plugin-cdrecorder --no-act
dh_makeshlibs --remaining-packages
# We only use dh_gnome to automatically run dh_translations in Ubuntu
override_dh_gnome:
|