File: rules

package info (click to toggle)
openjazz 20190106-3
  • links: PTS, VCS
  • area: contrib
  • in suites: bookworm, bullseye
  • size: 1,872 kB
  • sloc: cpp: 16,127; makefile: 169
file content (31 lines) | stat: -rwxr-xr-x 924 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
#!/usr/bin/make -f

DATAPATH = /usr/share/games/jazz-jackrabbit/

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_CFLAGS_MAINT_APPEND = -Wall
export DEB_CPPFLAGS_MAINT_APPEND = -DHOMEDIR -DDATAPATH=\"$(DATAPATH)\"
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed -Wl,--no-undefined

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- \
		bindir=/usr/games

override_dh_auto_install:
	dh_auto_install -- \
		pkgdatadir="$(DATAPATH)"

override_dh_install:
	sed -e "/^Name/s/$$/ Holiday Hare '95/" \
	    -e "/^Exec/s/$$/ \/usr\/share\/games\/jazz-jackrabbit-hh95/" \
	    -e "$$ a TryExec=/usr/share/games/jazz-jackrabbit-hh95/jazz-jackrabbit" \
	    < $(CURDIR)/unix/OpenJazz.desktop \
	    > $(CURDIR)/debian/OpenJazz-HH95.desktop
	dh_install debian/OpenJazz-HH95.desktop usr/share/applications

override_dh_installman:
	pod2man unix/OpenJazz.6.pod > debian/OpenJazz.6
	dh_installman debian/OpenJazz.6