File: rules

package info (click to toggle)
libwmf 0.2.14-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,540 kB
  • sloc: ansic: 53,534; sh: 712; makefile: 597; perl: 140
file content (41 lines) | stat: -rwxr-xr-x 1,206 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
#!/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
	find doc/ -name Makefile -delete

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/
	mv 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:
	find debian/libwmf-doc/usr/share/doc/libwmf-dev/doc/ -name 'Makefile*' -delete