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
|
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
include /usr/share/dpkg/architecture.mk
ifeq ($(DEB_BUILD_ARCH_OS),kfreebsd)
SCONS_OPTS:=with_linuxevdev=no with_linuxusbmouse=no
endif
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk
configure: configure-stamp
configure-stamp:
dh_testdir
touch $@
build: build-arch build-indep
build-arch: build-stamp
build-indep: build-stamp
build-stamp: configure-stamp
dh_testdir
scons $(SCONS_OPTS) CPPFLAGS='$(CPPFLAGS)' CXXFLAGS='$(CXXFLAGS)' \
LINKFLAGS='$(LDFLAGS)'
touch $@
clean: clean-patched
dh_testdir
dh_testroot
dh_clean
clean-patched:
dh_testdir
dh_testroot
scons -c CPPFLAGS='$(CPPFLAGS)' CXXFLAGS='$(CXXFLAGS)' \
LINKFLAGS='$(LDFLAGS)'
rm -f build-stamp configure-stamp
rm -f config.log .sconsign.dblite
rm -rf .sconf_temp build/
install: build
dh_testdir
dh_testroot
dh_prep -a
dh_installdirs
# Build architecture-independent files here.
binary-indep:
dh_testdir
dh_testroot
dh_prep -i
dh_installchangelogs -i NEWS
dh_installdocs -i --exclude=pingus.6
mkdir -p "$(CURDIR)/debian/pingus-data/usr/share/games/pingus/"
find data/ \
-type f -a \( \
-name "*.png" -o \
-name "*.jpg" -o \
-name "*.wav" -o \
-name "*.scm" -o \
-name "*.font" -o \
-name "*.story" -o \
-name "*.credits" -o \
-name "*.prefab" -o \
-name "*.it" -o \
-name "*.ogg" -o \
-name "*.s3m" -o \
-name "*.po" -o \
-name "*.worldmap" -o \
-name "*.res" -o \
-name "*.pingus" -o \
-name "*.levelset" -o \
-name "*.sprite" \
\) -exec cp --parents -v {} "$(CURDIR)/debian/pingus-data/usr/share/games/pingus/" \;
dh_install -i
dh_compress -i
dh_fixperms -i
dh_installdeb -i
dh_gencontrol -i
dh_md5sums -i
dh_builddeb -i
# Build architecture-dependent files here.
binary-arch: build install
dh_testdir
dh_testroot
dh_installchangelogs -a NEWS
dh_installdocs -a --exclude=man/* --exclude=html/*
dh_installexamples -a
dh_install -a
dh_installmenu -a
dh_installman -a doc/man/pingus.6
dh_link -a
dh_strip -a
dh_compress -a
dh_fixperms -a
# dh_makeshlibs -a
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
|