3
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
4
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
8
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
14
config.status: configure
17
./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --sysconfdir=/etc --mandir=/usr/share/man --disable-rpath --libexecdir=\$${prefix}/lib --enable-final --enable-thunarx --enable-exo --enable-desktop-menu-dir-monitor
20
build-stamp: config.status
32
[ ! -f Makefile ] || $(MAKE) distclean
44
$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
46
rm -f $(CURDIR)/debian/tmp/usr/lib/xfce4/modules/*.la
47
rm -f $(CURDIR)/debian/tmp/usr/lib/xfce4/modules/*.a
51
chrpath -d -k $(CURDIR)/debian/tmp/usr/bin/* \
52
$(CURDIR)/debian/tmp/usr/lib/xfce4/*/*
54
binary-indep: build install
56
binary-arch: build install
61
# rename the generic terminal file
62
mv $(CURDIR)/debian/tmp/usr/share/applications/xfce4-terminal.desktop \
63
$(CURDIR)/debian/tmp/usr/share/applications/xfce4-term.desktop
64
sed -i 's/xfce4-terminal/xfce4-term/' \
65
$(CURDIR)/debian/tmp/etc/xdg/menus/xfce-applications.menu
67
dh_installdocs README TODO
71
dh_installchangelogs ChangeLog
3
include /usr/share/hardening-includes/hardening.make
5
CFLAGS=$(shell dpkg-buildflags --get CFLAGS)
6
LDFLAGS=$(shell dpkg-buildflags --get LDFLAGS)
7
LDFLAGS+=$(HARDENING_LDFLAGS) -Wl,-z,defs -Wl,--as-needed -Wl,-O1
8
CFLAGS+=$(HARDENING_CFLAGS)
12
override_dh_auto_configure:
13
dh_auto_configure -- --enable-thunarx --enable-exo \
14
--docdir=\$${prefix}/share/doc/xfdesktop4-data
15
--enable-desktop-menu-dir-monitor
18
chrpath -d -k $(CURDIR)/debian/tmp/usr/bin/*
73
20
dh_install --sourcedir=debian/tmp --fail-missing
74
21
# why oh why is this necessary?
75
22
rm -rf $(CURDIR)/debian/xfdesktop4-data/usr/share/man
77
25
rm -rf $(CURDIR)/debian/xfdesktop4/usr/share/doc/xfdesktop4
78
26
ln -s xfdesktop4-data $(CURDIR)/debian/xfdesktop4/usr/share/doc/xfdesktop4
81
30
dh_strip --dbg-package=xfdesktop4-dbg
93
binary: binary-indep binary-arch
94
.PHONY: build clean binary-indep binary-arch binary install