diff options
author | Michael Sterrett <mr_bones_@gentoo.org> | 2013-09-16 15:18:01 +0000 |
---|---|---|
committer | Michael Sterrett <mr_bones_@gentoo.org> | 2013-09-16 15:18:01 +0000 |
commit | 9088ce7b2aa3620fe353e4d49fd556f302cb0967 (patch) | |
tree | f8aef4465576c2b454fdb95cea574b46d570d733 /games-simulation | |
parent | Version bump. (diff) | |
download | historical-9088ce7b2aa3620fe353e4d49fd556f302cb0967.tar.gz historical-9088ce7b2aa3620fe353e4d49fd556f302cb0967.tar.bz2 historical-9088ce7b2aa3620fe353e4d49fd556f302cb0967.zip |
old
Package-Manager: portage-2.2.1/cvs/Linux x86_64
Diffstat (limited to 'games-simulation')
-rw-r--r-- | games-simulation/openttd/ChangeLog | 7 | ||||
-rw-r--r-- | games-simulation/openttd/Manifest | 8 | ||||
-rw-r--r-- | games-simulation/openttd/files/openttd-1.3.0-cflags.patch | 42 | ||||
-rw-r--r-- | games-simulation/openttd/files/openttd-1.3.1-cflags.patch | 42 | ||||
-rw-r--r-- | games-simulation/openttd/openttd-1.3.0.ebuild | 170 | ||||
-rw-r--r-- | games-simulation/openttd/openttd-1.3.1.ebuild | 170 |
6 files changed, 7 insertions, 432 deletions
diff --git a/games-simulation/openttd/ChangeLog b/games-simulation/openttd/ChangeLog index d0484cff3a11..238b3bc85f69 100644 --- a/games-simulation/openttd/ChangeLog +++ b/games-simulation/openttd/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for games-simulation/openttd # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-simulation/openttd/ChangeLog,v 1.140 2013/08/26 23:10:30 mr_bones_ Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-simulation/openttd/ChangeLog,v 1.141 2013/09/16 15:17:56 mr_bones_ Exp $ + + 16 Sep 2013; Michael Sterrett <mr_bones_@gentoo.org> + -files/openttd-1.3.0-cflags.patch, -files/openttd-1.3.1-cflags.patch, + -openttd-1.3.0.ebuild, -openttd-1.3.1.ebuild: + old *openttd-1.3.2 (26 Aug 2013) diff --git a/games-simulation/openttd/Manifest b/games-simulation/openttd/Manifest index ba95b675dccf..c03a6f86e6a6 100644 --- a/games-simulation/openttd/Manifest +++ b/games-simulation/openttd/Manifest @@ -1,16 +1,10 @@ AUX openttd-1.2.3-cflags.patch 1174 SHA256 b3e269376afbe93beb7d6cff6ba268b641b4631328518f76112c69e39cbd6555 SHA512 4c94f688024c790dec5e57acb957b496f4f3e0b36f4a754f0415b20d1dadbb996209f74b7fe0b7b31981352bb3a38ed24eb04a723442bf6fd5efaf2baf8ba1f5 WHIRLPOOL 1dacb07003a44bee826eaf3aadb4ac58c984e2c83e70b7ec0475b8cb4a1287e439bfbb346de9515c4c5380348653a766515660415ca5dabc72202e1207cdb33f -AUX openttd-1.3.0-cflags.patch 1077 SHA256 7bbdb96e9fd8a5be6fb32ab8c20b1d5a60f0c2cb96e975cf2159819b249ddb7a SHA512 a3cf52a7c7a2c55b778021e49b642401d6d021fa332b6920fd4f1b6db18b6ec43d6df57520891bca80c0b66c9abd84350633cd982ceb81e30c3a49a26d158778 WHIRLPOOL 1aae0966603c4510705f0779dd897477965b5cde40560be949a680867d3141e870ff36ae352c4cb1b00992b57817255f4dd65f0451c56fd27a90d6d5cfaa12be -AUX openttd-1.3.1-cflags.patch 1077 SHA256 7bbdb96e9fd8a5be6fb32ab8c20b1d5a60f0c2cb96e975cf2159819b249ddb7a SHA512 a3cf52a7c7a2c55b778021e49b642401d6d021fa332b6920fd4f1b6db18b6ec43d6df57520891bca80c0b66c9abd84350633cd982ceb81e30c3a49a26d158778 WHIRLPOOL 1aae0966603c4510705f0779dd897477965b5cde40560be949a680867d3141e870ff36ae352c4cb1b00992b57817255f4dd65f0451c56fd27a90d6d5cfaa12be AUX openttd-1.3.2-cflags.patch 1077 SHA256 7bbdb96e9fd8a5be6fb32ab8c20b1d5a60f0c2cb96e975cf2159819b249ddb7a SHA512 a3cf52a7c7a2c55b778021e49b642401d6d021fa332b6920fd4f1b6db18b6ec43d6df57520891bca80c0b66c9abd84350633cd982ceb81e30c3a49a26d158778 WHIRLPOOL 1aae0966603c4510705f0779dd897477965b5cde40560be949a680867d3141e870ff36ae352c4cb1b00992b57817255f4dd65f0451c56fd27a90d6d5cfaa12be AUX openttd.initd 529 SHA256 a16e5c64a073d0b7e7092bb906b7f064414870a8607bebce16b4b08cff7f4112 SHA512 a1be89727fa76ba2104d934367e69c840735024e9abc8e6a32a67d3553e26ee565a9f1680b56e923a959c01f3209bf267ef8421d077ce2ff131b661d4a88c318 WHIRLPOOL c369d4c82da6a68473d25a636b5d1817e5f6035d85759c484fece1d0bd87d74123fabb64bad74898b87985d5a480d5caccd13eb7fafb15e622380dcde89ca1c1 DIST openttd-1.2.3-source.tar.gz 8722028 SHA256 ebf306bb1911f96118243921055ffea296d7ad5aa39fa20d3bc1f27a22d872fc SHA512 fa96ac210e767e163893c25a5943a77217d78a31b435593417a4498819f62aa16e21530249293e4dd58bdbf44e28e015280ad43078320a7ce18a3bf1a3f4ad35 WHIRLPOOL e6a483de0e84b02a9568eb72d06188c842168903cbe3e5a051265b06180f8bb0634dbd9ae63584a75ca0df262c8949a13958d5a7b51c8108b620b57157929588 -DIST openttd-1.3.0-source.tar.gz 9351230 SHA256 999ae932e9a6b1e1bf29cdddc494725cc2f2e5dce8a43e5171d575611167fe5e SHA512 9987885b5b3c92cab7435761eee7ae6dc927faf1d4d58e72f777e21b5e154a6ca4cbf940085b29bdf4c887544319bfec6043a56d384b736a1d718a09362e5ea4 WHIRLPOOL 49a1523a356891676b7aa9907b1f34b56a75cf481c2a4f12a6eeb83b27599f31d4fd7279ea3fa94f1183621a4afd562e856cee9f0c84f9aee1793f8ad7545309 -DIST openttd-1.3.1-source.tar.gz 9546727 SHA256 e78553e2be26ff98851b87db80b7c3f0a45e4968672e72dcea7b58221cf95966 SHA512 afb214e5d3110f5d819afb3f90cc0d1595ae6f40a2a9c476e7d1e3563ffe542551dd615e8d39355c89d6abff04124fc98910377898f72f3e124401aea000b19a WHIRLPOOL 2f35e972b80ea3b078414d6540cd86f02085ab89d18918e5a470d3a6cb07e087b2a47a784b733a8f95f753c15b2aeaea9502b2fb1f348502f830c20ff56a5b19 DIST openttd-1.3.2-source.tar.gz 9614867 SHA256 9c700406d375029f4f09236c414daabdaaba6e7992deb7300db7742b3ca641b9 SHA512 41b92b19b83fb0c8673fb78381db2eb8fa2284a4f152a35ef629c211b9cbe6e0bcf9600c5f2afd9083173c2a52d393aff34afe23da05c1596e22af9095676a54 WHIRLPOOL e125130953356b2fafe12485ea0c16c5493fd2f9cb37aef309d52184e1c70d4385f99ce9e25ae51a6a3a07c68318e202e809c01514dfe3273900f4224b1cb694 EBUILD openttd-1.2.3-r1.ebuild 5110 SHA256 3489d32873eeeb5afdb864d5152bdd9f58e9b9ff37bad7c9fb0fb9dca0b33720 SHA512 5da40ec645cf615dd0ba81085facb2b700ad998710061ed328a0be66616dcf7b21bf1be006c8e5653a5958ecd63274aa13b836511a4151b389b2eb97439db512 WHIRLPOOL abaa5199373e0bdf037b687fb4e71429926a75bd37219d64d6562aaaf7709a23adcc36ae9206dab2fe22109424366104e0b23f62619bf7261909ed8d6c476668 EBUILD openttd-1.2.3.ebuild 5154 SHA256 7afd8eeee40d7ef745505fe302783e0260280acecf4699ac3b1c72360b438d0f SHA512 b552a70f828f18f064ad4b8da38a8430d7bfd67023bdb6c1eaa4349ab33fa5ee24eb891031e87b3ae4f55e3095cb29e3c65487b38370d7a14b95f8f45b0f0453 WHIRLPOOL ee9ec6a3c5581aae520a747d988e03ee57ab28140b62d895863a61ee7110aca70e3462cdbdb851a130cb0b7222e98ea523fa633f51a69cf27ddedd48673999de -EBUILD openttd-1.3.0.ebuild 5075 SHA256 647a0e11062d15bac807d8769781cf04730304ab750b2149c3170c09134c7ad9 SHA512 8634ead2b09cb8b1a22941dc41042426f8f10e1552336259447affc01773fb4a01b73d725ecaaec2aa196d2bfc5e4d14db2933d5d16705b81f9aebe11a3a8013 WHIRLPOOL eb6f97cc1dc52ada1b62c8d5aba253735dafd1f409f87f127b72d9cc1d710fc5d395a8c3bdc5c3d541bb259aeb714dc9fcb153410e22fa4576af18902b9a75f4 -EBUILD openttd-1.3.1.ebuild 5075 SHA256 f6301d3d6310eb82a080549f4ac0738de0b0572fbea8625d7e073c8d01abee6b SHA512 ada4859e7134bccee7b90c25a36e79ac394102270a666eefec3e816eaabc375b744a4e54520fb62971eb3abbaa698c1b3049718f2aa38efef9a589aa509841b3 WHIRLPOOL 27536581af1ff2cc51e8c9167aa0378f2aaded41148435a65e2ce2d9ede740b0aba92d483b6c9ef1863cff165a1d2feecbc704743e754c30bd8e09ab1b01e3e1 EBUILD openttd-1.3.2.ebuild 5075 SHA256 1784b754b14eb5ff48274d2fd199a8afbb237c1186629ea19850a8f607aa937a SHA512 cf3aea1358b44d5f0367ed4e33d632f27a84a5738dcb7aa342b7d03692d027d9a7072903a3f56d18a9a23cee0b25b14728ee86c616ebaa07560c17e151f00f6f WHIRLPOOL 7842f248e2650b1cb052b22f3a65a6550c670dacbd07ab39080e19fbfc375ac2bc451ff3c8504f6130f422dbe0c2525eada635a2e2efd8b3c7f5520f8669d146 -MISC ChangeLog 18874 SHA256 e2512244a40c93489284ccbb56d413e84a57dd11b76bc08304c6e6e6cd2ade87 SHA512 d86c1d45fb5362921c4f157306ed45f6a6a205e37f9ab24bade01353b9d5dcd79c73a5aa59310db89a37448b8c5c8bffe26de94b072afc4899351a129ae68cb4 WHIRLPOOL a965989873cdd9b3e90a5a78d8fb1b5be9d3daa7a92c86cf224660e3c53cd24903aaa20d8c78673b4e8db9a64fc0ec5ed810b3bb9a827aa149c4b16695711a8b +MISC ChangeLog 19056 SHA256 28a95312a2cba6fa8e040bc05199bfa5c5bba24ea0824b8cd788a87ad8283672 SHA512 b6050471e44597c335ce0876f7efc588a8994a8d3a82184045c24412ef972a2114555b6c192057a83693d5b945f469fca93926af561958f42ab88be6c574ad93 WHIRLPOOL cea71215025cd88d88096bdbe460d2d435167246e09696785ecd0609ced61405d051d4f41047dec42c14aae084287e8d9180d4153bdbe66fdfe51748f668957e MISC metadata.xml 658 SHA256 d0e2ff0d4bbe57e15d58e5fc68884b70877561f127e8afd7b5ce3e4a46e97404 SHA512 30a2ea245738a34e159d1fdf65a4ffede8de14111804c46176613592c4ae63ce1fd9e3fbc36f639f5c7c41214d3f2e6c741e78b424889417bbe0da180e7d0ab1 WHIRLPOOL 51c8f15d834ba7f0be395ca174a9f388cf3dbee218da358a338ee81797fc73a9aebc7d4759a95466d50f8d333e0ff8d58980d1a4c94701e0647d99b16db9963d diff --git a/games-simulation/openttd/files/openttd-1.3.0-cflags.patch b/games-simulation/openttd/files/openttd-1.3.0-cflags.patch deleted file mode 100644 index 135ae6e08f59..000000000000 --- a/games-simulation/openttd/files/openttd-1.3.0-cflags.patch +++ /dev/null @@ -1,42 +0,0 @@ ---- config.lib.orig 2013-04-01 10:56:04.199921234 -0400 -+++ config.lib 2013-04-01 10:57:21.878371374 -0400 -@@ -1426,26 +1426,16 @@ - CFLAGS="-I/gg/os-include -noixemul -fstrict-aliasing -fexpensive-optimizations -mcpu=604 -fno-inline -mstring -mmultiple $CFLAGS" - LDFLAGS="$LDFLAGS -noixemul" - fi -- -- CFLAGS="-O2 -fomit-frame-pointer $CFLAGS" - else - OBJS_SUBDIR="debug" - - # Each debug level reduces the optimization by a bit - if [ $enable_debug -ge 1 ]; then -- CFLAGS="$CFLAGS -g -D_DEBUG" -+ CFLAGS="-D_DEBUG $CFLAGS" - if [ "$os" = "PSP" ]; then - CFLAGS="$CFLAGS -G0" - fi - fi -- if [ $enable_debug -ge 2 ]; then -- CFLAGS="$CFLAGS -fno-inline" -- fi -- if [ $enable_debug -ge 3 ]; then -- CFLAGS="$CFLAGS -O0" -- else -- CFLAGS="$CFLAGS -O2" -- fi - fi - - if [ $enable_debug -le 2 ]; then -@@ -1466,11 +1456,6 @@ - CFLAGS="$CFLAGS -fno-expensive-optimizations" - fi - -- if [ "$enable_profiling" != "0" ]; then -- CFLAGS="$CFLAGS -p" -- LDFLAGS="$LDFLAGS -pg" -- fi -- - if [ "$with_threads" = "0" ]; then - CFLAGS="$CFLAGS -DNO_THREADS" - fi diff --git a/games-simulation/openttd/files/openttd-1.3.1-cflags.patch b/games-simulation/openttd/files/openttd-1.3.1-cflags.patch deleted file mode 100644 index 135ae6e08f59..000000000000 --- a/games-simulation/openttd/files/openttd-1.3.1-cflags.patch +++ /dev/null @@ -1,42 +0,0 @@ ---- config.lib.orig 2013-04-01 10:56:04.199921234 -0400 -+++ config.lib 2013-04-01 10:57:21.878371374 -0400 -@@ -1426,26 +1426,16 @@ - CFLAGS="-I/gg/os-include -noixemul -fstrict-aliasing -fexpensive-optimizations -mcpu=604 -fno-inline -mstring -mmultiple $CFLAGS" - LDFLAGS="$LDFLAGS -noixemul" - fi -- -- CFLAGS="-O2 -fomit-frame-pointer $CFLAGS" - else - OBJS_SUBDIR="debug" - - # Each debug level reduces the optimization by a bit - if [ $enable_debug -ge 1 ]; then -- CFLAGS="$CFLAGS -g -D_DEBUG" -+ CFLAGS="-D_DEBUG $CFLAGS" - if [ "$os" = "PSP" ]; then - CFLAGS="$CFLAGS -G0" - fi - fi -- if [ $enable_debug -ge 2 ]; then -- CFLAGS="$CFLAGS -fno-inline" -- fi -- if [ $enable_debug -ge 3 ]; then -- CFLAGS="$CFLAGS -O0" -- else -- CFLAGS="$CFLAGS -O2" -- fi - fi - - if [ $enable_debug -le 2 ]; then -@@ -1466,11 +1456,6 @@ - CFLAGS="$CFLAGS -fno-expensive-optimizations" - fi - -- if [ "$enable_profiling" != "0" ]; then -- CFLAGS="$CFLAGS -p" -- LDFLAGS="$LDFLAGS -pg" -- fi -- - if [ "$with_threads" = "0" ]; then - CFLAGS="$CFLAGS -DNO_THREADS" - fi diff --git a/games-simulation/openttd/openttd-1.3.0.ebuild b/games-simulation/openttd/openttd-1.3.0.ebuild deleted file mode 100644 index e4ae7672bb3e..000000000000 --- a/games-simulation/openttd/openttd-1.3.0.ebuild +++ /dev/null @@ -1,170 +0,0 @@ -# Copyright 1999-2013 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/games-simulation/openttd/openttd-1.3.0.ebuild,v 1.1 2013/04/01 19:28:06 mr_bones_ Exp $ - -EAPI=5 -inherit eutils gnome2-utils 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.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" -IUSE="aplaymidi debug dedicated iconv icu lzo +openmedia +png +timidity +truetype zlib" -RESTRICT="test" # needs a graphics set in order to test - -DEPEND="!dedicated? ( - media-libs/libsdl[audio,X,video] - icu? ( dev-libs/icu:= ) - truetype? ( - media-libs/fontconfig - media-libs/freetype:2 - sys-libs/zlib - ) - ) - lzo? ( dev-libs/lzo:2 ) - iconv? ( virtual/libiconv ) - png? ( media-libs/libpng ) - zlib? ( sys-libs/zlib )" -RDEPEND="${DEPEND}" -PDEPEND=" - !dedicated? ( - openmedia? ( - games-misc/openmsx - games-misc/opensfx - ) - aplaymidi? ( media-sound/alsa-utils ) - !aplaymidi? ( timidity? ( media-sound/timidity++ ) ) - ) - openmedia? ( >=games-misc/opengfx-0.4.4 )" - -PATCHES=( "${FILESDIR}"/${P}-cflags.patch ) - -src_configure() { - # 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. - local myopts=" --without-allegro" - - # libtimidity not needed except for some embedded platform - # nevertheless, it will be automagically linked if it is - # installed. Hence, we disable it. - myopts+=" --without-libtimidity" - - use debug && myopts+=" --enable-debug=3" - - if use dedicated ; then - myopts+=" --enable-dedicated" - else - use aplaymidi && myopts+=" --with-midi='/usr/bin/aplaymidi'" - myopts+=" - $(use_with truetype freetype) - $(use_with icu) - --with-sdl" - fi - if use png || { use !dedicated && use truetype; } || use zlib ; then - myopts+=" --with-zlib" - else - myopts+=" --without-zlib" - fi - - # configure is a hand-written bash-script, so econf will not work. - # It's all built as C++, upstream uses CFLAGS internally. - CFLAGS="" ./configure \ - --disable-strip \ - --prefix-dir="${EPREFIX}" \ - --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) \ - $(use_with lzo liblzo2) \ - || die -} - -src_compile() { - emake VERBOSE=1 -} - -src_install() { - emake DESTDIR="${D}" install - if use dedicated ; then - newinitd "${FILESDIR}"/${PN}.initd ${PN} - rm -rf "${ED}"/usr/share/{applications,icons,pixmaps} - fi - rm -f "${ED}"/usr/share/doc/${PF}/COPYING - prepgamesdirs -} - -pkg_preinst() { - games_pkg_preinst - gnome2_icon_savelist -} - -pkg_postinst() { - gnome2_icon_cache_update - games_pkg_postinst - - if ! use lzo ; then - elog "OpenTTD was built without 'lzo' in USE. While 'lzo' is not" - elog "required, disabling it does mean that loading old savegames" - elog "or scenarios from ancient versions (~0.2) will fail." - elog - fi - - if use dedicated ; then - ewarn "Warning: The init script will kill all running openttd" - ewarn "processes when triggered, including any running client sessions!" - else - if use aplaymidi ; then - elog "You have emerged with 'aplaymidi' for playing MIDI." - elog "This option is for those with a hardware midi device," - elog "or who have set up ALSA to handle midi ports." - elog "You must set the environment variable ALSA_OUTPUT_PORTS." - elog "Available ports can be listed by using 'aplaymidi -l'." - else - if ! use timidity ; then - elog "OpenTTD was built with neither 'aplaymidi' nor 'timidity'" - elog "in USE. Music may or may not work in-game. If you happen" - elog "to have timidity++ installed, music will work so long" - elog "as it remains installed, but OpenTTD will not depend on it." - fi - fi - if ! use openmedia ; then - elog - elog "OpenTTD was compiled without the 'openmedia' USE flag." - elog - elog "In order to play, you must at least install:" - elog "games-misc/opengfx, and games-misc/opensfx, or copy the " - elog "following 6 files from a version of Transport Tycoon Deluxe" - elog "(windows or DOS) to ~/.openttd/data/ or" - elog "${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, but should work either with" - elog "all upper or all lower case names" - elog - elog "In addition, in-game music will be unavailable: for music," - elog "install games-misc/openmsx, or use the in-game download" - elog "functionality to get a music set" - elog - fi - fi -} - -pkg_postrm() { - gnome2_icon_cache_update -} diff --git a/games-simulation/openttd/openttd-1.3.1.ebuild b/games-simulation/openttd/openttd-1.3.1.ebuild deleted file mode 100644 index 7037bba0f8a4..000000000000 --- a/games-simulation/openttd/openttd-1.3.1.ebuild +++ /dev/null @@ -1,170 +0,0 @@ -# Copyright 1999-2013 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/games-simulation/openttd/openttd-1.3.1.ebuild,v 1.1 2013/06/10 06:29:23 mr_bones_ Exp $ - -EAPI=5 -inherit eutils gnome2-utils 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.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" -IUSE="aplaymidi debug dedicated iconv icu lzo +openmedia +png +timidity +truetype zlib" -RESTRICT="test" # needs a graphics set in order to test - -DEPEND="!dedicated? ( - media-libs/libsdl[audio,X,video] - icu? ( dev-libs/icu:= ) - truetype? ( - media-libs/fontconfig - media-libs/freetype:2 - sys-libs/zlib - ) - ) - lzo? ( dev-libs/lzo:2 ) - iconv? ( virtual/libiconv ) - png? ( media-libs/libpng ) - zlib? ( sys-libs/zlib )" -RDEPEND="${DEPEND}" -PDEPEND=" - !dedicated? ( - openmedia? ( - games-misc/openmsx - games-misc/opensfx - ) - aplaymidi? ( media-sound/alsa-utils ) - !aplaymidi? ( timidity? ( media-sound/timidity++ ) ) - ) - openmedia? ( >=games-misc/opengfx-0.4.4 )" - -PATCHES=( "${FILESDIR}"/${P}-cflags.patch ) - -src_configure() { - # 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. - local myopts=" --without-allegro" - - # libtimidity not needed except for some embedded platform - # nevertheless, it will be automagically linked if it is - # installed. Hence, we disable it. - myopts+=" --without-libtimidity" - - use debug && myopts+=" --enable-debug=3" - - if use dedicated ; then - myopts+=" --enable-dedicated" - else - use aplaymidi && myopts+=" --with-midi='/usr/bin/aplaymidi'" - myopts+=" - $(use_with truetype freetype) - $(use_with icu) - --with-sdl" - fi - if use png || { use !dedicated && use truetype; } || use zlib ; then - myopts+=" --with-zlib" - else - myopts+=" --without-zlib" - fi - - # configure is a hand-written bash-script, so econf will not work. - # It's all built as C++, upstream uses CFLAGS internally. - CFLAGS="" ./configure \ - --disable-strip \ - --prefix-dir="${EPREFIX}" \ - --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) \ - $(use_with lzo liblzo2) \ - || die -} - -src_compile() { - emake VERBOSE=1 -} - -src_install() { - emake DESTDIR="${D}" install - if use dedicated ; then - newinitd "${FILESDIR}"/${PN}.initd ${PN} - rm -rf "${ED}"/usr/share/{applications,icons,pixmaps} - fi - rm -f "${ED}"/usr/share/doc/${PF}/COPYING - prepgamesdirs -} - -pkg_preinst() { - games_pkg_preinst - gnome2_icon_savelist -} - -pkg_postinst() { - gnome2_icon_cache_update - games_pkg_postinst - - if ! use lzo ; then - elog "OpenTTD was built without 'lzo' in USE. While 'lzo' is not" - elog "required, disabling it does mean that loading old savegames" - elog "or scenarios from ancient versions (~0.2) will fail." - elog - fi - - if use dedicated ; then - ewarn "Warning: The init script will kill all running openttd" - ewarn "processes when triggered, including any running client sessions!" - else - if use aplaymidi ; then - elog "You have emerged with 'aplaymidi' for playing MIDI." - elog "This option is for those with a hardware midi device," - elog "or who have set up ALSA to handle midi ports." - elog "You must set the environment variable ALSA_OUTPUT_PORTS." - elog "Available ports can be listed by using 'aplaymidi -l'." - else - if ! use timidity ; then - elog "OpenTTD was built with neither 'aplaymidi' nor 'timidity'" - elog "in USE. Music may or may not work in-game. If you happen" - elog "to have timidity++ installed, music will work so long" - elog "as it remains installed, but OpenTTD will not depend on it." - fi - fi - if ! use openmedia ; then - elog - elog "OpenTTD was compiled without the 'openmedia' USE flag." - elog - elog "In order to play, you must at least install:" - elog "games-misc/opengfx, and games-misc/opensfx, or copy the " - elog "following 6 files from a version of Transport Tycoon Deluxe" - elog "(windows or DOS) to ~/.openttd/data/ or" - elog "${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, but should work either with" - elog "all upper or all lower case names" - elog - elog "In addition, in-game music will be unavailable: for music," - elog "install games-misc/openmsx, or use the in-game download" - elog "functionality to get a music set" - elog - fi - fi -} - -pkg_postrm() { - gnome2_icon_cache_update -} |