File: rules

package info (click to toggle)
glob2 0.9.4.4-4
  • links: PTS
  • area: main
  • in suites:
  • size: 34,824 kB
  • sloc: cpp: 89,685; python: 868; ansic: 259; sh: 49; makefile: 18
file content (26 lines) | stat: -rwxr-xr-x 877 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
#!/usr/bin/make -f

#export DH_VERBOSE=1
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

BUILD_FLAGS=--portaudio=true
BUILD_FLAGS+=INSTALLDIR=$(CURDIR)/debian/tmp/usr/share/games/ BINDIR=$(CURDIR)/debian/tmp/usr/games/
BUILD_FLAGS+=LINKFLAGS="$(shell dpkg-buildflags --get LDFLAGS)"
BUILD_FLAGS+=CXXFLAGS="$(shell dpkg-buildflags --get CPPFLAGS) $(shell dpkg-buildflags --get CXXFLAGS)"

%:
	dh $@

override_dh_auto_build:
	scons $(BUILD_FLAGS)

override_dh_auto_install:
	scons install $(BUILD_FLAGS)
	uudecode -o debian/patches/tutorial-part4.map.bspatch debian/patches/tutorial-part4.map.uuencode
	bspatch campaigns/tutorial-part4.map \
		debian/tmp/usr/share/games/glob2/campaigns/tutorial-part4.map \
		debian/patches/tutorial-part4.map.bspatch
	chmod 644 debian/tmp/usr/share/games/glob2/campaigns/Tutorial_Campaign.txt

override_dh_auto_clean:
	scons -c $(BUILD_FLAGS)