Package list pangzero / aa008d0
Switch to debhelper compat 9 and dh rules.tiny Paul Wise 9 years ago
4 changed file(s) with 5 addition(s) and 87 deletion(s). Raw diff Collapse all Expand all
1111 * Switch to dpkg-source v3
1212 * Wrap and sort fields in various files
1313 * Sync desktop file to the menu file
14 * Switch to debhelper compat 9 and dh rules.tiny
1415
1516 -- Jon Dowland <jmtd@debian.org> Wed, 08 Sep 2010 21:18:32 +0100
1617
66 Sam Hocevar <sho@debian.org>,
77 Marco Rodrigues <gothicx@sapo.pt>,
88 Barry deFreese <bdefreese@debian.org>
9 Build-Depends: debhelper (>= 5)
9 Build-Depends: debhelper (>= 9)
1010 Build-Depends-Indep: autotools-dev, libsdl-perl
1111 Standards-Version: 3.8.1
1212 Vcs-Svn: svn://svn.debian.org/svn/pkg-games/packages/trunk/pangzero/
00 #!/usr/bin/make -f
1
2 # Uncomment this to turn on verbose mode.
3 #export DH_VERBOSE=1
4
5 # These are used for cross-compiling and for saving the configure script
6 # from having to guess our platform (since we know it already)
7 DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
8 DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
9
10 CFLAGS = -Wall -g
11
12 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
13 CFLAGS += -O0
14 else
15 CFLAGS += -O2
16 endif
17
18 config.status: configure
19 dh_testdir
20
21 ifneq "$(wildcard /usr/share/misc/config.sub)" ""
22 cp -f /usr/share/misc/config.sub config.sub
23 endif
24 ifneq "$(wildcard /usr/share/misc/config.guess)" ""
25 cp -f /usr/share/misc/config.guess config.guess
26 endif
27 ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
28 --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info \
29 --bindir=\$${prefix}/games --datadir=\$${prefix}/share/games \
30 CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs"
31
32 build: build-stamp
33
34 build-stamp: config.status
35 dh_testdir
36 $(MAKE)
37 #docbook-to-man debian/pangzero.sgml > pangzero.1
38 touch $@
39
40 clean:
41 dh_testdir
42 dh_testroot
43 rm -f build-stamp
44 [ ! -f Makefile ] || $(MAKE) distclean
45 -rm -f config.sub config.guess config.log config.status
46
47 dh_clean
48
49 install: build
50 dh_testdir
51 dh_testroot
52 dh_clean -k
53 dh_installdirs
54 $(MAKE) DESTDIR=$(CURDIR)/debian/pangzero install
55 dh_installdirs usr/share/pixmaps
56 dh_install debian/pangzero.xpm usr/share/pixmaps
57 dh_installdirs usr/share/applications
58 dh_install debian/pangzero.desktop usr/share/applications
59
60 # Build architecture-independent files here.
61 binary-indep: build install
62 dh_testdir
63 dh_testroot
64 dh_installchangelogs ChangeLog
65 dh_installdocs
66 dh_installexamples
67 # dh_install
68 dh_installmenu
69 dh_installinfo
70 dh_installman debian/pangzero.6
71 dh_link
72 dh_strip
73 dh_compress
74 dh_fixperms
75 dh_perl
76 dh_installdeb
77 dh_gencontrol
78 dh_md5sums
79 dh_builddeb
80
81 # Build architecture-dependent files here.
82 binary-arch: build install
83
84 binary: binary-indep binary-arch
85 .PHONY: build clean binary-indep binary-arch binary install
1 %:
2 dh $@ --parallel