Codebase list libfilter-perl / ac64675
Convert to debhelper 7. Colin Watson 14 years ago
5 changed file(s) with 14 addition(s) and 69 deletion(s). Raw diff Collapse all Expand all
00 libfilter-perl (1.34-2) UNRELEASED; urgency=low
11
22 * Update DEB_BUILD_OPTIONS parsing code from policy 3.8.0.
3 * Convert to debhelper 7.
34
45 -- Colin Watson <cjwatson@debian.org> Sun, 08 Jun 2008 21:43:08 +0100
56
0 # for 'make test'
1 Try.pm
11 Section: perl
22 Priority: optional
33 Maintainer: Colin Watson <cjwatson@debian.org>
4 Build-Depends: debhelper (>= 4.0.0), perl (>= 5.8.0-3)
4 Build-Depends: debhelper (>= 7.0.50), perl (>= 5.8.0-3)
55 Standards-Version: 3.7.3
66 Homepage: http://www.cpan.org/modules/by-module/Filter/
77
0 #!/usr/bin/make -f
1 # Sample debian/rules that uses debhelper.
2 # GNU copyright 1997 to 1999 by Joey Hess.
0 #! /usr/bin/make -f
31
4 # Uncomment this to turn on verbose mode.
5 #export DH_VERBOSE=1
6
7 tmp = $(CURDIR)/debian/libfilter-perl
8 config = INSTALLDIRS=vendor INSTALLMAN3DIR=/usr/share/man/man3
9 vendorarch = `perl -MConfig -e 'print $$Config{vendorarch}'`
10
11 configure: configure-stamp
12 configure-stamp:
13 dh_testdir
14 # Add here commands to configure the package.
15 perl Makefile.PL $(config)
16
17 touch configure-stamp
18
19 build: configure build-stamp
20 build-stamp:
21 dh_testdir
22
23 # Add here commands to compile the package.
242 ifeq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
25 $(MAKE) OPTIMIZE="-O2 -g -Wall"
3 CFLAGS := -O2 -g -Wall
264 else
27 $(MAKE) OPTIMIZE="-g -Wall"
5 CFLAGS := -g -Wall
286 endif
297
30 touch build-stamp
8 %:
9 dh $@
3110
32 clean: configure
33 dh_testdir
34 dh_testroot
11 override_dh_auto_configure:
12 dh_auto_configure -- INSTALLMAN3DIR=/usr/share/man/man3
3513
36 # Add here commands to clean up after the build process.
37 [ ! -f Makefile ] || $(MAKE) realclean
38 rm -f Try.pm # for 'make test'
39
40 dh_clean build-stamp configure-stamp
41
42 install: build
43 dh_testdir
44 dh_testroot
45 dh_clean -k
46 dh_installdirs
47
48 # Add here commands to install the package into debian/tmp.
49 $(MAKE) install PREFIX=$(tmp)/usr
50
51 # Build architecture-independent files here.
52 binary-indep: build install
53 # We have nothing to do by default.
54
55 # Build architecture-dependent files here.
56 binary-arch: build install
57 dh_testdir
58 dh_testroot
59 dh_installdocs
60 dh_installexamples
61 dh_installchangelogs Changes
62 dh_strip
63 dh_compress
64 dh_fixperms
65 dh_installdeb
66 dh_perl
67 dh_shlibdeps
68 dh_gencontrol
69 dh_md5sums
70 dh_builddeb
71
72 binary: binary-indep binary-arch
73 .PHONY: build clean binary-indep binary-arch binary install configure
14 override_dh_auto_build:
15 dh_auto_build -- OPTIMIZE="$(CFLAGS)"