File: rules

package info (click to toggle)
xfce4-utils 4.8.3-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 5,396 kB
  • sloc: sh: 11,502; ansic: 2,028; xml: 1,472; perl: 693; makefile: 374
file content (42 lines) | stat: -rwxr-xr-x 1,213 bytes parent folder | download
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
#!/usr/bin/make -f

export DEB_LDFLAGS_MAINT_APPEND=-Wl,--as-needed -Wl,-O1 -Wl,-z,defs
export DEB_BUILD_MAINT_OPTIONS=hardening=+pie,+bindnow
export PWD=$(shell pwd)

XFVENDOR=Debian
ifeq ($(shell dpkg-vendor --is Ubuntu && echo yes),yes)
	XFVENDOR=Xubuntu
endif

override_dh_auto_configure:
	find .pc -type f -exec echo '{}' \; >> po/POTFILES.skip
	NOCONFIGURE=1 xdt-autogen
	dh_auto_configure -- --with-vendor-info=$(XFVENDOR) --with-x \
		--with-browser=midori --docdir=\$${prefix}/share/doc/xfce4-utils \
		--disable-xfconf-migration

override_dh_install:
	rm -f `pwd`/debian/xfce4-utils/usr/lib/xfce4/mcs-plugins/*.la
	rm -f `pwd`/debian/xfce4-utils/usr/lib/xfce4/mcs-plugins/*.a

	# Debianise
	for d in `pwd`/debian/xfce4-utils/usr/share/doc/xfce4-utils/html/*; do \
		if [ -f $$d/index.html ]; then \
			sed -i -e 's;/xfdesktop/;/xfdesktop4/;' $$d/index.html; \
		fi; \
	done

	install -D -m 644 `pwd`/debian/Debian \
		`pwd`/debian/xfce4-utils/usr/share/xfce4/Debian

	chrpath -d -k `pwd`/debian/xfce4-utils/usr/bin/xfrun4 \
		`pwd`/debian/xfce4-utils/usr/bin/xfce4-about
	chmod +x `pwd`/debian/xfce4-utils/etc/xdg/xfce4/xinitrc

override_dh_auto_clean:
	rm -f po/POTFILES.skip
	dh_auto_clean

%:
	dh $@