2009-05-23 02:38:51 -06:00
|
|
|
|
#!/usr/bin/make -f
|
|
|
|
|
# debian/rules that uses debhelper.
|
|
|
|
|
# GNU copyright 1997 to 1999 by Joey Hess.
|
|
|
|
|
# GNU Copyright 2002-2004 by David Mart<72>nez Moreno.
|
|
|
|
|
|
|
|
|
|
# Do you want verbosity...? Uncomment this.
|
|
|
|
|
#export DH_VERBOSE=1
|
|
|
|
|
|
|
|
|
|
export LC_ALL=C
|
|
|
|
|
|
|
|
|
|
# We have to honor DEB_BUILD...
|
|
|
|
|
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
|
|
|
|
|
CONFIGURE_FLAGS += --enable-profile
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
DEB_BUILD_GNU_CPU ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_CPU)
|
|
|
|
|
|
2010-05-14 03:08:44 -06:00
|
|
|
|
CONFIGURE_FLAGS=--prefix=/usr --datadir=/usr/share/games/stratagus/default --with-theora
|
2009-05-23 02:38:51 -06:00
|
|
|
|
|
|
|
|
|
export CFLAGS
|
|
|
|
|
|
|
|
|
|
configure: configure-stamp
|
|
|
|
|
|
2009-06-17 11:29:31 -06:00
|
|
|
|
configure-stamp:
|
2009-05-23 02:38:51 -06:00
|
|
|
|
dh_testdir
|
|
|
|
|
|
|
|
|
|
./autogen.sh
|
2009-06-17 11:29:31 -06:00
|
|
|
|
./configure $(CONFIGURE_FLAGS)
|
2009-05-23 02:38:51 -06:00
|
|
|
|
|
2009-06-17 11:29:31 -06:00
|
|
|
|
touch configure-stamp
|
2009-05-23 02:38:51 -06:00
|
|
|
|
|
2009-06-17 11:29:31 -06:00
|
|
|
|
build: build-stamp
|
2009-05-23 02:38:51 -06:00
|
|
|
|
|
2009-06-17 11:29:31 -06:00
|
|
|
|
build-stamp: configure-stamp
|
2009-05-23 02:38:51 -06:00
|
|
|
|
dh_testdir
|
|
|
|
|
|
2009-06-17 11:29:31 -06:00
|
|
|
|
OUTFILE="./stratagus" $(MAKE)
|
2009-05-23 02:38:51 -06:00
|
|
|
|
|
2009-06-17 11:29:31 -06:00
|
|
|
|
touch build-stamp
|
2009-05-23 02:38:51 -06:00
|
|
|
|
|
|
|
|
|
clean:
|
|
|
|
|
dh_testdir
|
|
|
|
|
dh_testroot
|
|
|
|
|
rm -f build-stamp* configure-stamp*
|
|
|
|
|
|
2009-06-17 11:29:31 -06:00
|
|
|
|
-OUTFILE="./stratagus" $(MAKE) distclean
|
2009-05-23 02:38:51 -06:00
|
|
|
|
|
|
|
|
|
dh_clean
|
|
|
|
|
|
|
|
|
|
install: build
|
|
|
|
|
dh_testdir
|
|
|
|
|
dh_testroot
|
|
|
|
|
dh_clean -k
|
|
|
|
|
dh_installdirs
|
|
|
|
|
|
2009-06-17 11:29:31 -06:00
|
|
|
|
OUTFILE="./stratagus" $(MAKE) install-stratagus PREFIX=$(CURDIR)/debian/stratagus/usr
|
|
|
|
|
mv $(CURDIR)/debian/stratagus/usr/bin $(CURDIR)/debian/stratagus/usr/games/stratagus
|
2009-05-23 02:38:51 -06:00
|
|
|
|
|
|
|
|
|
# Build architecture-independent files here.
|
|
|
|
|
binary-indep: build install
|
|
|
|
|
|
|
|
|
|
# Build architecture-dependent files here.
|
|
|
|
|
binary-arch: build install
|
|
|
|
|
dh_testdir
|
|
|
|
|
dh_testroot
|
|
|
|
|
# dh_installdebconf
|
|
|
|
|
dh_installdocs -Xgpl.html -Xgpl.txt -Xinstall.html
|
2010-05-14 03:08:44 -06:00
|
|
|
|
rm -rf `find debian/ | grep .svn`
|
2009-05-23 02:38:51 -06:00
|
|
|
|
dh_installmenu
|
|
|
|
|
dh_installman
|
|
|
|
|
dh_installchangelogs doc/ChangeLog.html
|
|
|
|
|
dh_strip
|
|
|
|
|
dh_compress
|
|
|
|
|
dh_fixperms
|
|
|
|
|
dh_installdeb
|
|
|
|
|
dh_shlibdeps
|
|
|
|
|
dh_gencontrol
|
|
|
|
|
dh_md5sums
|
|
|
|
|
dh_builddeb
|
|
|
|
|
|
|
|
|
|
binary: binary-indep binary-arch
|
|
|
|
|
.PHONY: build clean binary-indep binary-arch binary install configure
|
|
|
|
|
|