File: rules

package info (click to toggle)
gssdp 1.6.4-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,816 kB
  • sloc: ansic: 7,126; javascript: 642; python: 32; sh: 19; makefile: 17; xml: 9
file content (27 lines) | stat: -rwxr-xr-x 770 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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_APPEND = -Wl,-O1 -Wl,-z,defs
export DPKG_GENSYMBOLS_CHECK_LEVEL = 4

# Ubuntu doesn't build pandoc for i386
GTK4_ARCHES := amd64 arm64 armhf ppc64el riscv64 s390x alpha hppa hurd-amd64 hurd-i386 powerpc ppc64 sparc64

ifeq (,$(filter $(DEB_HOST_ARCH),$(GTK4_ARCHES)))
	ENABLE_SNIFFER = -Dsniffer=false -Dmanpages=false
endif

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- \
		$(ENABLE_SNIFFER) \
		-Dgtk_doc=$(if $(filter %-doc,$(shell dh_listpackages)),true,false)

# Make the tests non-fatal on hurd as multicast requires to explicitly
# setup a route
ifneq (,$(filter $(DEB_HOST_ARCH),hurd-amd64 hurd-i386))
override_dh_auto_test:
	dh_auto_test || true
endif