File: rules

package info (click to toggle)
xfce4-session 4.20.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,592 kB
  • sloc: ansic: 29,692; sh: 5,791; makefile: 499; xml: 266; sed: 16
file content (31 lines) | stat: -rwxr-xr-x 870 bytes parent folder | download | duplicates (3)
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
#!/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,-O1
export DEB_BUILD_MAINT_OPTIONS=hardening=+all

# default backend for Linux and Hurd
BACKEND=linux
ifeq ($(DEB_BUILD_ARCH_OS),kfreebsd)
	BACKEND=freebsd
endif

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- --disable-legacy-sm --with-backend=$(BACKEND)

override_dh_install:
	chmod 755 debian/xfce4-session/etc/xdg/xfce4/xinitrc
	find debian/xfce4-session/usr/lib -name '*.la' -delete
ifeq ($(shell dpkg-vendor --derives-from ubuntu && echo 1),1)
	dh_install debian/systemd/xfce4-session.service /usr/lib/systemd/user/
	dh_install debian/systemd/run-systemd-session /usr/share/xfce4/scripts/
endif
	dh_install

override_dh_installchangelogs:
	DEB_BUILD_OPTIONS=notrimdch dh_installchangelogs NEWS