File: rules

package info (click to toggle)
gupnp 1.2.1-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 1,424 kB
  • sloc: ansic: 15,363; xml: 1,269; python: 418; makefile: 30
file content (43 lines) | stat: -rwxr-xr-x 1,182 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
31
32
33
34
35
36
37
38
39
40
41
42
43
#! /usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_APPEND = -Wl,-O1 -Wl,-z,defs -Wl,--as-needed

# Needed for testsuite
export XDG_RUNTIME_DIR = $(CURDIR)/debian/tmp/tmp-xdgruntimedir

ifeq ($(DEB_BUILD_ARCH_OS),linux)
CONFFLAGS = -Dcontext_manager=linux
else
CONFFLAGS = -Dcontext_manager=system
endif

%:
	dh $@ --with gnome,gir,python3

override_dh_clean:
	rm -f doc/version.xml
	dh_clean

override_dh_auto_configure:
	dh_auto_configure -- -Dgtk_doc=true $(CONFFLAGS)

override_dh_makeshlibs:
	dh_makeshlibs -- -c4

override_dh_strip:
	dh_strip --dbgsym-migration='libgupnp-1.0-dbg (<< 0.99.0-1~)'

override_dh_installman:
	cp obj-$(DEB_HOST_GNU_TYPE)/doc/version.xml doc
	xsltproc --novalid --nonet --xinclude -o debian/stripped-docs.xml debian/strip-manpages.xsl doc/gupnp-binding-tool.xml
	xsltproc --novalid --nonet /usr/share/xml/docbook/stylesheet/docbook-xsl/manpages/docbook.xsl debian/stripped-docs.xml
	rm -f debian/stripped-docs.xml
	dh_installman -p libgupnp-1.2-dev gupnp-binding-tool-1.2.1
	dh_installman --remaining-packages

override_dh_missing:
	dh_missing --fail-missing

override_dh_compress:
	dh_compress -Xexamples