File: rules

package info (click to toggle)
glhack 1.2-4
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, buster
  • size: 26,744 kB
  • sloc: ansic: 208,571; cpp: 13,139; yacc: 2,005; makefile: 1,155; lex: 377; sh: 121; awk: 89; sed: 11
file content (45 lines) | stat: -rwxr-xr-x 1,177 bytes parent folder | download | duplicates (2)
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
40
41
42
43
44
45
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

LDFLAGS  = $(shell dpkg-buildflags --get LDFLAGS)
LDFLAGS += -Wl,--as-needed

CPPFLAGS = $(shell dpkg-buildflags --get CPPFLAGS)
CFLAGS   = $(shell dpkg-buildflags --get CFLAGS)
CFLAGS  += -Wall

LINK     = $(CC) $(LDFLAGS)
CCX      = $(CC) $(LDFLAGS) $(CFLAGS) $(CPPFLAGS)

override_dh_installchangelogs:
	dh_installchangelogs CHANGELOG.GL

override_dh_auto_build:
	dh_auto_build -- CC="$(CCX)" LINK="$(LINK)"

override_dh_install:
	dh_install

	# Pixmaps
	install -m 0644 dat/*.png debian/glhack/usr/share/pixmaps/glhack/
	install -m 0644 debian/glhack.xpm debian/glhack/usr/share/pixmaps/glhack/

override_dh_fixperms:
	dh_fixperms
	chmod g+s        debian/glhack/usr/lib/games/glhack/glhack
	chown root:games debian/glhack/usr/lib/games/glhack/glhack

	# Does this really need to be set-gid games as well?
	# chmod g+s debian/glhack/usr/lib/games/glhack/nhdat
	# chmod g+s debian/glhack/usr/lib/games/glhack/recover_glhack

	# Permissions
	#chmod 2664 debian/glhack/var/games/glhack/*
	#chmod 0775 debian/glhack/var/games/glhack
	#chmod 0775 debian/glhack/var/games/glhack/save

%:
	dh $@

# End of file