File: rules

package info (click to toggle)
forge 1.0.1-3
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 2,256 kB
  • sloc: cpp: 12,447; ansic: 319; xml: 182; makefile: 19
file content (29 lines) | stat: -rwxr-xr-x 736 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
#!/usr/bin/make -f

include /usr/share/dpkg/architecture.mk

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE = 1

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

BUILD_OPTIONS = -DBUILD_EXAMPLES=OFF \
		-DFG_INSTALL_CMAKE_DIR="lib/$(DEB_HOST_MULTIARCH)/cmake/Forge" \
		-DFG_INSTALL_LIB_DIR="lib/$(DEB_HOST_MULTIARCH)" \
		-DUSE_SYSTEM_FREETYPE=ON \
		-DUSE_SYSTEM_GLBINDING=ON \
		-DUSE_SYSTEM_GLM=ON

%:
	dh $@

override_dh_auto_configure-arch:
	dh_auto_configure -- $(BUILD_OPTIONS) \
		-DBUILD_DOCUMENTATION=OFF

override_dh_auto_configure-indep:
ifeq (,$(findstring nodoc,$(DEB_BUILD_PROFILES)))
	dh_auto_configure -- $(BUILD_OPTIONS) \
		-DBUILD_DOCUMENTATION=ON \
		-DFG_INSTALL_DOC_DIR="share/doc/forge-doc"
endif