| 1 |
pdewacht-guest |
6836 |
#!/usr/bin/make -f |
| 2 |
|
|
|
| 3 |
|
|
# Uncomment this to turn on verbose mode. |
| 4 |
|
|
#export DH_VERBOSE=1 |
| 5 |
|
|
|
| 6 |
|
|
export CFLAGS = -Wall -g $(if $(findstring noopt,$(DEB_BUILD_OPTIONS)), -O0, -O2) |
| 7 |
|
|
export CXXFLAGS = $(CFLAGS) |
| 8 |
|
|
|
| 9 |
|
|
|
| 10 |
pdewacht-guest |
7987 |
patch: patch-stamp |
| 11 |
|
|
patch-stamp: |
| 12 |
pdewacht-guest |
6836 |
dh_testdir |
| 13 |
|
|
$(MAKE) -f /usr/share/quilt/quilt.make patch |
| 14 |
|
|
touch $@ |
| 15 |
|
|
|
| 16 |
pdewacht-guest |
7102 |
build: build-arch build-indep |
| 17 |
pdewacht-guest |
6836 |
|
| 18 |
pdewacht-guest |
7102 |
build-arch: build-arch-stamp |
| 19 |
pdewacht-guest |
7987 |
build-arch-stamp: patch-stamp |
| 20 |
pdewacht-guest |
6836 |
dh_testdir |
| 21 |
|
|
# Add here commands to compile the package. |
| 22 |
pdewacht-guest |
7098 |
rm -f SWIG/KikiPy_wrap.cpp #force regeneration of SWIG bindings |
| 23 |
pdewacht-guest |
6836 |
make -C kodilib/linux |
| 24 |
|
|
make -C linux \ |
| 25 |
|
|
PYTHON_INCLUDES="$(shell python-config --include)" \ |
| 26 |
|
|
PYTHONLIBS="$(shell python-config --libs)" |
| 27 |
pdewacht-guest |
6992 |
rm -f py/kiki.py |
| 28 |
pdewacht-guest |
6836 |
touch $@ |
| 29 |
|
|
|
| 30 |
pdewacht-guest |
7102 |
build-indep: build-indep-stamp |
| 31 |
|
|
build-indep-stamp: |
| 32 |
|
|
dh_testdir |
| 33 |
|
|
oggenc sound/*.wav |
| 34 |
|
|
touch $@ |
| 35 |
pdewacht-guest |
6836 |
|
| 36 |
|
|
clean: |
| 37 |
|
|
dh_testdir |
| 38 |
|
|
dh_testroot |
| 39 |
pdewacht-guest |
7987 |
rm -f build-stamp patch-stamp |
| 40 |
pdewacht-guest |
6836 |
# Add here commands to clean up after the build process. |
| 41 |
|
|
make -C linux clean |
| 42 |
|
|
make -C kodilib/linux clean |
| 43 |
pdewacht-guest |
6992 |
rm -f py/kiki.py SWIG/kiki.py SWIG/KikiPy_wrap.cpp |
| 44 |
pdewacht-guest |
7102 |
rm -f sound/*.ogg |
| 45 |
pdewacht-guest |
6836 |
$(MAKE) -f /usr/share/quilt/quilt.make unpatch |
| 46 |
|
|
dh_clean |
| 47 |
|
|
|
| 48 |
|
|
|
| 49 |
|
|
install: install-indep install-arch |
| 50 |
|
|
|
| 51 |
|
|
install-indep: build |
| 52 |
|
|
dh_testdir |
| 53 |
|
|
dh_testroot |
| 54 |
|
|
dh_clean -k -i |
| 55 |
|
|
dh_installdirs -i |
| 56 |
|
|
dh_install -i |
| 57 |
|
|
|
| 58 |
|
|
install-arch: build |
| 59 |
|
|
dh_testdir |
| 60 |
|
|
dh_testroot |
| 61 |
|
|
dh_clean -k -a |
| 62 |
|
|
dh_installdirs -a |
| 63 |
pdewacht-guest |
7980 |
install linux/kiki debian/kiki-the-nano-bot/usr/games/kiki-the-nano-bot |
| 64 |
pdewacht-guest |
6836 |
dh_install -a |
| 65 |
|
|
|
| 66 |
|
|
|
| 67 |
|
|
binary: binary-indep binary-arch |
| 68 |
|
|
|
| 69 |
|
|
binary-indep: build install |
| 70 |
|
|
dh_testdir -i |
| 71 |
|
|
dh_testroot -i |
| 72 |
|
|
dh_installchangelogs -i |
| 73 |
|
|
dh_installdocs -i |
| 74 |
|
|
dh_compress -i |
| 75 |
|
|
dh_fixperms -i |
| 76 |
|
|
dh_installdeb -i |
| 77 |
|
|
dh_gencontrol -i |
| 78 |
|
|
dh_md5sums -i |
| 79 |
|
|
dh_builddeb -i |
| 80 |
|
|
|
| 81 |
|
|
binary-arch: build install |
| 82 |
|
|
dh_testdir -a |
| 83 |
|
|
dh_testroot -a |
| 84 |
|
|
dh_installchangelogs -a |
| 85 |
|
|
dh_installdocs -a |
| 86 |
|
|
dh_installmenu -a |
| 87 |
pdewacht-guest |
7980 |
dh_installman -a debian/kiki-the-nano-bot.6 |
| 88 |
pdewacht-guest |
6836 |
# python stuff meeded? |
| 89 |
|
|
dh_strip -a |
| 90 |
|
|
dh_compress -a |
| 91 |
|
|
dh_fixperms -a |
| 92 |
|
|
dh_installdeb -a |
| 93 |
|
|
dh_shlibdeps -a |
| 94 |
|
|
dh_gencontrol -a |
| 95 |
|
|
dh_md5sums -a |
| 96 |
|
|
dh_builddeb -a |
| 97 |
|
|
|
| 98 |
|
|
|
| 99 |
|
|
get-orig-source: VERSION=1.0.2 |
| 100 |
|
|
|
| 101 |
|
|
get-orig-source: |
| 102 |
|
|
dh_testdir |
| 103 |
|
|
dh_testroot |
| 104 |
|
|
wget http://switch.dl.sourceforge.net/sourceforge/kiki/kiki-$(VERSION)-src.tgz |
| 105 |
|
|
tar xfz kiki-$(VERSION)-src.tgz |
| 106 |
|
|
rm -f kiki/*.dll |
| 107 |
|
|
rm -rf kiki/py_crippled |
| 108 |
|
|
find kiki -type f -print0 | xargs -0 chmod -x |
| 109 |
pdewacht-guest |
7980 |
rm -f ../kiki-the-nano-bot-$(VERSION)+dfsg1.orig.tar.gz |
| 110 |
|
|
tar cfz ../kiki-the-nano-bot-$(VERSION)+dfsg1.orig.tar.gz kiki/* |
| 111 |
pdewacht-guest |
6836 |
rm -rf kiki kiki-$(VERSION)-src.tgz |
| 112 |
|
|
|
| 113 |
|
|
|
| 114 |
pdewacht-guest |
7987 |
.PHONY: build clean binary-indep binary-arch binary install patch get-orig-source |