1 |
mr_bones_ 12/11/01 19:37:47 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: openttd-1.2.3.ebuild |
5 |
Log: |
6 |
version bump |
7 |
|
8 |
(Portage version: 2.1.11.9/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.131 games-simulation/openttd/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-simulation/openttd/ChangeLog?rev=1.131&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-simulation/openttd/ChangeLog?rev=1.131&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-simulation/openttd/ChangeLog?r1=1.130&r2=1.131 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/games-simulation/openttd/ChangeLog,v |
20 |
retrieving revision 1.130 |
21 |
retrieving revision 1.131 |
22 |
diff -u -r1.130 -r1.131 |
23 |
--- ChangeLog 20 Oct 2012 18:39:48 -0000 1.130 |
24 |
+++ ChangeLog 1 Nov 2012 19:37:47 -0000 1.131 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for games-simulation/openttd |
27 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/games-simulation/openttd/ChangeLog,v 1.130 2012/10/20 18:39:48 ago Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/games-simulation/openttd/ChangeLog,v 1.131 2012/11/01 19:37:47 mr_bones_ Exp $ |
30 |
+ |
31 |
+*openttd-1.2.3 (01 Nov 2012) |
32 |
+ |
33 |
+ 01 Nov 2012; Michael Sterrett <mr_bones_@g.o> |
34 |
+ +files/openttd-1.2.3-cflags.patch, +openttd-1.2.3.ebuild: |
35 |
+ version bump |
36 |
|
37 |
20 Oct 2012; Agostino Sarubbo <ago@g.o> openttd-1.2.2.ebuild: |
38 |
Stable for amd64, wrt bug #438540 |
39 |
|
40 |
|
41 |
|
42 |
1.1 games-simulation/openttd/openttd-1.2.3.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-simulation/openttd/openttd-1.2.3.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-simulation/openttd/openttd-1.2.3.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: openttd-1.2.3.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2012 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/games-simulation/openttd/openttd-1.2.3.ebuild,v 1.1 2012/11/01 19:37:47 mr_bones_ Exp $ |
52 |
|
53 |
EAPI=3 |
54 |
inherit eutils gnome2-utils games |
55 |
|
56 |
DESCRIPTION="OpenTTD is a clone of Transport Tycoon Deluxe" |
57 |
HOMEPAGE="http://www.openttd.org/" |
58 |
SRC_URI="http://binaries.openttd.org/releases/${PV}/${P}-source.tar.gz" |
59 |
|
60 |
LICENSE="GPL-2" |
61 |
SLOT="0" |
62 |
KEYWORDS="~amd64 ~ppc ~x86" |
63 |
IUSE="aplaymidi debug dedicated iconv icu lzo +openmedia +png +timidity +truetype zlib" |
64 |
RESTRICT="test" # needs a graphics set in order to test |
65 |
|
66 |
DEPEND="!dedicated? ( |
67 |
media-libs/libsdl[audio,X,video] |
68 |
icu? ( dev-libs/icu ) |
69 |
truetype? ( |
70 |
media-libs/fontconfig |
71 |
media-libs/freetype:2 |
72 |
sys-libs/zlib |
73 |
) |
74 |
) |
75 |
lzo? ( dev-libs/lzo:2 ) |
76 |
iconv? ( virtual/libiconv ) |
77 |
png? ( media-libs/libpng ) |
78 |
zlib? ( sys-libs/zlib )" |
79 |
PDEPEND=" |
80 |
!dedicated? ( |
81 |
openmedia? ( |
82 |
games-misc/openmsx |
83 |
games-misc/opensfx |
84 |
) |
85 |
aplaymidi? ( media-sound/alsa-utils ) |
86 |
!aplaymidi? ( timidity? ( media-sound/timidity++ ) ) |
87 |
) |
88 |
openmedia? ( >=games-misc/opengfx-0.4.4 )" |
89 |
|
90 |
PATCHES=( "${FILESDIR}"/${P}-cflags.patch ) |
91 |
|
92 |
src_configure() { |
93 |
# there is an allegro interface available as well as sdl, but |
94 |
# the configure for it looks broken so the sdl interface is |
95 |
# always built instead. |
96 |
local myopts=" --without-allegro" |
97 |
|
98 |
# libtimidity not needed except for some embedded platform |
99 |
# nevertheless, it will be automagically linked if it is |
100 |
# installed. Hence, we disable it. |
101 |
myopts+=" --without-libtimidity" |
102 |
|
103 |
use debug && myopts+=" --enable-debug=3" |
104 |
|
105 |
if use dedicated ; then |
106 |
myopts+=" --enable-dedicated" |
107 |
else |
108 |
use aplaymidi && myopts+=" --with-midi='/usr/bin/aplaymidi'" |
109 |
myopts+=" |
110 |
$(use_with truetype freetype) |
111 |
$(use_with icu) |
112 |
--with-sdl" |
113 |
fi |
114 |
if use png || { use !dedicated && use truetype; } || use zlib ; then |
115 |
myopts+=" --with-zlib" |
116 |
else |
117 |
myopts+=" --without-zlib" |
118 |
fi |
119 |
|
120 |
# configure is a hand-written bash-script, so econf will not work. |
121 |
# It's all built as C++, upstream uses CFLAGS internally. |
122 |
CFLAGS="" ./configure \ |
123 |
--disable-strip \ |
124 |
--prefix-dir="${EPREFIX}" \ |
125 |
--binary-dir="${GAMES_BINDIR}" \ |
126 |
--data-dir="${GAMES_DATADIR}/${PN}" \ |
127 |
--install-dir="${D}" \ |
128 |
--icon-dir=/usr/share/pixmaps \ |
129 |
--menu-dir=/usr/share/applications \ |
130 |
--icon-theme-dir=/usr/share/icons/hicolor \ |
131 |
--man-dir=/usr/share/man/man6 \ |
132 |
--doc-dir=/usr/share/doc/${PF} \ |
133 |
--menu-group="Game;Simulation;" \ |
134 |
${myopts} \ |
135 |
$(use_with iconv) \ |
136 |
$(use_with png) \ |
137 |
$(use_with lzo liblzo2) \ |
138 |
|| die |
139 |
} |
140 |
|
141 |
src_compile() { |
142 |
emake VERBOSE=1 || die |
143 |
} |
144 |
|
145 |
src_test() { |
146 |
emake -j1 test || die "Make test failed. See above for details." |
147 |
} |
148 |
|
149 |
src_install() { |
150 |
emake DESTDIR="${D}" install || die |
151 |
if use dedicated ; then |
152 |
newinitd "${FILESDIR}"/${PN}.initd ${PN} |
153 |
rm -rf "${ED}"/usr/share/{applications,icons,pixmaps} |
154 |
fi |
155 |
rm -f "${ED}"/usr/share/doc/${PF}/COPYING |
156 |
prepalldocs |
157 |
prepgamesdirs |
158 |
} |
159 |
|
160 |
pkg_preinst() { |
161 |
games_pkg_preinst |
162 |
gnome2_icon_savelist |
163 |
} |
164 |
|
165 |
pkg_postinst() { |
166 |
gnome2_icon_cache_update |
167 |
games_pkg_postinst |
168 |
|
169 |
if ! use lzo ; then |
170 |
elog "OpenTTD was built without 'lzo' in USE. While 'lzo' is not" |
171 |
elog "required, disabling it does mean that loading old savegames" |
172 |
elog "or scenarios from ancient versions (~0.2) will fail." |
173 |
elog |
174 |
fi |
175 |
|
176 |
if use dedicated ; then |
177 |
ewarn "Warning: The init script will kill all running openttd" |
178 |
ewarn "processes when triggered, including any running client sessions!" |
179 |
else |
180 |
if use aplaymidi ; then |
181 |
elog "You have emerged with 'aplaymidi' for playing MIDI." |
182 |
elog "This option is for those with a hardware midi device," |
183 |
elog "or who have set up ALSA to handle midi ports." |
184 |
elog "You must set the environment variable ALSA_OUTPUT_PORTS." |
185 |
elog "Available ports can be listed by using 'aplaymidi -l'." |
186 |
else |
187 |
if ! use timidity ; then |
188 |
elog "OpenTTD was built with neither 'aplaymidi' nor 'timidity'" |
189 |
elog "in USE. Music may or may not work in-game. If you happen" |
190 |
elog "to have timidity++ installed, music will work so long" |
191 |
elog "as it remains installed, but OpenTTD will not depend on it." |
192 |
fi |
193 |
fi |
194 |
if ! use openmedia ; then |
195 |
elog |
196 |
elog "OpenTTD was compiled without the 'openmedia' USE flag." |
197 |
elog |
198 |
elog "In order to play, you must at least install:" |
199 |
elog "games-misc/opengfx, and games-misc/opensfx, or copy the " |
200 |
elog "following 6 files from a version of Transport Tycoon Deluxe" |
201 |
elog "(windows or DOS) to ~/.openttd/data/ or" |
202 |
elog "${GAMES_DATADIR}/${PN}/data/." |
203 |
elog |
204 |
elog "From the WINDOWS version you need: " |
205 |
elog "sample.cat trg1r.grf trgcr.grf trghr.grf trgir.grf trgtr.grf" |
206 |
elog "OR from the DOS version you need: " |
207 |
elog "SAMPLE.CAT TRG1.GRF TRGC.GRF TRGH.GRF TRGI.GRF TRGT.GRF" |
208 |
elog |
209 |
elog "File names are case sensitive, but should work either with" |
210 |
elog "all upper or all lower case names" |
211 |
elog |
212 |
elog "In addition, in-game music will be unavailable: for music," |
213 |
elog "install games-misc/openmsx, or use the in-game download" |
214 |
elog "functionality to get a music set" |
215 |
elog |
216 |
fi |
217 |
fi |
218 |
} |
219 |
|
220 |
pkg_postrm() { |
221 |
gnome2_icon_cache_update |
222 |
} |