summaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules35
1 files changed, 35 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..2c5bf7b
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,35 @@
+#!/usr/bin/make -f
+
+# get the various DEB_BUILD/DEB_HOST variables
+include /usr/share/dpkg/architecture.mk
+
+export DEB_LDFLAGS_MAINT_APPEND=-Wl,-z,defs -Wl,--as-needed -Wl,-O1
+export DEB_BUILD_MAINT_OPTIONS=hardening=+all
+
+override_dh_install:
+ chmod 755 debian/xfce4-session/etc/xdg/xfce4/xinitrc
+ find debian/xfce4-session/usr/lib -name '*.la' -delete
+ dh_install
+
+override_dh_strip:
+ dh_strip --dbgsym-migration='xfce4-session-dbg (<< 4.12.1-6~)'
+
+# default backend for Linux and Hurd
+BACKEND=linux
+ifeq ($(DEB_BUILD_ARCH_OS),kfreebsd)
+ BACKEND=freebsd
+endif
+
+override_dh_auto_configure:
+ dh_auto_configure -- --disable-silent-rules --disable-legacy-sm --with-backend=$(BACKEND)
+
+override_dh_autoreconf:
+ NOCONFIGURE=1 dh_autoreconf xdt-autogen
+
+override_dh_auto_clean:
+ dh_auto_clean
+ rm -f $$(find -name 'Makefile.in*') INSTALL ltmain.sh depcomp
+ rm -f aclocal.m4 config.guess config.h.in config.sub configure
+
+%:
+ dh $@ --parallel --with autoreconf