File: rules

package info (click to toggle)
foot 1.25.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,108 kB
  • sloc: ansic: 41,260; python: 474; sh: 181; xml: 57; makefile: 18
file content (30 lines) | stat: -rwxr-xr-x 767 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
30
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@ --builddir=build

ifneq (,$(filter nopgo,$(DEB_BUILD_OPTIONS)))
DISABLE_PGO=1
endif
ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
DISABLE_PGO=1
endif


# PGO is enabled
ifneq (1,$(DISABLE_PGO))
# According to upstream's INSTALL.md, -O2 with PGO can create issues
export DEB_CFLAGS_MAINT_STRIP = -O2
# optimize=-lto because the pgo script handles lto by itself
export DEB_BUILD_MAINT_OPTIONS = hardening=+all optimize=-lto
# meson setup is run by ./pgo/pgo.sh
override_dh_auto_configure:

override_dh_auto_build:
	./pgo/pgo.sh partial . build --prefix=/usr --wrap-mode=nodownload -Dterminfo-base-name=foot-extra
endif

execute_after_dh_auto_install:
	rm debian/tmp/usr/share/doc/foot/LICENSE