0ff2dcac27
Fix debian/config
106 lines
3.4 KiB
Makefile
Executable file
106 lines
3.4 KiB
Makefile
Executable file
#!/usr/bin/make -f
|
|
# debian/rules that uses debhelper.
|
|
# GNU copyright 1997 to 1999 by Joey Hess.
|
|
# GNU Copyright 2002-2004 by David Martí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)
|
|
|
|
CONFIGURE_FLAGS=--prefix=/usr --datadir=/usr/share/games/stratagus/default --with-theora
|
|
|
|
export CFLAGS
|
|
|
|
configure: configure-stamp
|
|
|
|
configure-stamp:
|
|
dh_testdir
|
|
|
|
./autogen.sh
|
|
./configure $(CONFIGURE_FLAGS)
|
|
|
|
touch configure-stamp
|
|
|
|
build: build-stamp
|
|
|
|
build-stamp: configure-stamp
|
|
dh_testdir
|
|
|
|
OUTFILE="./stratagus" $(MAKE)
|
|
|
|
touch build-stamp
|
|
|
|
clean:
|
|
dh_testdir
|
|
dh_testroot
|
|
rm -f build-stamp* configure-stamp*
|
|
|
|
-OUTFILE="./stratagus" $(MAKE) distclean
|
|
|
|
dh_clean
|
|
|
|
install: build
|
|
dh_testdir
|
|
dh_testroot
|
|
dh_clean -k
|
|
dh_installdirs
|
|
|
|
OUTFILE="./stratagus" $(MAKE) install-stratagus PREFIX=$(CURDIR)/debian/stratagus/usr
|
|
mv $(CURDIR)/debian/stratagus/usr/bin $(CURDIR)/debian/stratagus/usr/games/stratagus
|
|
|
|
# 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
|
|
rm -rf `find debian/ | grep .svn`
|
|
dh_installmenu
|
|
dh_installman
|
|
dh_installchangelogs doc/ChangeLog.html
|
|
dh_strip
|
|
dh_compress
|
|
dh_fixperms
|
|
dh_installdeb
|
|
|
|
## Maemo section - Optify
|
|
if test "`uname -a | grep -is arm`" && test -f /etc/maemo_version; then \
|
|
mkdir -p $(CURDIR)/debian/stratagus/opt/stratagus/bin; \
|
|
mkdir -p $(CURDIR)/debian/stratagus/opt/stratagus/share/doc; \
|
|
mkdir -p $(CURDIR)/debian/stratagus/opt/stratagus/share/doc-base; \
|
|
mkdir -p $(CURDIR)/debian/stratagus/opt/stratagus/share/stratagus; \
|
|
mkdir -p $(CURDIR)/debian/stratagus/opt/stratagus/share/man; \
|
|
mkdir -p $(CURDIR)/debian/stratagus/opt/stratagus/share/menu; \
|
|
mv $(CURDIR)/debian/stratagus/usr/games/stratagus $(CURDIR)/debian/stratagus/opt/stratagus/bin/stratagus; \
|
|
mv $(CURDIR)/debian/stratagus/usr/share/doc/stratagus $(CURDIR)/debian/stratagus/opt/stratagus/share/doc; \
|
|
mv $(CURDIR)/debian/stratagus/usr/share/doc-base/stratagus $(CURDIR)/debian/stratagus/opt/stratagus/share/doc-base; \
|
|
mv $(CURDIR)/debian/stratagus/usr/share/games/stratagus $(CURDIR)/debian/stratagus/opt/stratagus/share/stratagus; \
|
|
mv $(CURDIR)/debian/stratagus/usr/share/man/man6/stratagus.6.gz $(CURDIR)/debian/stratagus/opt/stratagus/share/man/stratagus.6.gz; \
|
|
mv $(CURDIR)/debian/stratagus/usr/share/menu/stratagus $(CURDIR)/debian/stratagus/opt/stratagus/share/menu; \
|
|
ln -s /opt/stratagus/bin/stratagus $(CURDIR)/debian/stratagus/usr/games/stratagus; \
|
|
ln -s /opt/stratagus/share/doc/ $(CURDIR)/debian/stratagus/usr/share/doc/stratagus; \
|
|
ln -s /opt/stratagus/share/doc-base/ $(CURDIR)/debian/stratagus/usr/share/doc-base/stratagus; \
|
|
ln -s /opt/stratagus/share/stratagus/ $(CURDIR)/debian/stratagus/usr/share/games/stratagus; \
|
|
ln -s /opt/stratagus/share/man/stratagus.6.gz $(CURDIR)/debian/stratagus/usr/share/man/man6/stratagus.6.gz; \
|
|
ln -s /opt/stratagus/share/menu/ $(CURDIR)/debian/stratagus/usr/share/menu/stratagus; \
|
|
fi
|
|
|
|
dh_shlibdeps
|
|
dh_gencontrol
|
|
dh_md5sums
|
|
dh_builddeb
|
|
|
|
binary: binary-indep binary-arch
|
|
.PHONY: build clean binary-indep binary-arch binary install configure
|
|
|