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
|
#!/usr/bin/make -f
# -*- makefile -*-
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
# To avoid running configure twice (because gnome-autogen.sh)
export NOCONFIGURE=yes
ifeq ($(DEB_HOST_ARCH_OS),linux)
CONFIGURE_ARGS += --enable-systemd
endif
%:
dh $@ --parallel --with=autoreconf
override_dh_autoreconf:
dh_autoreconf --as-needed ./autogen.sh
override_dh_auto_configure:
dh_auto_configure -- \
--libexecdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH)/cinnamon-settings-daemon $(CONFIGURE_ARGS)
override_dh_link:
# Make *.links compatible with multiarch
for in_file in debian/*.links.in; do \
out_file=$${in_file%.in}; \
sed 's/@DEB_HOST_MULTIARCH@/$(DEB_HOST_MULTIARCH)/' \
"$${in_file}" > "$${out_file}"; \
done
dh_link
override_dh_install:
dh_install --list-missing
override_dh_makeshlibs:
# Disabled, there are no shared libraries, but some plugins that cause this
# to fail
override_dh_auto_test:
# Disable old test suite on build time
override_dh_clean:
# Remove autogenerated links
for in_file in debian/*.links.in; do \
out_file=$${in_file%.in}; \
rm -f "$${out_file}"; \
done
dh_clean
|