File: rules

package info (click to toggle)
libxt 1:1.1.5-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 5,916 kB
  • ctags: 3,438
  • sloc: xml: 36,754; ansic: 33,551; sh: 11,349; makefile: 631
file content (41 lines) | stat: -rwxr-xr-x 1,394 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
#!/usr/bin/make -f

PACKAGE = libxt6

# only build specs if we're building libxt-doc
# if we want both all and any packages, dh runs the -arch override first
override_dh_auto_configure-arch: docflags = --disable-specs
override_dh_auto_configure-arch: libxt_configure
override_dh_auto_configure-indep: docflags = --enable-specs --with-xmlto --without-fop
override_dh_auto_configure-indep: libxt_configure

# Drop -Wl,-Bsymbolic-functions from LDFLAGS as it conflicts with
# the Xt inheritance mechanism; LP: #343574
libxt_configure: LDFLAGS := $(LDFLAGS:-Wl,-Bsymbolic-functions=)
libxt_configure:
	dh_auto_configure -- \
		--docdir=\$${datadir}/doc/libxt-dev \
		--with-appdefaultdir=/etc/X11/app-defaults \
		--with-xfile-search-path="/usr/lib/X11/%L/%T/%N%S:/usr/lib/X11/%l/%T/%N%S:/usr/lib/X11/%T/%N%S:/etc/X11/%L/%T/%N%C%S:/etc/X11/%l/%T/%N%C%S:/etc/X11/%T/%N%C%S:/etc/X11/%L/%T/%N%S:/etc/X11/%l/%T/%N%S:/etc/X11/%T/%N%S" \
		--enable-unit-tests \
		--disable-silent-rules \
		$(docflags) \
		CFLAGS="$(CFLAGS)" \
		LDFLAGS="$(LDFLAGS)"

# Kill *.la files, and forget no-one:
override_dh_install:
	find debian/tmp -name '*.la' -delete
	dh_install --fail-missing

# Debug package:
override_dh_strip:
	dh_strip -p$(PACKAGE) --dbg-package=$(PACKAGE)-dbg
	dh_strip -N$(PACKAGE)

# Shlibs:
override_dh_makeshlibs:
	dh_makeshlibs -- -c4

%:
	dh $@ --with quilt,autoreconf --builddirectory=build/