File: rules

package info (click to toggle)
cevomapgen 39-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 476 kB
  • sloc: pascal: 2,765; xml: 169; makefile: 50
file content (29 lines) | stat: -rwxr-xr-x 692 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
export DH_VERBOSE = 1
export DEB_BUILD_MAINT_OPTIONS  = hardening=+all

# Used in Makefile
export prefix = /usr
export bindir = games
export docdir = c-evo-map-gen

execute_before_dh_auto_build:
	@echo "blhc: ignore-line-regexp: Compiling(.+)"

# -pie breaks autopkgtest on ppc64el and compile on m68k
ifeq ($(DEB_HOST_ARCH),ppc64el)
	sed -i '/\-k\-pie/d' fpc.cfg
else ifeq ($(DEB_HOST_ARCH),m68k)
	sed -i '/\-Cg/d' fpc.cfg
endif

# restore config file so build twice can work
execute_after_dh_auto_build:
ifeq ($(DEB_HOST_ARCH),ppc64el)
	sed -i '/\-Cg/a \-k\-pie' fpc.cfg
else ifeq ($(DEB_HOST_ARCH),m68k)
	sed -i '/\-k\-pie/i \-Cg' fpc.cfg
endif

%:
	dh $@ --no-parallel