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 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139
|
#!/usr/bin/make -f
# GNU copyright 1997 to 1999 by Joey Hess.
# copyright 2000 Daniel Burrows
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk
# Files modified by the build process
KEEP_FILES = \
gui/Makefile.in \
common/Makefile.in \
client/levels/Makefile.in \
client/gfx/Oz/Makefile.in \
client/gfx/Moiree/Makefile.in \
client/gfx/Makefile.in \
client/gfx/Classic/Makefile.in \
client/gfx/AbsoluteB/Makefile.in \
client/gui_theme/Makefile.in \
client/sounds/Makefile.in \
client/Makefile.in \
server/levels/Makefile.in \
server/Makefile.in \
config.guess \
config.h.in \
config.sub \
configure \
game/Makefile.in \
Makefile.in \
docs/Makefile.in \
m4/Makefile.in
# These are used for cross-compiling and for saving the configure script
# from having to guess our platform (since we know it already)
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
configure: configure-stamp
configure-stamp:
dh_testdir
for f in $(KEEP_FILES); do [ -f $$f.orig ] || cp -a $$f $$f.orig ; done
cp -f /usr/share/misc/config.sub config.sub
cp -f /usr/share/misc/config.guess config.guess
CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
--prefix=/usr --bindir=\$${prefix}/games --mandir=\$${prefix}/share/man \
--infodir=\$${prefix}/share/info --with-highscore-path=/var/games --with-doc-path=\$${prefix}/share/doc \
--datadir=/usr/share/games --localstatedir=/var/games --with-docdir=/usr/share/doc
touch configure-stamp
build-arch: build
build-indep: build
build: build-stamp
build-stamp: configure-stamp
dh_testdir
$(MAKE)
touch build-stamp
clean:
dh_testdir
dh_testroot
rm -f build-stamp configure-stamp install-stamp
[ ! -f Makefile ] || $(MAKE) distclean
rm -f lbreakout2.desktop
for f in $(KEEP_FILES); do [ ! -f $$f.orig ] || mv $$f.orig $$f; done
dh_clean
install: install-stamp
install-stamp: build-stamp
dh_testdir
dh_testroot
dh_prep
dh_installdirs
$(MAKE) install DESTDIR=`pwd`/debian/lbreakout2
mkdir -p debian/lbreakout2-data/usr/share/doc/lbreakout2-data
dh_install -plbreakout2-data
rm -fr debian/lbreakout2/usr/share/games/lbreakout2
mkdir debian/lbreakout2/usr/share/games/lbreakout2
mv `pwd`/debian/lbreakout2/var/games/lbreakout2.hscr `pwd`/debian/lbreakout2/usr/share/games/lbreakout2/lbreakout2.hscr.blank
mkdir -p debian/lbreakout2/usr/share/pixmaps
cp debian/lbreakout2.xpm debian/lbreakout2/usr/share/pixmaps
cp debian/lbreakout2.desktop debian/lbreakout2/usr/share/applications
# Remove some files duplicated by the upstream build system
rm -fr debian/lbreakout2-data/usr/share/games/locale
rm -fr debian/lbreakout2-data/usr/share/games/applications
rm -fr debian/lbreakout2-data/usr/share/games/icons
rm -fr debian/lbreakout2/usr/share/games/applications
rm -fr debian/lbreakout2/usr/share/games/icons
touch install-stamp
binary-indep: build install
dh_testdir -i
dh_testroot -i
dh_installdocs -i -plbreakout2-data
dh_installchangelogs -i -a ChangeLog
dh_compress -i
dh_fixperms -i
dh_installdeb -i
dh_gencontrol -i
dh_md5sums -i
dh_builddeb -i
binary-arch: build install
dh_testdir -a
dh_testroot -a
dh_installdocs -plbreakout2
dh_installmenu -a
dh_installman -a debian/lbreakout2.6 debian/lbreakout2server.6
dh_installchangelogs -a ChangeLog
dh_strip -a
dh_compress -a
dh_fixperms -a
chown root:games $(CURDIR)/debian/lbreakout2/usr/games/lbreakout2
chmod g+s $(CURDIR)/debian/lbreakout2/usr/games/lbreakout2
dh_installdeb -a
dh_shlibdeps -a
dh_gencontrol -a
dh_md5sums -a
dh_builddeb -a
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install configure
|