summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2009-12-09 17:03:30 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2009-12-09 17:03:30 +0000
commitff16ac6474565845f1a75a660274b57063a0cb5f (patch)
tree43a6481b7f64ea28f2dc0cca58295d37f39983b0 /games-simulation
parentMarking gst-python-0.10.16 ppc64 for bug 290343 (diff)
downloadhistorical-ff16ac6474565845f1a75a660274b57063a0cb5f.tar.gz
historical-ff16ac6474565845f1a75a660274b57063a0cb5f.tar.bz2
historical-ff16ac6474565845f1a75a660274b57063a0cb5f.zip
version bump
Package-Manager: portage-2.1.6.13/cvs/Linux i686
Diffstat (limited to 'games-simulation')
-rw-r--r--games-simulation/openttd/ChangeLog8
-rw-r--r--games-simulation/openttd/Manifest4
-rw-r--r--games-simulation/openttd/openttd-0.7.4.ebuild119
3 files changed, 129 insertions, 2 deletions
diff --git a/games-simulation/openttd/ChangeLog b/games-simulation/openttd/ChangeLog
index 431677041b7c..0c0cf082d9eb 100644
--- a/games-simulation/openttd/ChangeLog
+++ b/games-simulation/openttd/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for games-simulation/openttd
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-simulation/openttd/ChangeLog,v 1.79 2009/11/09 21:30:45 josejx Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-simulation/openttd/ChangeLog,v 1.80 2009/12/09 17:03:30 mr_bones_ Exp $
+
+*openttd-0.7.4 (09 Dec 2009)
+
+ 09 Dec 2009; Michael Sterrett <mr_bones_@gentoo.org>
+ +openttd-0.7.4.ebuild:
+ version bump
09 Nov 2009; Joseph Jezak <josejx@gentoo.org> openttd-0.7.3.ebuild:
Marked ppc/ppc64 stable for bug #291910.
diff --git a/games-simulation/openttd/Manifest b/games-simulation/openttd/Manifest
index 5afb771dae34..9701780a77e2 100644
--- a/games-simulation/openttd/Manifest
+++ b/games-simulation/openttd/Manifest
@@ -1,5 +1,7 @@
AUX openttd.initd 529 RMD160 ff9fdf7a787ae3d08ec4dbef1b1b37eee12d1ccd SHA1 f833206fc430c6e7afec76c39e97af0f7ec6578a SHA256 a16e5c64a073d0b7e7092bb906b7f064414870a8607bebce16b4b08cff7f4112
DIST openttd-0.7.3-source.tar.bz2 4876403 RMD160 9455d2e25bc0123f858309906c558544c7f076dc SHA1 3e34ceec85b00c0918423790aad0d72ef4cd14c1 SHA256 eccfa15038c5f7991d2692cb190f34ba1fd9deaff8f181dd99145e41790fdbc3
+DIST openttd-0.7.4-source.tar.bz2 4879239 RMD160 8a6e6268b0e1e45e06c05c3b8bcf80be9a387407 SHA1 bb447e965c29a094ed28eea96273cd5f09f7f4b3 SHA256 014286af4b978fec3845fe276d40d07789acd4ac67b5f489f9bdfdf0eed6ad27
EBUILD openttd-0.7.3.ebuild 3323 RMD160 840a97ad10656b74c9ef7bd30563f607e068f1c2 SHA1 f6d2f75f006fe09925a0c7995ec18e717a7d5a58 SHA256 5f16b7ff6a97d0af6824e2ca463c5d16972175e76117d7320d6fe22151d1a1ab
-MISC ChangeLog 10369 RMD160 70b8175050be9772f1e0a9709497f2adecfdcb03 SHA1 68208ded7b78328936a63f0473c026f3089b2ae6 SHA256 c116e96186f7275e14da863b349bb0103fbfed96cd7ae210ad8960ba3a3ac6bb
+EBUILD openttd-0.7.4.ebuild 3342 RMD160 0040185cbea5ba82d7557343f471ac1ea7ebd153 SHA1 e5146f575c47b9f3603322f78da978da4f1b61d3 SHA256 b0ec3562509c5f8100a09c12f6077409074fcc63b24c2d89a8c68afb4fb08d3c
+MISC ChangeLog 10498 RMD160 e77a61e2e1b5237520afa3f43cee2c03df8d7830 SHA1 2a821e747c374796e04f5470769a32c47236e39d SHA256 94f2282c2f3dd0509f535d18b205d74ad581dd3f786e21d640a48cc4ea0fec5c
MISC metadata.xml 159 RMD160 9ce79fb2f245a86f0fd9896ef34c65b6dc2a97bf SHA1 e8d4e28f664e8bd524cb04b5077852adc2f57d90 SHA256 a222ada7640e6dfb21d27151813829e91a72a6878d809dfddaa41581455f6b69
diff --git a/games-simulation/openttd/openttd-0.7.4.ebuild b/games-simulation/openttd/openttd-0.7.4.ebuild
new file mode 100644
index 000000000000..31b0e3e85fd3
--- /dev/null
+++ b/games-simulation/openttd/openttd-0.7.4.ebuild
@@ -0,0 +1,119 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-simulation/openttd/openttd-0.7.4.ebuild,v 1.1 2009/12/09 17:03:30 mr_bones_ Exp $
+
+EAPI=2
+inherit eutils games
+
+DESCRIPTION="OpenTTD is a clone of Transport Tycoon Deluxe"
+HOMEPAGE="http://www.openttd.org/"
+SRC_URI="http://binaries.openttd.org/releases/${PV}/${P}-source.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+IUSE="alsa debug dedicated iconv icu +png +truetype zlib"
+RESTRICT="test"
+
+DEPEND="
+ !dedicated? (
+ media-libs/libsdl[audio,X,video]
+ icu? ( dev-libs/icu )
+ truetype? (
+ media-libs/fontconfig
+ media-libs/freetype:2
+ sys-libs/zlib
+ )
+ )
+ iconv? ( virtual/libiconv )
+ png? ( media-libs/libpng )
+ zlib? ( sys-libs/zlib )"
+RDEPEND="${DEPEND}
+ !dedicated? (
+ alsa? ( media-sound/alsa-utils )
+ )"
+
+src_configure() {
+ local myopts
+
+ use debug && myopts="${myopts} --enable-debug=3"
+
+ if use dedicated ; then
+ myopts="${myopts} --enable-dedicated"
+ else
+ use alsa && myopts="${myopts} --with-midi=/usr/bin/aplaymidi"
+ myopts="${myopts}
+ $(use_with truetype freetype)
+ $(use_with icu)
+ --with-sdl"
+ fi
+ if use png || { use !dedicated && use truetype; } || use zlib ; then
+ myopts="${myopts} --with-zlib"
+ else
+ myopts="${myopts} --without-zlib"
+ fi
+
+ # there is an allegro interface available as well as sdl, but
+ # the configure for it looks broken so the sdl interface is
+ # always built instead.
+ myopts="${myopts} --without-allegro"
+
+ # configure is a hand-written bash-script, so econf will not work
+ ./configure \
+ --disable-strip \
+ --prefix-dir=/ \
+ --binary-dir="${GAMES_BINDIR}" \
+ --data-dir="${GAMES_DATADIR}/${PN}" \
+ --install-dir="${D}" \
+ --icon-dir=/usr/share/pixmaps \
+ --menu-dir=/usr/share/applications \
+ --icon-theme-dir=/usr/share/icons/hicolor \
+ --man-dir=/usr/share/man/man6 \
+ --doc-dir=/usr/share/doc/${PF} \
+ --menu-group="Game;Simulation;" \
+ ${myopts} \
+ $(use_with iconv) \
+ $(use_with png) \
+ || die "configure failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ if use dedicated ; then
+ newinitd "${FILESDIR}"/${PN}.initd ${PN}
+ rm -rf "${D}"/usr/share/{applications,icons,pixmaps}
+ fi
+ rm -f "${D}"/usr/share/doc/${PF}/COPYING
+ prepalldocs
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+
+ elog
+ elog "In order to play, you must copy the following 6 files from "
+ elog "a version of TTD to ${GAMES_DATADIR}/${PN}/data/."
+ elog
+ elog "From the WINDOWS version you need: "
+ elog " sample.cat trg1r.grf trgcr.grf trghr.grf trgir.grf trgtr.grf"
+ elog "OR from the DOS version you need: "
+ elog " SAMPLE.CAT TRG1.GRF TRGC.GRF TRGH.GRF TRGI.GRF TRGT.GRF"
+ elog
+ elog "File names are case sensitive so make sure they are "
+ elog "correct for whichever version you have."
+ elog
+
+ if use dedicated ; then
+ ewarn "Warning: The init script will kill all running openttd"
+ ewarn "processes when run, including any running client sessions!"
+ else
+ if use alsa ; then
+ elog "You have emerged with 'aplaymidi' for playing MIDI."
+ elog "You have to set the environment variable ALSA_OUTPUT_PORTS."
+ elog "Available ports can be listed by using 'aplaymidi -l'."
+ else
+ elog "alsa not in USE so music will not be played during the game."
+ fi
+ fi
+}