summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Holm <dholm@gentoo.org>2005-01-25 13:55:04 +0000
committerDavid Holm <dholm@gentoo.org>2005-01-25 13:55:04 +0000
commit4a0775b5c729f20a442f9b9cb08bd346febf849e (patch)
tree6d5a8f7dba81b1f4d9efc9f32fdcf4c6cee0c8c8 /games-simulation
parentStable on sparc. (diff)
downloadhistorical-4a0775b5c729f20a442f9b9cb08bd346febf849e.tar.gz
historical-4a0775b5c729f20a442f9b9cb08bd346febf849e.tar.bz2
historical-4a0775b5c729f20a442f9b9cb08bd346febf849e.zip
Version bumped and added support for dedicated server
Package-Manager: portage-2.0.51-r15
Diffstat (limited to 'games-simulation')
-rw-r--r--games-simulation/openttd/ChangeLog11
-rw-r--r--games-simulation/openttd/Manifest9
-rw-r--r--games-simulation/openttd/files/digest-openttd-0.3.41
-rw-r--r--games-simulation/openttd/files/digest-openttd-0.3.61
-rw-r--r--games-simulation/openttd/files/openttd.initd20
-rw-r--r--games-simulation/openttd/openttd-0.3.4.ebuild70
-rw-r--r--games-simulation/openttd/openttd-0.3.5.ebuild4
-rw-r--r--games-simulation/openttd/openttd-0.3.6.ebuild106
8 files changed, 143 insertions, 79 deletions
diff --git a/games-simulation/openttd/ChangeLog b/games-simulation/openttd/ChangeLog
index 9c0bf993d07e..51451fc1bded 100644
--- a/games-simulation/openttd/ChangeLog
+++ b/games-simulation/openttd/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for games-simulation/openttd
-# Copyright 1999-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-simulation/openttd/ChangeLog,v 1.9 2004/12/28 10:06:14 dholm Exp $
+# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-simulation/openttd/ChangeLog,v 1.10 2005/01/25 13:55:04 dholm Exp $
+
+*openttd-0.3.6 (25 Jan 2005)
+
+ 25 Jan 2005; <avatar@gentoo.org> +files/openttd.initd,
+ -openttd-0.3.4.ebuild, +openttd-0.3.6.ebuild:
+ Version bumped Added support for dedicated USE-flag, thanks to Luca Spiller
+ (thelucster (at) gmail (dot) com
28 Dec 2004; David Holm <dholm@gentoo.org> openttd-0.3.5.ebuild:
Play midi through alsa if timidity is disabled (Bug #64863)
diff --git a/games-simulation/openttd/Manifest b/games-simulation/openttd/Manifest
index 8c6078cfe773..624a199393d9 100644
--- a/games-simulation/openttd/Manifest
+++ b/games-simulation/openttd/Manifest
@@ -1,6 +1,7 @@
-MD5 2e85013e98f00f2ced09d5036ceadaec ChangeLog 1592
+MD5 12c680dcc2a56a8486fc11c5ac1eef9c ChangeLog 1842
MD5 7efefbbe81a05cbc5d4e96203f047fda metadata.xml 245
-MD5 762081c49771d5026f6703266335d28f openttd-0.3.4.ebuild 2041
-MD5 8918594a845d14ca31bdd6d8487de479 openttd-0.3.5.ebuild 2248
-MD5 0a486aa82ad73424c6a6c791c8143b84 files/digest-openttd-0.3.4 67
+MD5 f4ede9d0e41a8386a7ed0707ba228c4b openttd-0.3.5.ebuild 2248
+MD5 be5a35c7525152a1937f26b19b49bc19 openttd-0.3.6.ebuild 3314
MD5 94e0df18e09dc754083d5e1247f809b7 files/digest-openttd-0.3.5 73
+MD5 a169eb5c8572ee01be52c4accf2608a2 files/openttd.initd 529
+MD5 2c2239b2fd69956b2e3027818efc62e5 files/digest-openttd-0.3.6 66
diff --git a/games-simulation/openttd/files/digest-openttd-0.3.4 b/games-simulation/openttd/files/digest-openttd-0.3.4
deleted file mode 100644
index 6eb4d86ced2e..000000000000
--- a/games-simulation/openttd/files/digest-openttd-0.3.4
+++ /dev/null
@@ -1 +0,0 @@
-MD5 14a4761593ac31418454c9cc1fe8a8bb openttd-0.3.4.tar.bz2 1394627
diff --git a/games-simulation/openttd/files/digest-openttd-0.3.6 b/games-simulation/openttd/files/digest-openttd-0.3.6
new file mode 100644
index 000000000000..5b6c60660c37
--- /dev/null
+++ b/games-simulation/openttd/files/digest-openttd-0.3.6
@@ -0,0 +1 @@
+MD5 4127f17e45c5dd2e1720ebf2a96e7eac openttd-0.3.6.tar.gz 2511895
diff --git a/games-simulation/openttd/files/openttd.initd b/games-simulation/openttd/files/openttd.initd
new file mode 100644
index 000000000000..e2f5fbf58833
--- /dev/null
+++ b/games-simulation/openttd/files/openttd.initd
@@ -0,0 +1,20 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License, v2 or later
+# $Header: /var/cvsroot/gentoo-x86/games-simulation/openttd/files/openttd.initd,v 1.1 2005/01/25 13:55:04 dholm Exp $
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting OpenTTD dedicated server"
+ start-stop-daemon --start -q --exec /usr/games/bin/openttd -- -D -f > /dev/null
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping OpenTTD dedicated server"
+ start-stop-daemon --stop -q -n openttd
+ eend $?
+}
diff --git a/games-simulation/openttd/openttd-0.3.4.ebuild b/games-simulation/openttd/openttd-0.3.4.ebuild
deleted file mode 100644
index fe79cfae47b6..000000000000
--- a/games-simulation/openttd/openttd-0.3.4.ebuild
+++ /dev/null
@@ -1,70 +0,0 @@
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-simulation/openttd/openttd-0.3.4.ebuild,v 1.2 2004/09/20 04:17:23 mr_bones_ Exp $
-
-inherit games
-
-DESCRIPTION="OpenTTD is a clone of Transport Tycoon Deluxe"
-HOMEPAGE="http://www.openttd.com/"
-SRC_URI="mirror://sourceforge/openttd/${P}.tar.bz2"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~x86 ~ppc ~amd64"
-IUSE="debug png zlib timidity"
-
-DEPEND="virtual/libc
- media-libs/libsdl
- png? ( media-libs/libpng )
- zlib? ( sys-libs/zlib )"
-RDEPEND="${DEPEND}
- timidity? ( media-sound/timidity++ )"
-
-src_compile() {
- local myopts="MANUAL_CONFIG=1 UNIX=1 WITH_SDL=1 WITH_NETWORK=1 USE_HOMEDIR=1 PERSONAL_DIR=.openttd GAME_DATA_DIR=${GAMES_DATADIR}/${PN}/"
- use debug && myopts="${myopts} DEBUG=1"
- use png && myopts="${myopts} WITH_PNG=1"
- use zlib && myopts="${myopts} WITH_ZLIB=1"
-
- emake -j1 ${myopts} || die "emake failed"
-}
-
-src_install() {
- dogamesbin openttd || die "dogamesbin failed"
-
- insinto "${GAMES_DATADIR}/${PN}/data"
- doins data/* || die "doins failed"
-
- insinto "${GAMES_DATADIR}/${PN}/lang"
- doins lang/*.lng || die "doins failed"
-
- insinto /usr/share/pixmaps
- newins media/icon128.png openttd.png || die "doins failed"
-
- make_desktop_entry openttd "OpenTTD" openttd.png
- dodoc readme.txt changelog.txt docs/Manual.txt docs/console.txt
- prepgamesdirs
-}
-
-pkg_postinst() {
- games_pkg_postinst
-
- echo
- einfo "In order to play, you must copy the following 6 files from "
- einfo "the *WINDOWS* version of TTD to ${GAMES_DATADIR}/${PN}/data/"
- echo
- einfo "sample.cat trg1r.grf trgcr.grf trghr.grf trgir.grf trgtr.grf"
- echo
- if use timidity ; then
- einfo "If you want music, you must copy the gm/ directory"
- einfo "to ${GAMES_DATADIR}/${PN}/"
- echo
- einfo "You also need soundfonts for timidity, if you don't"
- einfo "know what that is, do:"
- echo
- einfo "emerge media-sound/timidity-eawpatches"
- else
- einfo "timidity not in USE so music will not be played during the game."
- fi
- echo
-}
diff --git a/games-simulation/openttd/openttd-0.3.5.ebuild b/games-simulation/openttd/openttd-0.3.5.ebuild
index 25abf5b4c1f6..13dd89b1ae28 100644
--- a/games-simulation/openttd/openttd-0.3.5.ebuild
+++ b/games-simulation/openttd/openttd-0.3.5.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2004 Gentoo Foundation
+# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-simulation/openttd/openttd-0.3.5.ebuild,v 1.2 2004/12/28 10:06:14 dholm Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-simulation/openttd/openttd-0.3.5.ebuild,v 1.3 2005/01/25 13:55:04 dholm Exp $
inherit games
diff --git a/games-simulation/openttd/openttd-0.3.6.ebuild b/games-simulation/openttd/openttd-0.3.6.ebuild
new file mode 100644
index 000000000000..b041dfd6ce94
--- /dev/null
+++ b/games-simulation/openttd/openttd-0.3.6.ebuild
@@ -0,0 +1,106 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-simulation/openttd/openttd-0.3.6.ebuild,v 1.1 2005/01/25 13:55:04 dholm Exp $
+
+inherit games
+
+DESCRIPTION="OpenTTD is a clone of Transport Tycoon Deluxe"
+HOMEPAGE="http://www.openttd.com/"
+SRC_URI="mirror://sourceforge/openttd/${P}.tar.gz
+ http://www.scherer.de/ottd/openttd-0.3.6.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~ppc ~amd64"
+IUSE="debug png zlib timidity alsa dedicated"
+
+DEPEND="virtual/libc"
+RDEPEND="${DEPEND}
+ !dedicated? (
+ timidity? ( media-sound/timidity++ )
+ !timidity? ( alsa? ( media-sound/pmidi ) )
+ png? ( media-libs/libpng )
+ zlib? ( sys-libs/zlib )
+ media-libs/libsdl )"
+
+src_compile() {
+ local myopts="MANUAL_CONFIG=1 UNIX=1 WITH_NETWORK=1 INSTALL=1 RELEASE=${PV} USE_HOMEDIR=1 PERSONAL_DIR=.openttd PREFIX=/usr DATA_DIR=share/games/${PN}"
+ use debug && myopts="${myopts} DEBUG=1"
+ use dedicated && myopts="${myopts} DEDICATED=1"
+ if ! use dedicated; then
+ use png && myopts="${myopts} WITH_PNG=1"
+ use zlib && myopts="${myopts} WITH_ZLIB=1"
+ myopts="${myopts} WITH_SDL=1"
+ if ! use timidity; then
+ use alsa && myopts="${myopts} MIDI=/usr/bin/pmidi"
+ fi
+ fi
+
+ emake -j1 ${myopts} || die "emake failed"
+}
+
+src_install() {
+ dogamesbin openttd || die "dogamesbin failed"
+
+ insinto "${GAMES_DATADIR}/${PN}/data"
+ doins data/* || die "doins failed"
+
+ insinto "${GAMES_DATADIR}/${PN}/lang"
+ doins lang/*.lng || die "doins failed"
+
+ insinto /usr/share/pixmaps
+ newins media/openttd.128.png openttd.png || die "doins failed"
+
+ if ! use dedicated; then
+ make_desktop_entry openttd "OpenTTD" openttd.png
+ else
+ exeinto /etc/init.d
+ newexe ${FILESDIR}/openttd.initd openttd
+ fi
+
+ dodoc readme.txt changelog.txt docs/Manual.txt docs/console.txt \
+ docs/multiplayer.txt
+ doman docs/openttd.6
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+
+ echo
+ einfo "In order to play, you must copy the following 6 files from "
+ einfo "a version of TTD to ${GAMES_DATADIR}/${PN}/data/."
+ echo
+ einfo "From the WINDOWS version you need: "
+ einfo " sample.cat trg1r.grf trgcr.grf trghr.grf trgir.grf trgtr.grf"
+ einfo "OR from the DOS version you need: "
+ einfo " SAMPLE.CAT TRG1.GRF TRGC.GRF TRGH.GRF TRGI.GRF TRGT.GRF"
+ echo
+ einfo "File names are case sensitive so make sure they are "
+ einfo "correct for whichever version you have."
+ echo
+
+ if use dedicated; then
+ einfo "You have chosen the dedicated USE flag which builds a "
+ einfo "version of OpenTTD to be used as a game server which "
+ einfo "does not require SDL. You will not be able to play the "
+ einfo "game, but if you don't pass this flag you can still use "
+ einfo "it as a server in the same way, but SDL will be required."
+ echo
+ ewarn "Warning: The init script will kill all running openttd"
+ ewarn "processes when run, including any running client sessions!"
+ else
+ if use timidity ; then
+ einfo "If you want music, you must copy the gm/ directory"
+ einfo "to ${GAMES_DATADIR}/${PN}/"
+ echo
+ einfo "You also need soundfonts for timidity, if you don't"
+ einfo "know what that is, do:"
+ echo
+ einfo "emerge media-sound/timidity-eawpatches"
+ else
+ einfo "timidity not in USE so music will not be played during the game."
+ fi
+ fi
+ echo
+}