Fixing configure parameters on non-linux architectures.
[debian/lxpanel.git] / debian / rules
1 #!/usr/bin/make -f
2
3 DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
4
5 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
6
7 %:
8         dh ${@} --parallel
9
10 override_dh_auto_configure:
11 ifeq ($(DEB_HOST_ARCH_OS),linux)
12         dh_auto_configure -- --enable-man --with-plugins=all --disable-silent-rules
13 else
14         # omit netstat plugin on non-linux, requires wireless-tools
15         dh_auto_configure -- --enable-man --with-plugins=all,-netstat --disable-silent-rules
16 endif
17
18 override_dh_auto_install:
19         dh_auto_install -- DESTDIR=$(CURDIR)/debian/lxpanel
20
21 override_dh_builddeb:
22         dh_builddeb -- -Zxz -z9
23
24 override_dh_strip:
25         dh_strip --dbg-package=lxpanel-dbg