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
|
#!/usr/bin/make -f
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk
%:
dh $@ --parallel
override_dh_auto_configure:
chmod u+x Transcend/configure
cd Transcend && platformSelection=1 ./configure
override_dh_auto_build:
icns2png -x Transcend/build/macOSX/Transcend.app/Contents/Resources/Transcend.icns || true
mv Transcend_128x128x32.png transcend.png || convert -scale 128x128 Transcend/doc/moondance/submission/screen1.png transcend.png
mkdir -p 32x32
convert -scale 32x32 transcend.png 32x32/transcend.png
convert 32x32/transcend.png 32x32/transcend.xpm
$(MAKE) -C Transcend/game \
OPTIMIZE_FLAG="$(CPPFLAGS) $(CXXFLAGS) \
-DLEVELS_DIR=\\\"/usr/share/games/transcend/levels\\\"" \
PLATFORM_LINK_FLAGS="$(LDFLAGS) -lGL -lglut -lGLU -lportaudio -lpthread"
override_dh_auto_clean:
[ ! -f Transcend/game/Makefile ] || $(MAKE) -C Transcend/game clean
rm -f Transcend/editors/Makefile
rm -f Transcend/game/Makefile
rm -f Transcend/game/Makefile.minorGems_dependencies
rm -rf 32x32 transcend.png
override_dh_installchangelogs:
dh_installchangelogs Transcend/doc/changeLog.txt
V=0.3
P=Transcend
p=transcend
sfp=transcend/Transcend
get-orig-source:
wget -c http://downloads.sourceforge.net/project/$(sfp)/$(V)/$(P)_$(V)_UnixSource.tar.gz
tar zxf $(P)_$(V)_UnixSource.tar.gz
# Embedded code copies, unused
rm -r $(P)_$(V)_UnixSource/Transcend/portaudio
# Pre-built Windows libraries, unused
rm $(P)_$(V)_UnixSource/Transcend/build/win32/*.dll
# Windows-only code, unused
rm $(P)_$(V)_UnixSource/minorGems/io/file/win32/dirent.*
# non-free, unused
rm -r $(P)_$(V)_UnixSource/minorGems/util/development/fortify
rm $(P)_$(V)_UnixSource/minorGems/graphics/openGL/tga.*
rm $(P)_$(V)_UnixSource/minorGems/graphics/openGL/texture.*
mv $(P)_$(V)_UnixSource $(p)-$(V)+dfsg1.orig
tar zcf ../$(p)_$(V)+dfsg1.orig.tar.gz $(p)-$(V)+dfsg1.orig
rm -r $(P)_$(V)_UnixSource.tar.gz $(p)-$(V)+dfsg1.orig
|