1 |
pylon 07/10/01 12:11:46 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: openttd-0.5.3.ebuild |
5 |
Log: |
6 |
Version bump. |
7 |
(Portage version: 2.1.3.11) |
8 |
|
9 |
Revision Changes Path |
10 |
1.58 games-simulation/openttd/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-simulation/openttd/ChangeLog?rev=1.58&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-simulation/openttd/ChangeLog?rev=1.58&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-simulation/openttd/ChangeLog?r1=1.57&r2=1.58 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/games-simulation/openttd/ChangeLog,v |
19 |
retrieving revision 1.57 |
20 |
retrieving revision 1.58 |
21 |
diff -u -r1.57 -r1.58 |
22 |
--- ChangeLog 23 Sep 2007 16:03:47 -0000 1.57 |
23 |
+++ ChangeLog 1 Oct 2007 12:11:46 -0000 1.58 |
24 |
@@ -1,6 +1,11 @@ |
25 |
# ChangeLog for games-simulation/openttd |
26 |
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/games-simulation/openttd/ChangeLog,v 1.57 2007/09/23 16:03:47 josejx Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/games-simulation/openttd/ChangeLog,v 1.58 2007/10/01 12:11:46 pylon Exp $ |
29 |
+ |
30 |
+*openttd-0.5.3 (01 Oct 2007) |
31 |
+ |
32 |
+ 01 Oct 2007; Lars Weiler <pylon@g.o> +openttd-0.5.3.ebuild: |
33 |
+ Version bump. |
34 |
|
35 |
23 Sep 2007; Joseph Jezak <josejx@g.o> openttd-0.5.2.ebuild: |
36 |
Marked ppc64 stable. |
37 |
|
38 |
|
39 |
|
40 |
1.1 games-simulation/openttd/openttd-0.5.3.ebuild |
41 |
|
42 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-simulation/openttd/openttd-0.5.3.ebuild?rev=1.1&view=markup |
43 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-simulation/openttd/openttd-0.5.3.ebuild?rev=1.1&content-type=text/plain |
44 |
|
45 |
Index: openttd-0.5.3.ebuild |
46 |
=================================================================== |
47 |
# Copyright 1999-2007 Gentoo Foundation |
48 |
# Distributed under the terms of the GNU General Public License v2 |
49 |
# $Header: /var/cvsroot/gentoo-x86/games-simulation/openttd/openttd-0.5.3.ebuild,v 1.1 2007/10/01 12:11:46 pylon Exp $ |
50 |
|
51 |
inherit eutils games |
52 |
|
53 |
MY_P=${P/_rc/-RC} |
54 |
|
55 |
SCENARIOS_048="${PN}-0.4.8-scenarios.tar.bz2" |
56 |
SCENARIOS_050="${PN}-0.5.0-scenarios.tar.bz2" |
57 |
|
58 |
DESCRIPTION="OpenTTD is a clone of Transport Tycoon Deluxe" |
59 |
HOMEPAGE="http://www.openttd.com/" |
60 |
SB="mirror://sourceforge/openttd" |
61 |
SRC_URI="${SB}/${MY_P}-source.tar.bz2 |
62 |
scenarios? ( ${SB}/${SCENARIOS_048} |
63 |
${SB}/${SCENARIOS_050} )" |
64 |
|
65 |
LICENSE="GPL-2" |
66 |
SLOT="0" |
67 |
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" |
68 |
IUSE="alsa debug dedicated iconv png scenarios static timidity zlib" |
69 |
|
70 |
DEPEND="!dedicated? ( media-libs/libsdl |
71 |
media-libs/fontconfig |
72 |
) |
73 |
iconv? ( virtual/libiconv ) |
74 |
png? ( media-libs/libpng ) |
75 |
zlib? ( sys-libs/zlib )" |
76 |
RDEPEND="${DEPEND} |
77 |
!dedicated? ( |
78 |
timidity? ( media-sound/timidity++ ) |
79 |
!timidity? ( alsa? ( media-sound/alsa-utils ) ) |
80 |
)" |
81 |
|
82 |
S=${WORKDIR}/${MY_P} |
83 |
|
84 |
pkg_setup() { |
85 |
if ! use dedicated && ! built_with_use media-libs/libsdl X ; then |
86 |
die "Please emerge media-libs/libsdl with USE=X" |
87 |
fi |
88 |
games_pkg_setup |
89 |
} |
90 |
|
91 |
src_unpack() { |
92 |
unpack ${MY_P}-source.tar.bz2 |
93 |
if use scenarios ; then |
94 |
cd ${S}/scenario/ |
95 |
unpack ${SCENARIOS_048} |
96 |
unpack ${SCENARIOS_050} |
97 |
fi |
98 |
cd ${S} |
99 |
# Don't pre-strip binaries (bug #137822) |
100 |
sed -i -e '/+= -s$/s/-s//' Makefile || die "sed failed" |
101 |
# Don't install into prefixed DATA_DIR |
102 |
sed -i -e \ |
103 |
's#DATA_DIR_PREFIXED:=$(PREFIX)/$(DATA_DIR)#DATA_DIR_PREFIXED:=$(DATA_DIR)#' \ |
104 |
Makefile || die "sed failed" |
105 |
} |
106 |
|
107 |
src_compile() { |
108 |
local myopts="" |
109 |
use debug && myopts="${myopts} --debug" |
110 |
use static && myopts="${myopts} --with-static" |
111 |
use dedicated && myopts="${myopts} --dedicated --without-sdl" |
112 |
use iconv && myopts="${myopts} --with-iconv" |
113 |
use png && myopts="${myopts} --with-png" |
114 |
use zlib && myopts="${myopts} --with-zlib" |
115 |
if ! use dedicated; then |
116 |
myopts="${myopts} --with-sdl --with-freetype --with-fontconfig" |
117 |
if ! use timidity; then |
118 |
#use alsa && myopts="${myopts} --with-midi=/usr/bin/aplaymidi" |
119 |
einfo "This version of openttd does not support setting the midi-player." |
120 |
fi |
121 |
fi |
122 |
# configure is a hand-written sh-script, so econf will not work |
123 |
./configure --os=UNIX \ |
124 |
--with-network \ |
125 |
${myopts} \ |
126 |
|| die "configure failed" |
127 |
|
128 |
emake \ |
129 |
MANUAL_CONFIG=1 \ |
130 |
INSTALL=1 \ |
131 |
USE_HOMEDIR=1 \ |
132 |
DEST_DIR=${D} \ |
133 |
PERSONAL_DIR=.openttd \ |
134 |
PREFIX=${GAMES_PREFIX} \ |
135 |
DATA_DIR=${GAMES_DATADIR}/${PN} \ |
136 |
CUSTOM_LANG_DIR=${GAMES_DATADIR}/${PN}/lang \ |
137 |
|| die "emake failed" |
138 |
} |
139 |
|
140 |
src_install() { |
141 |
dogamesbin openttd || die "dogamesbin failed" |
142 |
|
143 |
insinto "${GAMES_DATADIR}"/${PN}/data |
144 |
doins data/* || die "doins failed (data)" |
145 |
|
146 |
insinto "${GAMES_DATADIR}"/${PN}/lang |
147 |
doins lang/*.lng || die "doins failed (lang)" |
148 |
|
149 |
if use scenarios ; then |
150 |
insinto "${GAMES_DATADIR}"/${PN}/scenario |
151 |
doins scenario/*.scn || die "doins failed (scenario)" |
152 |
doins scenario/*/*.scn || die "doins failed (scenario)" |
153 |
fi |
154 |
|
155 |
insinto "${GAMES_DATADIR}"/${PN}/scripts |
156 |
doins scripts/*.example || die "doins failed (scripts)" |
157 |
|
158 |
for i in {16,32,48,64,128}; do |
159 |
insinto "${ROOT}"/usr/share/icons/hicolor/${i}x${i}/apps |
160 |
newins media/openttd.${i}.png openttd.png |
161 |
done |
162 |
|
163 |
if ! use dedicated ; then |
164 |
if use timidity || use alsa ; then |
165 |
make_desktop_entry "openttd -m extmidi" "OpenTTD" openttd |
166 |
else |
167 |
make_desktop_entry openttd "OpenTTD" openttd |
168 |
fi |
169 |
else |
170 |
newinitd "${FILESDIR}"/openttd.initd openttd |
171 |
fi |
172 |
|
173 |
dodoc readme.txt known-bugs.txt changelog.txt docs/Manual.txt \ |
174 |
docs/multiplayer.txt |
175 |
dohtml -a html,gif,png,svg docs/* |
176 |
newdoc scripts/readme.txt readme_scripts.txt |
177 |
doman docs/openttd.6 |
178 |
prepgamesdirs |
179 |
} |
180 |
|
181 |
pkg_postinst() { |
182 |
games_pkg_postinst |
183 |
|
184 |
echo |
185 |
einfo "In order to play, you must copy the following 6 files from " |
186 |
einfo "a version of TTD to ${GAMES_DATADIR}/${PN}/data/." |
187 |
echo |
188 |
einfo "From the WINDOWS version you need: " |
189 |
einfo " sample.cat trg1r.grf trgcr.grf trghr.grf trgir.grf trgtr.grf" |
190 |
einfo "OR from the DOS version you need: " |
191 |
einfo " SAMPLE.CAT TRG1.GRF TRGC.GRF TRGH.GRF TRGI.GRF TRGT.GRF" |
192 |
echo |
193 |
einfo "File names are case sensitive so make sure they are " |
194 |
einfo "correct for whichever version you have." |
195 |
echo |
196 |
|
197 |
if ! use scenarios ; then |
198 |
einfo "Scenarios are now included in a seperate package. To " |
199 |
einfo "install them as well please remerge with the " |
200 |
einfo "\"scenarios\" USE flag." |
201 |
echo |
202 |
else |
203 |
einfo "Scenarios are installed to" |
204 |
einfo "${GAMES_DATADIR}/${PN}/scenario," |
205 |
einfo "you will have to symlink them to ~/.openttd/scenario in order" |
206 |
einfo "to use them." |
207 |
einfo "Example:" |
208 |
einfo " mkdir -p ~/.openttd/scenario" |
209 |
einfo " ln -s ${GAMES_DATADIR}/${PN}/scenario/* ~/.openttd/scenario/" |
210 |
echo |
211 |
fi |
212 |
|
213 |
if use dedicated ; then |
214 |
einfo "You have chosen the dedicated USE flag which builds a " |
215 |
einfo "version of OpenTTD to be used as a game server which " |
216 |
einfo "does not require SDL. You will not be able to play the " |
217 |
einfo "game, but if you don't pass this flag you can still use " |
218 |
einfo "it as a server in the same way, but SDL will be required." |
219 |
echo |
220 |
ewarn "Warning: The init script will kill all running openttd" |
221 |
ewarn "processes when run, including any running client sessions!" |
222 |
echo |
223 |
else |
224 |
if use timidity || use alsa ; then |
225 |
einfo "If you want music, you must copy the gm/ directory to" |
226 |
einfo "${GAMES_DATADIR}/${PN}/" |
227 |
einfo "You can enable MIDI by running:" |
228 |
einfo " openttd -m extmidi" |
229 |
echo |
230 |
if use timidity ; then |
231 |
einfo "You also need soundfonts for timidity, if you don't" |
232 |
einfo "know what that is, do:" |
233 |
echo |
234 |
einfo "emerge media-sound/timidity-eawpatches" |
235 |
else |
236 |
einfo "You have emerged with 'aplaymidi' for playing MIDI." |
237 |
einfo "You have to set the environment variable ALSA_OUTPUT_PORTS." |
238 |
einfo "Available ports can be listed by using 'aplaymidi -l'." |
239 |
fi |
240 |
else |
241 |
einfo "timidity and/or alsa not in USE so music will not be played during the game." |
242 |
fi |
243 |
echo |
244 |
fi |
245 |
} |
246 |
|
247 |
|
248 |
|
249 |
-- |
250 |
gentoo-commits@g.o mailing list |