/[pkg-games]/packages/trunk/dd2/debian/rules
ViewVC logotype

Contents of /packages/trunk/dd2/debian/rules

Parent Directory Parent Directory | Revision Log Revision Log


Revision 9651 - (show annotations) (download)
Mon Apr 27 02:48:16 2009 UTC (4 years ago) by pabs
File size: 2506 byte(s)
Drop use of dh_desktop since it no longer does anything and desktop-file-utils 0.15-2 has a trigger (see #525133)
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3
4 # Uncomment this to turn on verbose mode.
5 #export DH_VERBOSE=1
6
7 include /usr/share/quilt/quilt.make
8
9 # These are used for cross-compiling and for saving the configure script
10 # from having to guess our platform (since we know it already)
11 DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
12 DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
13
14
15 CFLAGS = -Wall -g
16
17 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
18 CFLAGS += -O0
19 else
20 CFLAGS += -O2
21 endif
22
23 config.status: patch configure
24 dh_testdir
25
26 ifneq "$(wildcard /usr/share/misc/config.sub)" ""
27 cp -f /usr/share/misc/config.sub config.sub
28 endif
29 ifneq "$(wildcard /usr/share/misc/config.guess)" ""
30 cp -f /usr/share/misc/config.guess config.guess
31 endif
32
33 autoreconf -f -i
34 CFLAGS="$(CFLAGS) -Wl,-z,defs" ./configure --enable-alternate-fire-key --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --bindir=\$${prefix}/games --infodir=\$${prefix}/share/info --datadir=\$${prefix}/share/games
35
36
37 build: build-stamp
38
39 build-stamp: config.status
40 dh_testdir
41 $(MAKE)
42 touch build-stamp
43
44 clean: unpatch
45 dh_testdir
46 dh_testroot
47 rm -f build-stamp
48 [ ! -f Makefile ] || $(MAKE) distclean
49
50 rm -f config.sub config.guess
51
52 dh_clean
53
54 install: build
55 dh_testdir
56 dh_testroot
57 dh_clean -k
58 dh_installdirs
59 $(MAKE) install DESTDIR=$(CURDIR)/debian/dodgindiamond2
60 mv $(CURDIR)/debian/dodgindiamond2/usr/games/dd2 $(CURDIR)/debian/dodgindiamond2/usr/games/dodgindiamond2
61 find $(CURDIR)/debian/dodgindiamond2/ -name "COPYING" -exec rm -rf {} \;
62 chmod 2755 $(CURDIR)/debian/dodgindiamond2/usr/games/dodgindiamond2
63 chgrp games $(CURDIR)/debian/dodgindiamond2/usr/games/dodgindiamond2
64 chgrp games $(CURDIR)/debian/dodgindiamond2/var/games/dodgindiamond2
65 rm $(CURDIR)/debian/dodgindiamond2/usr/share/games/dodgindiamond2/dd2-hiscore
66 rm -rf $(CURDIR)/debian/dodgindiamond2/usr/share/games/doc
67
68
69 # Build architecture-independent files here.
70 binary-indep: build install
71 # We have nothing to do by default.
72
73 # Build architecture-dependent files here.
74 binary-arch: build install
75 dh_testdir
76 dh_testroot
77 dh_installchangelogs ChangeLog
78 dh_installdocs
79 dh_installexamples
80 dh_install
81 dh_installmenu
82 dh_installman
83 dh_link
84 dh_strip
85 dh_compress
86 dh_fixperms -Xdodgindiamond2
87 dh_installdeb
88 dh_shlibdeps
89 dh_gencontrol
90 dh_md5sums
91 dh_builddeb
92
93 binary: binary-indep binary-arch
94 .PHONY: build clean binary-indep binary-arch binary install

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.5