File: rules

package info (click to toggle)
libwmf 0.2.13-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,240 kB
  • sloc: ansic: 53,532; sh: 4,891; makefile: 608; perl: 140
file content (47 lines) | stat: -rwxr-xr-x 1,381 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/usr/bin/make -f
#export DH_VERBOSE = 1


export DEB_BUILD_MAINT_OPTIONS = hardening=+all

export DEB_CFLAGS_MAINT_APPEND  = -Wall -pedantic
export DEB_LDFLAGS_MAINT_APPEND =


%:
	dh $@

build-indep:
	# pass

execute_after_dh_clean:
	# build source after successful build
	rm -f config.log \
		doc/Makefile \
		doc/caolan/Makefile \
		doc/caolan/pics/Makefile \
		doc/html/Makefile

override_dh_autoreconf:
	dh_autoreconf autoreconf -- -f -i -Ipatches

override_dh_auto_configure:
	dh_auto_configure -- \
		--with-fontdir=/non-existent \
		--with-gsfontdir=/usr/share/fonts/type1/urw-base35 \
		--with-sysfontmap=/non-existent \
		--with-gsfontmap=/var/lib/ghostscript/fonts/Fontmap \
		--with-xtrafontmap=/etc/libwmf.fontmap

execute_after_dh_install-arch:
	mkdir -p debian/libwmf-dev/usr/lib/$(DEB_HOST_MULTIARCH)/libwmf/bin/
	# tmp
	cp debian/libwmf-dev/usr/bin/libwmf-config debian/libwmf-dev/usr/lib/$(DEB_HOST_MULTIARCH)/libwmf/bin/
	#rmdir debian/libwmf-dev/usr/bin/
	ln -s libwmf-0.2.so.7 debian/libwmf-dev/usr/lib/$(DEB_HOST_MULTIARCH)/libwmf-0.2.so
	ln -s libwmflite-0.2.so.7 debian/libwmf-dev/usr/lib/$(DEB_HOST_MULTIARCH)/libwmflite-0.2.so

execute_after_dh_installdocs-indep:
	rm debian/libwmf-doc/usr/share/doc/libwmf-dev/doc/Makefile* \
		debian/libwmf-doc/usr/share/doc/libwmf-dev/doc/*/Makefile* \
		debian/libwmf-doc/usr/share/doc/libwmf-dev/doc/*/*/Makefile*