--- /usr/portage/games-simulation/openttd/openttd-0.7.5.ebuild 2009-12-28 17:49:58.000000000 -0500 +++ ./openttd-0.7.5.ebuild 2010-01-09 15:36:29.808223699 -0500 @@ -12,7 +12,7 @@ LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" -IUSE="alsa debug dedicated iconv icu +png +truetype zlib" +IUSE="alsa debug dedicated iconv icu opengfx +png +truetype zlib" RESTRICT="test" DEPEND=" @@ -32,7 +32,8 @@ !dedicated? ( alsa? ( media-sound/alsa-utils ) )" - +PDEPEND=" + opengfx? ( games-misc/opengfx ) " src_configure() { local myopts @@ -91,18 +92,32 @@ 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 opengfx ; then + elog + elog "OpenTTD was compiled with opengfx USE flag," + elog "you do not need graphics files from the original TTD, but:" + elog "In order to play, you must copy the following file from " + elog "a version of TTD to ${GAMES_DATADIR}/${PN}/data/" + elog "or ~/.openttd/data" + elog "From the WINDOWS version you need: " + elog " sample.cat" + elog "OR from the DOS version you need: " + elog " SAMPLE.CAT" + else + elog + elog "OpenTTD was compiled without opengfx USE flag." + 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 + fi if use dedicated ; then ewarn "Warning: The init script will kill all running openttd"