File: rules

package info (click to toggle)
perlftlib 1.2-4
  • links: PTS
  • area: main
  • in suites: potato
  • size: 168 kB
  • ctags: 177
  • sloc: perl: 1,927; makefile: 111
file content (110 lines) | stat: -rwxr-xr-x 2,912 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
#!/usr/bin/make -f
# MAde with the aid of dh_make, by Craig Small
# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
# Some lines taken from debmake, by Cristoph Lameter.

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

libftdir = $(shell pwd)/debian/tmp
fttoolsdir = $(shell pwd)/debian/fttools

build: build-stamp
build-stamp:
	dh_testdir
	# Add here commands to compile the package.
	( cd FreeType && perl Makefile.PL && \
	$(MAKE) && $(MAKE) test )
	touch build-stamp

clean:
	dh_testdir
	dh_testroot
	rm -f build-stamp install-stamp
	# Add here commands to clean up after the build process.
	-( cd FreeType && perl Makefile.PL && $(MAKE) realclean )
	dh_clean

install: install-stamp
install-stamp: build-stamp
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs
	# Add here commands to install the package into debian/tmp.
	( cd FreeType && \
	$(MAKE) INSTALLDIRS=perl PREFIX=$(libftdir)/usr \
	INSTALLMAN3DIR=$(libftdir)/usr/share/man/man3 install )
	-rm $(libftdir)/`perl -MConfig -e 'print $$Config{"archlib"}'`/perllocal.pod
	install -m 644 FreeTypeWrapper.pm $(libftdir)/usr/lib/perl5/FreeTypeWrapper.pm
	touch install-stamp

# Build architecture-independent files here.
binary-indep: build install fttools
# We have nothing to do by default.

# Build architecture-dependent files here.
binary-arch: build install libft-perl

libft-perl: build
#	dh_testversion -p$@
	dh_testdir -p$@
	dh_testroot -p$@
	dh_installdocs -p$@
	dh_installexamples -p$@ FreeType/ftname
#	dh_installmenu -p$@
#	dh_installemacsen -p$@
#	dh_installinit -p$@
#	dh_installcron -p$@
	dh_installmanpages -p$@
#	dh_undocumented -p$@
	dh_installchangelogs -p$@ FreeType/Changes
	dh_strip -p$@
	dh_compress -p$@
	dh_fixperms -p$@
#	dh_suidregister -p$@
	dh_installdeb -p$@
	dh_perl -p$@
	dh_shlibdeps -p$@
	dh_gencontrol -p$@
#	dh_makeshlibs -p$@
	dh_md5sums -p$@
	dh_builddeb -p$@

fttools: build
#	dh_testversion -p$@
	dh_testdir -p$@
	dh_testroot -p$@
	rm -fr $(libftdir)/usr/share/man/man3/FreeType.3pm.gz
	install ftinfo.pl $(fttoolsdir)/usr/bin/ftinfo
	install mkttfdir.pl $(fttoolsdir)/usr/bin/mkttfdir
	dh_installdocs -p$@
	dh_installexamples -p$@
#	dh_installmenu -p$@
#	dh_installemacsen -p$@
#	dh_installinit -p$@
#	dh_installcron -p$@
#	dh_installmanpages -p$@
	echo '.so ../../../bin/ftinfo' | \
	  gzip -c9 > $(fttoolsdir)/usr/share/man/man1/ftinfo.1.gz
	echo '.so ../../../bin/mkttfdir' | \
	  gzip -c9 > $(fttoolsdir)/usr/share/man/man1/mkttfdir.1.gz
#	dh_undocumented -p$@
	dh_installchangelogs  -p$@
	dh_strip -p$@
	dh_compress -p$@
	dh_fixperms -p$@
#	dh_suidregister -p$@
	dh_installdeb -p$@
	dh_perl -p$@
	dh_shlibdeps -p$@
	dh_gencontrol -p$@
#	dh_makeshlibs -p$@
	dh_md5sums -p$@
	dh_builddeb -p$@

source diff:
	@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false

binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary