File: rules

package info (click to toggle)
instead 3.5.2%2Bdfsg-0.2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 6,300 kB
  • sloc: ansic: 28,336; sh: 452; makefile: 236
file content (29 lines) | stat: -rwxr-xr-x 917 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
#!/usr/bin/make -f

# Output every command that modifies files on the build system
#export DH_VERBOSE = 1

# Enable all hardening options
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

# Install INSTEAD to /usr/games rather than to /usr/bin
BINDIR = games
# Put data into /usr/share/games/instead rather than /usr/share/instead
DATADIR = share/games/instead
# Configure CMake build
CMAKE_FLAGS = -DWITH_HARFBUZZ=1
# Use libluajit on supported arches and liblua51 otherwise
ifeq ($(findstring $(DEB_TARGET_ARCH), amd64 arm64 armel armhf i386 mips64el mipsel s390x powerpc riscv64 loong64),)
CMAKE_FLAGS += -DWITH_LUAJIT=0
endif
# Override some variables in CMakeLists.txt
CMAKE_CACHE_FLAGS = -DBINDIR=$(BINDIR) -DDATADIR=$(DATADIR)

%:
	dh $@ --buildsystem=cmake

override_dh_auto_configure:
	dh_auto_configure -- $(CMAKE_FLAGS) $(CMAKE_CACHE_FLAGS)

override_dh_compress:
	dh_compress --exclude=.pdf --exclude=.lua