1 |
mr_bones_ 10/05/26 20:44:30 |
2 |
|
3 |
Modified: metadata.xml ChangeLog openttd-1.0.1.ebuild |
4 |
Log: |
5 |
fix automagic linking against libtimidity (bug #321559); clarify the midi situation - patches from Locke Shinseiko (Wizzleby) |
6 |
(Portage version: 2.1.8.3/cvs/Linux i686) |
7 |
|
8 |
Revision Changes Path |
9 |
1.8 games-simulation/openttd/metadata.xml |
10 |
|
11 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-simulation/openttd/metadata.xml?rev=1.8&view=markup |
12 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-simulation/openttd/metadata.xml?rev=1.8&content-type=text/plain |
13 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-simulation/openttd/metadata.xml?r1=1.7&r2=1.8 |
14 |
|
15 |
Index: metadata.xml |
16 |
=================================================================== |
17 |
RCS file: /var/cvsroot/gentoo-x86/games-simulation/openttd/metadata.xml,v |
18 |
retrieving revision 1.7 |
19 |
retrieving revision 1.8 |
20 |
diff -u -r1.7 -r1.8 |
21 |
--- metadata.xml 18 Apr 2010 07:35:40 -0000 1.7 |
22 |
+++ metadata.xml 26 May 2010 20:44:30 -0000 1.8 |
23 |
@@ -3,6 +3,8 @@ |
24 |
<pkgmetadata> |
25 |
<herd>games</herd> |
26 |
<use> |
27 |
+ <flag name='aplaymidi'>Enables midi music in game, using aplaymidi as an external player</flag> |
28 |
+ |
29 |
<flag name='openmedia'>Enables the free open media sets: OpenGFX, OpenSFX, OpenMSX, removing the requirement for proprietary TTD assets to play OpenTTD.</flag> |
30 |
<flag name='lzo'>Enables LZO compression for savegames. This is only needed to load extremely old savegames. (versions before 0.2)</flag> |
31 |
<flag name='dedicated'>Build only the openttd server, and not the client.</flag> |
32 |
|
33 |
|
34 |
|
35 |
1.88 games-simulation/openttd/ChangeLog |
36 |
|
37 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-simulation/openttd/ChangeLog?rev=1.88&view=markup |
38 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-simulation/openttd/ChangeLog?rev=1.88&content-type=text/plain |
39 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-simulation/openttd/ChangeLog?r1=1.87&r2=1.88 |
40 |
|
41 |
Index: ChangeLog |
42 |
=================================================================== |
43 |
RCS file: /var/cvsroot/gentoo-x86/games-simulation/openttd/ChangeLog,v |
44 |
retrieving revision 1.87 |
45 |
retrieving revision 1.88 |
46 |
diff -u -r1.87 -r1.88 |
47 |
--- ChangeLog 21 May 2010 21:02:06 -0000 1.87 |
48 |
+++ ChangeLog 26 May 2010 20:44:30 -0000 1.88 |
49 |
@@ -1,6 +1,11 @@ |
50 |
# ChangeLog for games-simulation/openttd |
51 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
52 |
-# $Header: /var/cvsroot/gentoo-x86/games-simulation/openttd/ChangeLog,v 1.87 2010/05/21 21:02:06 pacho Exp $ |
53 |
+# $Header: /var/cvsroot/gentoo-x86/games-simulation/openttd/ChangeLog,v 1.88 2010/05/26 20:44:30 mr_bones_ Exp $ |
54 |
+ |
55 |
+ 26 May 2010; Michael Sterrett <mr_bones_@g.o> openttd-1.0.1.ebuild, |
56 |
+ metadata.xml: |
57 |
+ fix automagic linking against libtimidity (bug #321559); clarify the midi |
58 |
+ situation - patches from Locke Shinseiko (Wizzleby) |
59 |
|
60 |
21 May 2010; Pacho Ramos <pacho@g.o> openttd-0.7.5.ebuild: |
61 |
amd64 stable, bug 300182 |
62 |
|
63 |
|
64 |
|
65 |
1.2 games-simulation/openttd/openttd-1.0.1.ebuild |
66 |
|
67 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-simulation/openttd/openttd-1.0.1.ebuild?rev=1.2&view=markup |
68 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-simulation/openttd/openttd-1.0.1.ebuild?rev=1.2&content-type=text/plain |
69 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-simulation/openttd/openttd-1.0.1.ebuild?r1=1.1&r2=1.2 |
70 |
|
71 |
Index: openttd-1.0.1.ebuild |
72 |
=================================================================== |
73 |
RCS file: /var/cvsroot/gentoo-x86/games-simulation/openttd/openttd-1.0.1.ebuild,v |
74 |
retrieving revision 1.1 |
75 |
retrieving revision 1.2 |
76 |
diff -u -r1.1 -r1.2 |
77 |
--- openttd-1.0.1.ebuild 1 May 2010 04:26:33 -0000 1.1 |
78 |
+++ openttd-1.0.1.ebuild 26 May 2010 20:44:30 -0000 1.2 |
79 |
@@ -1,6 +1,6 @@ |
80 |
# Copyright 1999-2010 Gentoo Foundation |
81 |
# Distributed under the terms of the GNU General Public License v2 |
82 |
-# $Header: /var/cvsroot/gentoo-x86/games-simulation/openttd/openttd-1.0.1.ebuild,v 1.1 2010/05/01 04:26:33 mr_bones_ Exp $ |
83 |
+# $Header: /var/cvsroot/gentoo-x86/games-simulation/openttd/openttd-1.0.1.ebuild,v 1.2 2010/05/26 20:44:30 mr_bones_ Exp $ |
84 |
|
85 |
EAPI=2 |
86 |
inherit eutils games |
87 |
@@ -16,7 +16,7 @@ |
88 |
LICENSE="GPL-2" |
89 |
SLOT="0" |
90 |
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" |
91 |
-IUSE="alsa debug dedicated iconv icu lzo +openmedia +png +truetype zlib" |
92 |
+IUSE="aplaymidi debug dedicated iconv icu lzo +openmedia +png +timidity +truetype zlib" |
93 |
RESTRICT="test" |
94 |
|
95 |
DEPEND=" |
96 |
@@ -33,15 +33,16 @@ |
97 |
iconv? ( virtual/libiconv ) |
98 |
png? ( media-libs/libpng ) |
99 |
zlib? ( sys-libs/zlib )" |
100 |
-RDEPEND="${DEPEND} |
101 |
- !dedicated? ( |
102 |
- alsa? ( media-sound/alsa-utils ) |
103 |
- )" |
104 |
+ |
105 |
PDEPEND=" |
106 |
- openmedia? ( |
107 |
- games-misc/opengfx |
108 |
- games-misc/opensfx |
109 |
- games-misc/openmsx |
110 |
+ !dedicated? ( |
111 |
+ openmedia? ( |
112 |
+ games-misc/opengfx |
113 |
+ games-misc/opensfx |
114 |
+ games-misc/openmsx |
115 |
+ ) |
116 |
+ aplaymidi? ( media-sound/alsa-utils ) |
117 |
+ !aplaymidi? ( timidity? ( media-sound/timidity++ ) ) |
118 |
)" |
119 |
|
120 |
src_configure() { |
121 |
@@ -50,12 +51,17 @@ |
122 |
# always built instead. |
123 |
local myopts="${myopts} --without-allegro" |
124 |
|
125 |
+ # libtimidity not needed except for some embedded platform |
126 |
+ # nevertheless, it will be automagically linked if it is |
127 |
+ # installed. Hence, we disable it. |
128 |
+ myopts="${myopts} --without-libtimidity" |
129 |
+ |
130 |
use debug && myopts="${myopts} --enable-debug=3" |
131 |
|
132 |
if use dedicated ; then |
133 |
myopts="${myopts} --enable-dedicated" |
134 |
else |
135 |
- use alsa && myopts="${myopts} --with-midi=/usr/bin/aplaymidi" |
136 |
+ use aplaymidi && myopts="${myopts} --with-midi='/usr/bin/aplaymidi'" |
137 |
myopts="${myopts} |
138 |
$(use_with truetype freetype) |
139 |
$(use_with icu) |
140 |
@@ -106,50 +112,53 @@ |
141 |
pkg_postinst() { |
142 |
games_pkg_postinst |
143 |
|
144 |
- if ! use openmedia ; then |
145 |
- elog |
146 |
- elog "OpenTTD was compiled without openmedia USE flags." |
147 |
- elog |
148 |
- elog "In order to play, you must either install games-misc/opengfx" |
149 |
- elog "as well as games-misc/opensfx or copy the following 6 files" |
150 |
- elog "from a version of Transport Tycoon Deluxe (windows or DOS)" |
151 |
- elog "to ~/.openttd/data/ or ${GAMES_DATADIR}/${PN}/data/." |
152 |
- elog |
153 |
- elog "From the WINDOWS version you need: " |
154 |
- elog " sample.cat trg1r.grf trgcr.grf trghr.grf trgir.grf trgtr.grf" |
155 |
- elog "OR from the DOS version you need: " |
156 |
- elog " SAMPLE.CAT TRG1.GRF TRGC.GRF TRGH.GRF TRGI.GRF TRGT.GRF" |
157 |
- elog |
158 |
- elog "File names are case sensitive so make sure they are " |
159 |
- elog "correct for whichever version you have." |
160 |
- elog |
161 |
- fi |
162 |
- |
163 |
if ! use lzo ; then |
164 |
- elog "OpenTTD was compiled without lzo2 support." |
165 |
- elog "While lzo2 is not required, disabling it does mean that" |
166 |
- elog "loading old savegames/scenarios from ancient versions (~0.2)" |
167 |
- elog "will be disabled" |
168 |
+ elog "OpenTTD was built without 'lzo' in USE. While 'lzo' is not" |
169 |
+ elog "required, disabling it does mean that loading old savegames" |
170 |
+ elog "or scenarios from ancient versions (~0.2) will fail." |
171 |
elog |
172 |
fi |
173 |
|
174 |
if use dedicated ; then |
175 |
ewarn "Warning: The init script will kill all running openttd" |
176 |
- ewarn "processes when run, including any running client sessions!" |
177 |
+ ewarn "processes when triggered, including any running client sessions!" |
178 |
else |
179 |
- if use alsa ; then |
180 |
+ if use aplaymidi ; then |
181 |
elog "You have emerged with 'aplaymidi' for playing MIDI." |
182 |
- elog "You have to set the environment variable ALSA_OUTPUT_PORTS." |
183 |
+ elog "This option is for those with a hardware midi device," |
184 |
+ elog "or who have set up ALSA to handle midi ports." |
185 |
+ elog "You must set the environment variable ALSA_OUTPUT_PORTS." |
186 |
elog "Available ports can be listed by using 'aplaymidi -l'." |
187 |
- if ! use openmedia ; then |
188 |
- elog "You have disabled the openmedia use flag, in-game music" |
189 |
- elog "will be unavailable unless you install games-misc/openmsx" |
190 |
- elog "or install a music set in ~/.openttd/gm or use the in-game" |
191 |
- elog "download functionality to get a music set" |
192 |
- fi |
193 |
else |
194 |
- elog "alsa not in USE so music will not be played during the game." |
195 |
- |
196 |
+ if ! use timidity ; then |
197 |
+ elog "OpenTTD was built with neither 'aplaymidi' nor 'timidity'" |
198 |
+ elog "in USE. Music may or may not work in-game. If you happen" |
199 |
+ elog "to have timidity++ installed, music will work so long" |
200 |
+ elog "as it remains installed, but OpenTTD will not depend on it." |
201 |
+ fi |
202 |
+ fi |
203 |
+ if ! use openmedia ; then |
204 |
+ elog |
205 |
+ elog "OpenTTD was compiled without the 'openmedia' USE flag." |
206 |
+ elog |
207 |
+ elog "In order to play, you must at least install:" |
208 |
+ elog "games-misc/opengfx, and games-misc/opensfx, or copy the " |
209 |
+ elog "following 6 files from a version of Transport Tycoon Deluxe" |
210 |
+ elog "(windows or DOS) to ~/.openttd/data/ or" |
211 |
+ elog "${GAMES_DATADIR}/${PN}/data/." |
212 |
+ elog |
213 |
+ elog "From the WINDOWS version you need: " |
214 |
+ elog "sample.cat trg1r.grf trgcr.grf trghr.grf trgir.grf trgtr.grf" |
215 |
+ elog "OR from the DOS version you need: " |
216 |
+ elog "SAMPLE.CAT TRG1.GRF TRGC.GRF TRGH.GRF TRGI.GRF TRGT.GRF" |
217 |
+ elog |
218 |
+ elog "File names are case sensitive, but should work either with" |
219 |
+ elog "all upper or all lower case names" |
220 |
+ elog |
221 |
+ elog "In addition, in-game music will be unavailable: for music," |
222 |
+ elog "install games-misc/openmsx, or use the in-game download" |
223 |
+ elog "functionality to get a music set" |
224 |
+ elog |
225 |
fi |
226 |
fi |
227 |
} |