File: rules

package info (click to toggle)
crossfire 1.71.0%2Bdfsg1-1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 28,080 kB
  • sloc: ansic: 85,126; sh: 11,969; perl: 2,659; lex: 2,044; makefile: 1,271
file content (39 lines) | stat: -rwxr-xr-x 1,361 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

DEB_BUILD_PARALLEL=yes

DEB_FIXPERMS_DH_ARGS := -X/usr/games/crossfire /var/log/crossfire \
		-X/var/games/crossfire \
		-X/var/games/crossfire/datafiles \
		-X/var/games/crossfire/players \
		-X/var/games/crossfire/temp.maps \
		-X/var/games/crossfire/unique-items

include /usr/share/cdbs/1/rules/autoreconf.mk
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/autotools.mk

# useless notes for upgrading from pre 1.3.0 versions
DEB_INSTALL_DOCS_ALL := -XNEWS -XMakefile -XMakefile.am -XMakefile.in

DEB_CONFIGURE_EXTRA_FLAGS :=	--bindir=/usr/games \
				--datadir=/usr/share/games \
				--localstatedir=/var/games \
				--disable-check

binary-install/crossfire-server::
	chown games:games debian/crossfire-server/var/log/crossfire \
		debian/crossfire-server/var/games/crossfire \
		debian/crossfire-server/var/games/crossfire/account \
		debian/crossfire-server/var/games/crossfire/datafiles \
		debian/crossfire-server/var/games/crossfire/players \
		debian/crossfire-server/var/games/crossfire/temp.maps \
		debian/crossfire-server/var/games/crossfire/unique-items

binary-fixup/crossfire-server::
	find debian/crossfire-server/usr/lib/crossfire/ -name "*.la" -exec rm "{}" ";"

# Upstream forgot to include a build stamp for the arch generated
# files
pre-build::
	touch -t 200001010000 lib/.collect-stamp