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
|
#!/usr/bin/make -f
# -*- makefile -*-
# debian/rules file for simutrans
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
include /usr/share/quilt/quilt.make
build: build-stamp
build-stamp: $(QUILT_STAMPFN)
dh build
convert simutrans.ico -alpha on debian/simutrans.xpm
# we have to remove the object files before, as there are
# code sections that behave differently when compiled
# for makeobj
$(MAKE) -C makeobj clean
$(MAKE) makeobj_prog
mkdir skin
./makeobj/makeobj pak ./skin/ ./skins.src/
touch $@
# `make clean' will fail if there is no config.default, so make sure
# we have one
clean: $(QUILT_STAMPFN) clean-patched unpatch
clean-patched:
dh_testdir
$(MAKE) clean
$(MAKE) -C makeobj clean
$(RM) -r skin
dh_clean
install: build
dh install --before dh_installchangelogs
dh_installchangelogs simutrans/history.txt
dh install --remaining
#$(MAKE) DESTDIR=$(CURDIR)/debian/simutrans install
install -m 644 debian/simutrans.xpm $(CURDIR)/debian/simutrans/usr/share/pixmaps
install -m 644 debian/simutrans.desktop $(CURDIR)/debian/simutrans/usr/share/applications
install sim $(CURDIR)/debian/simutrans/usr/games/simutrans
install -m 644 simutrans/config/simuconf.tab $(CURDIR)/debian/simutrans-data/usr/share/games/simutrans/config
install -m 644 simutrans/font/* $(CURDIR)/debian/simutrans-data/usr/share/games/simutrans/font
install -m 644 simutrans/music/*.tab $(CURDIR)/debian/simutrans-data/usr/share/games/simutrans/music
install -m 644 simutrans/music/*.mid $(CURDIR)/debian/simutrans-data/usr/share/games/simutrans/music
install -m 644 debian/translations/*.tab $(CURDIR)/debian/simutrans-data/usr/share/games/simutrans/text
for lang in cz de dk en es fr hu it ja nl pl pt ro ru sk zh ; do \
install -m 644 simutrans/text/$$lang/*.txt $(CURDIR)/debian/simutrans-data/usr/share/games/simutrans/text/$$lang ; \
done
install -m 755 makeobj/makeobj $(CURDIR)/debian/simutrans-makeobj/usr/games/makeobj
# Build architecture-independent files here.
binary-indep: build install
dh binary-indep
# Build architecture-dependent files here.
binary-arch: build install
dh binary-arch
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install configure
# SVN revision and package version to use when building .orig.tar.gz
SVNREV = 3130
VERSION = 102.2.2~ds1
SVNROOT = svn://tron.homeunix.org/simutrans/simutrans/branches/rc102-2-1
get-orig-source:
svn export --username anon --password "" -r $(SVNREV) $(SVNROOT) simutrans-$(VERSION)
$(RM) simutrans-$(VERSION)/simutrans/skin/menu.WindowSkin.pak
tar c simutrans-$(VERSION) | gzip -9 >simutrans_$(VERSION).orig.tar.gz
$(RM) -r simutrans-$(VERSION)
# These languages will be excluded
BROKEN_LANG = ce cn id tr
update-translations:
dh_testdir
wget --post-data "version=0&choice=all&submit=Export!" --delete-after http://simutrans-germany.com/translator/script/wrap.php
wget -N http://simutrans-germany.com/translator/data/tab/language_pack-Base+texts.zip
unzip -o -d debian/translations language_pack-Base+texts.zip "*.tab"
$(RM) language_pack-Base+texts.zip
for lang in $(BROKEN_LANG) ; do \
$(RM) debian/translations/$$lang.tab ; \
done
|