Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 169474 Details for
Bug 215776
[new version] games-simulation/openttd-0.6.3
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
openttd-0.6.3
openttd-0.6.3.ebuild (text/plain), 3.99 KB, created by
Tomáš Chvátal (RETIRED)
on 2008-10-22 19:48:26 UTC
(
hide
)
Description:
openttd-0.6.3
Filename:
MIME Type:
Creator:
Tomáš Chvátal (RETIRED)
Created:
2008-10-22 19:48:26 UTC
Size:
3.99 KB
patch
obsolete
># Copyright 1999-2008 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: $ > >EAPI="1" > >inherit games > >MY_P=${P/_rc/-RC} > >DESCRIPTION="OpenTTD is a clone of Transport Tycoon Deluxe" >HOMEPAGE="http://www.openttd.org/" >SRC_URI="http://binaries.openttd.org/releases/${PV}/${MY_P}-source.tar.bz2" >SCENARIOS="0.4.8 0.5.0" >for scenario in ${SCENARIOS}; do > SRC_URI="${SRC_URI} scenarios? ( > http://binaries.openttd.org/scenarios/${PN}-${scenario}-scenarios.tar.bz2 )" >done > >LICENSE="GPL-2" >SLOT="0" >KEYWORDS="amd64 x86" >IUSE="alsa debug dedicated iconv +png scenarios timidity +truetype +zlib" > >DEPEND="!dedicated? ( > media-libs/libsdl > truetype? ( > media-libs/fontconfig > media-libs/freetype:2 > ) > ) > iconv? ( virtual/libiconv ) > png? ( media-libs/libpng ) > zlib? ( sys-libs/zlib )" >RDEPEND="${DEPEND} > !dedicated? ( > timidity? ( media-sound/timidity++ ) > !timidity? ( alsa? ( media-sound/alsa-utils ) ) > )" > >S=${WORKDIR}/${MY_P} > >src_unpack() { > unpack ${MY_P}-source.tar.bz2 > > if use scenarios ; then > cd "${S}"/bin/scenario/ > for scenario in ${SCENARIOS}; do > unpack ${PN}-${scenario}-scenarios.tar.bz2 > done > fi > > cd "${S}" > epatch "${FILESDIR}/libiconv.patch" > epatch "${FILESDIR}/install.patch" > epatch "${FILESDIR}/menu_name.patch" >} > >src_compile() { > local myopts="" > use debug && myopts="${myopts} --enable-debug=3" > use dedicated && myopts="${myopts} --enable-dedicated --without-sdl" > if ! use dedicated; then > myopts="${myopts} --with-sdl $(use_with truetype freetype) > $(use_with truetype fontconfig)" > if ! use timidity; then > use alsa && myopts="${myopts} --with-midi=/usr/bin/aplaymidi" > fi > fi > # configure is a hand-written sh-script, so econf will not work > ./configure --disable-strip \ > --prefix-dir=/usr \ > --binary-dir=games/bin \ > --data-dir=share/games/${PN} \ > --install-dir="${D}" \ > --doc-dir=share/doc/${P} \ > --menu-group="Game;Simulation;" \ > $(use_with iconv) \ > $(use_with png) \ > $(use_with zlib) \ > ${myopts} \ > || die "configure failed" > emake || die "emake failed" >} > >src_install() { > emake DESTDIR="${D}" install || die "emake install failed" > > if use scenarios ; then > insinto "${GAMES_DATADIR}"/${PN}/scenario > doins bin/scenario/*.scn || die "doins failed (scenario)" > doins bin/scenario/*/*.scn || die "doins failed (scenario)" > fi > > 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 scenarios ; then > elog "Scenarios are installed into:" > elog "${GAMES_DATADIR}/${PN}/scenario," > elog "you will have to symlink them to ~/.openttd/scenario in order" > elog "to use them." > elog "Example:" > elog " ln -s ${GAMES_DATADIR}/${PN}/scenario ~/.openttd/scenario" > elog > fi > > 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 timidity || use alsa ; then > elog "If you want music, you must copy the gm/ directory to" > elog "${GAMES_DATADIR}/${PN}/" > elog "You can enable MIDI by running:" > elog " openttd -m extmidi" > elog > if use timidity ; then > elog "You also need soundfonts for timidity, if you don't" > elog "know what that is, do:" > elog > elog "emerge media-sound/timidity-eawpatches" > else > 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'." > fi > else > elog "timidity and/or alsa not in USE so music will not be played during the game." > fi > elog > fi >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 215776
:
148128
|
152417
|
162530
|
162532
|
166969
|
168660
|
168662
|
168664
|
168822
|
169074
|
169078
|
169122
|
169474
|
169482
|
169504
|
169508