File: rules

package info (click to toggle)
rgbpaint 0.8.7-6
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 1,072 kB
  • ctags: 1,474
  • sloc: ansic: 6,212; xml: 1,522; sh: 238; python: 76; makefile: 72
file content (29 lines) | stat: -rwxr-xr-x 973 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
#!/usr/bin/make -f

DPKG_EXPORT_BUILD_FLAGS = 1

include /usr/share/dpkg/buildflags.mk

%:
	dh $@

PATTERN = fontconfig|atk-1.0|rt|gio-2.0|cairo|gmodule-2.0|gthread-2.0|pangocairo-1.0|freetype|pangoft2-1.0

override_dh_auto_configure:
	./configure cflags debug slow intl --prefix=/usr --mandir=/usr/share/man/man1
	# Newer toolchains need explicit linking to "libX11". Tweek this.
	# The inclusion of "-lfontconfig" is already superfluous. Replace it.
	sed -r -i 's,-lfontconfig,-lX11,' _conf.txt
	# Remove primary linking libraries, known to be superfluous.
	sed -r -i "s,-l($(PATTERN)) ,,g" _conf.txt
	# Compile the external manpages.
	# Use `--nonet' and `--novalid' to prevent problems.
	xsltproc --nonet --novalid debian/local/rgbpaint.xsl debian/local/rgbpaint.xml
	xsltproc --nonet --novalid debian/local/rgbpaint-xhtml.xsl debian/local/rgbpaint.xml

override_dh_installchangelogs:
	dh_installchangelogs NEWS

override_dh_auto_clean:
	touch _conf.txt
	dh_auto_clean