File: rules

package info (click to toggle)
bzflag 2.4.26-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 27,288 kB
  • sloc: cpp: 160,691; ansic: 3,472; sh: 2,535; makefile: 2,414; perl: 486; python: 260; objc: 246; php: 206
file content (39 lines) | stat: -rwxr-xr-x 1,128 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
#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
export CCACHE_DIR=$(CURDIR)/ccache
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
	DEBUG_OPTS += --enable-debug
endif

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- --datarootdir=/usr/share/games --bindir=/usr/games --libdir=/usr/lib/bzflag-server $(DEBUG_OPTS)

override_dh_installinit:
ifneq (,$(findstring bzflag-server, $(shell dh_listpackages)))
	dh_installinit -pbzflag-server --name=bzflag
endif

override_dh_installsystemd:
	dh_installsystemd --name=bzflag

override_dh_install:
	# Fix #728167 and install bzfquery to /usr/games
	cp misc/bzfquery.pl misc/bzfquery
	dh_install
	# Remove the DejaVu.License file installed by the wildcard in
	# bzflag-data.install
	$(RM) debian/bzflag-data/usr/share/games/bzflag/fonts/DejaVu.License
	$(RM) debian/bzflag-data/usr/share/games/bzflag/fonts/readme
	$(RM) misc/bzfquery

execute_after_dh_fixperms:
ifneq (,$(findstring bzflag-server, $(shell dh_listpackages)))
	chown -R games:games debian/bzflag-server/var/log/bzflag
endif