File: rules

package info (click to toggle)
openjazz 20240919-1
  • links: PTS, VCS
  • area: contrib
  • in suites: forky, sid, trixie
  • size: 2,308 kB
  • sloc: cpp: 32,001; makefile: 109; xml: 21
file content (25 lines) | stat: -rwxr-xr-x 801 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
#!/usr/bin/make -f

include /usr/share/dpkg/pkg-info.mk

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_CPPFLAGS_MAINT_APPEND = \
	-DOJ_DATE='"$(shell date --utc --date=@${SOURCE_DATE_EPOCH} +%Y-%m-%d)"' \
	-DOJ_VERSION='"$(DEB_VERSION)"' \
	-UOJ_VERSION_GIT

%:
	dh $@ --buildsystem=cmake

override_dh_auto_configure:
	dh_auto_configure -- \
		-DCMAKE_INSTALL_BINDIR=games \
		-DDATAPATH=/usr/share/games/jazz-jackrabbit

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)/res/unix/OpenJazz.desktop \
	    > $(CURDIR)/debian/OpenJazz-HH95.desktop
	dh_install debian/OpenJazz-HH95.desktop usr/share/applications