[SF#838]Fix maximizing windows using task bar, GDK functions not always work.
[lxde/lxpanel.git] / debian / rules
1 #!/usr/bin/make -f
2
3 DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
4 DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
5
6 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
7
8 %:
9         dh ${@} --parallel --with autoreconf
10
11 override_dh_autoreconf:
12         dh_autoreconf ./autogen.sh -- 
13
14 override_dh_auto_configure:
15 ifeq ($(DEB_HOST_ARCH_OS),linux)
16         dh_auto_configure -- --enable-man --with-plugins=all --disable-silent-rules --enable-indicator-support
17 else
18         # omit netstat plugin on non-linux, requires wireless-tools
19         dh_auto_configure -- --enable-man --with-plugins=all,-netstat --disable-silent-rules
20 endif
21
22 override_dh_strip:
23         dh_strip --dbg-package=lxpanel-dbg
24
25 override_dh_auto_install:
26         dh_auto_install
27         rm -f debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/lxpanel/*.la
28
29 override_dh_install:
30         # move indicator.so out of the way
31         mkdir -p debian/lxpanel-indicator-applet-plugin/usr/lib/$(DEB_HOST_MULTIARCH)/lxpanel/plugins
32         mv debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/lxpanel/plugins/indicator.so debian/lxpanel-indicator-applet-plugin/usr/lib/$(DEB_HOST_MULTIARCH)/lxpanel/plugins/indicator.so
33         # install rest of files
34         dh_install --fail-missing
35
36 override_dh_makeshlibs:
37         # plugins are not shared libs so disable processing for them
38         dh_makeshlibs -X/plugins/