1 |
commit: 160c3a2a2c472bb27b168197e7342a3874becd40 |
2 |
Author: Azamat H. Hackimov <azamat.hackimov <AT> gmail <DOT> com> |
3 |
AuthorDate: Fri May 21 19:21:45 2021 +0000 |
4 |
Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jun 28 22:13:10 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=160c3a2a |
7 |
|
8 |
games-simulation/openttd: remove old and live versions |
9 |
|
10 |
Package-Manager: Portage-3.0.18, Repoman-3.0.2 |
11 |
Signed-off-by: Azamat H. Hackimov <azamat.hackimov <AT> gmail.com> |
12 |
Closes: https://github.com/gentoo/gentoo/pull/20913 |
13 |
Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org> |
14 |
|
15 |
games-simulation/openttd/Manifest | 1 - |
16 |
.../openttd/files/openttd-1.10.3-icu68.patch | 28 ---- |
17 |
.../openttd/files/openttd-1.9.0-cflags.patch | 56 ------- |
18 |
.../openttd-1.9.0-dont_compress_manpages.patch | 34 ---- |
19 |
games-simulation/openttd/metadata.xml | 1 - |
20 |
games-simulation/openttd/openttd-1.10.3.ebuild | 177 --------------------- |
21 |
games-simulation/openttd/openttd-9999.ebuild | 176 -------------------- |
22 |
7 files changed, 473 deletions(-) |
23 |
|
24 |
diff --git a/games-simulation/openttd/Manifest b/games-simulation/openttd/Manifest |
25 |
index 4baf99cfbbe..e1bd78d5f72 100644 |
26 |
--- a/games-simulation/openttd/Manifest |
27 |
+++ b/games-simulation/openttd/Manifest |
28 |
@@ -1,2 +1 @@ |
29 |
-DIST openttd-1.10.3-source.tar.xz 6815924 BLAKE2B f700304e723fe5c3fa9781432a387e061595bbc8de42f565ad57ac265d9e4bc14cbc659a3f6551019bfb31b8b56b180c272c6753a12b4cd2e13016a98dfe1679 SHA512 d1cd535e8e49f0ac147704341287af1b16bde6725fd9152dd36dcb780559b400da8bb31c4e8eb665a0d11e9b1f5bf8a96be0f97f7a85bd967eec534fdd3dd0d4 |
30 |
DIST openttd-1.11.2-source.tar.xz 6783972 BLAKE2B c71fd98a480566aede29f84afbd100b6d0dfa80311860907a7287d2d5bed74bd492c2b1012cd83f45fe68d60fb0c2378e1384530a84c28bd7fbd907b45110491 SHA512 9a6364bf19627db9f8ec58bfa85fa3a8febf1109f3b5fb9053bef810ac2d0c41df91b58f0b253dd45320a29cae2e8485df794afa7b5240f19759f98fd65c35ea |
31 |
|
32 |
diff --git a/games-simulation/openttd/files/openttd-1.10.3-icu68.patch b/games-simulation/openttd/files/openttd-1.10.3-icu68.patch |
33 |
deleted file mode 100644 |
34 |
index 9596ab66606..00000000000 |
35 |
--- a/games-simulation/openttd/files/openttd-1.10.3-icu68.patch |
36 |
+++ /dev/null |
37 |
@@ -1,28 +0,0 @@ |
38 |
-From 842e0ed5e3220a0e5ab19e7b0892c9c72c230ae7 Mon Sep 17 00:00:00 2001 |
39 |
-From: Lars Wendler <polynomial-c@g.o> |
40 |
-Date: Fri, 30 Oct 2020 18:45:20 +0100 |
41 |
-Subject: [PATCH] Fix: build with icu-68.1 |
42 |
- |
43 |
-icu-68.1 removed public macro definitions for TRUE and FALSE |
44 |
- |
45 |
-Signed-off-by: Lars Wendler <polynomial-c@g.o> |
46 |
---- |
47 |
- src/gfx_layout.cpp | 2 +- |
48 |
- 1 file changed, 1 insertion(+), 1 deletion(-) |
49 |
- |
50 |
-diff --git a/src/gfx_layout.cpp b/src/gfx_layout.cpp |
51 |
-index 584a71273..ebd1afaa8 100644 |
52 |
---- a/src/gfx_layout.cpp |
53 |
-+++ b/src/gfx_layout.cpp |
54 |
-@@ -116,7 +116,7 @@ void Font::getGlyphAdvance(LEGlyphID glyph, LEPoint &advance) const |
55 |
- |
56 |
- le_bool Font::getGlyphPoint(LEGlyphID glyph, le_int32 pointNumber, LEPoint &point) const |
57 |
- { |
58 |
-- return FALSE; |
59 |
-+ return false; |
60 |
- } |
61 |
- |
62 |
- /** |
63 |
--- |
64 |
-2.29.2 |
65 |
- |
66 |
|
67 |
diff --git a/games-simulation/openttd/files/openttd-1.9.0-cflags.patch b/games-simulation/openttd/files/openttd-1.9.0-cflags.patch |
68 |
deleted file mode 100644 |
69 |
index 86eb16168db..00000000000 |
70 |
--- a/games-simulation/openttd/files/openttd-1.9.0-cflags.patch |
71 |
+++ /dev/null |
72 |
@@ -1,56 +0,0 @@ |
73 |
-From 6d72f33efe9f911d1427795a06c13d9dcd6fa222 Mon Sep 17 00:00:00 2001 |
74 |
-From: Lars Wendler <polynomial-c@g.o> |
75 |
-Date: Wed, 3 Apr 2019 14:11:42 +0200 |
76 |
-Subject: [PATCH] Don't mess with our CFLAGS |
77 |
- |
78 |
-Signed-off-by: Lars Wendler <polynomial-c@g.o> |
79 |
---- |
80 |
- config.lib | 18 ------------------ |
81 |
- 1 file changed, 18 deletions(-) |
82 |
- |
83 |
-diff --git a/config.lib b/config.lib |
84 |
-index f65aaa535..7789c0bea 100644 |
85 |
---- a/config.lib |
86 |
-+++ b/config.lib |
87 |
-@@ -1499,11 +1499,6 @@ make_cflags_and_ldflags() { |
88 |
- # No debug, add default stuff |
89 |
- OBJS_SUBDIR="release" |
90 |
- |
91 |
-- if [ "$enable_profiling" = "0" ]; then |
92 |
-- # -fomit-frame-pointer and -pg do not go well together (gcc errors they are incompatible) |
93 |
-- CFLAGS="-fomit-frame-pointer $CFLAGS" |
94 |
-- fi |
95 |
-- CFLAGS="-O2 $CFLAGS" |
96 |
- else |
97 |
- OBJS_SUBDIR="debug" |
98 |
- |
99 |
-@@ -1511,14 +1506,6 @@ make_cflags_and_ldflags() { |
100 |
- if [ $enable_debug -ge 1 ]; then |
101 |
- CFLAGS="$CFLAGS -g -D_DEBUG" |
102 |
- fi |
103 |
-- if [ $enable_debug -ge 2 ]; then |
104 |
-- CFLAGS="$CFLAGS -fno-inline" |
105 |
-- fi |
106 |
-- if [ $enable_debug -ge 3 ]; then |
107 |
-- CFLAGS="$CFLAGS -O0" |
108 |
-- else |
109 |
-- CFLAGS="$CFLAGS -O2" |
110 |
-- fi |
111 |
- fi |
112 |
- |
113 |
- if [ $enable_debug -le 2 ]; then |
114 |
-@@ -1543,11 +1530,6 @@ make_cflags_and_ldflags() { |
115 |
- CFLAGS="$CFLAGS -fno-expensive-optimizations" |
116 |
- fi |
117 |
- |
118 |
-- if [ "$enable_profiling" != "0" ]; then |
119 |
-- CFLAGS="$CFLAGS -pg" |
120 |
-- LDFLAGS="$LDFLAGS -pg" |
121 |
-- fi |
122 |
-- |
123 |
- if [ "$with_threads" = "0" ]; then |
124 |
- CFLAGS="$CFLAGS -DNO_THREADS" |
125 |
- fi |
126 |
--- |
127 |
-2.21.0 |
128 |
- |
129 |
|
130 |
diff --git a/games-simulation/openttd/files/openttd-1.9.0-dont_compress_manpages.patch b/games-simulation/openttd/files/openttd-1.9.0-dont_compress_manpages.patch |
131 |
deleted file mode 100644 |
132 |
index d151dbf3693..00000000000 |
133 |
--- a/games-simulation/openttd/files/openttd-1.9.0-dont_compress_manpages.patch |
134 |
+++ /dev/null |
135 |
@@ -1,34 +0,0 @@ |
136 |
-From da54b0365997181979d5c7131e99957424d4a167 Mon Sep 17 00:00:00 2001 |
137 |
-From: Lars Wendler <polynomial-c@g.o> |
138 |
-Date: Wed, 3 Apr 2019 13:53:50 +0200 |
139 |
-Subject: [PATCH] Do not compress man-pages by default |
140 |
- |
141 |
-Signed-off-by: Lars Wendler <polynomial-c@g.o> |
142 |
---- |
143 |
- Makefile.bundle.in | 3 +-- |
144 |
- 1 file changed, 1 insertion(+), 2 deletions(-) |
145 |
- |
146 |
-diff --git a/Makefile.bundle.in b/Makefile.bundle.in |
147 |
-index eaf7134dd..1c2523181 100644 |
148 |
---- a/Makefile.bundle.in |
149 |
-+++ b/Makefile.bundle.in |
150 |
-@@ -77,7 +77,6 @@ endif |
151 |
- ifdef MAN_DIR |
152 |
- $(Q)mkdir -p "$(BUNDLE_DIR)/man/" |
153 |
- $(Q)cp "$(ROOT_DIR)/docs/openttd.6" "$(BUNDLE_DIR)/man/" |
154 |
-- $(Q)gzip -9 "$(BUNDLE_DIR)/man/openttd.6" |
155 |
- endif |
156 |
- $(Q)cp "$(ROOT_DIR)/media/openttd.32.xpm" "$(BUNDLE_DIR)/media/" |
157 |
- $(Q)cp "$(ROOT_DIR)/media/openttd."*.png "$(BUNDLE_DIR)/media/" |
158 |
-@@ -219,7 +218,7 @@ endif |
159 |
- ifdef MAN_DIR |
160 |
- ifndef DO_NOT_INSTALL_MAN |
161 |
- $(Q)install -d "$(INSTALL_MAN_DIR)" |
162 |
-- $(Q)install -m 644 "$(BUNDLE_DIR)/man/openttd.6.gz" "$(INSTALL_MAN_DIR)/${BINARY_NAME}.6.gz" |
163 |
-+ $(Q)install -m 644 "$(BUNDLE_DIR)/man/openttd.6" "$(INSTALL_MAN_DIR)/${BINARY_NAME}.6" |
164 |
- endif |
165 |
- endif |
166 |
- ifdef MENU_DIR |
167 |
--- |
168 |
-2.21.0 |
169 |
- |
170 |
|
171 |
diff --git a/games-simulation/openttd/metadata.xml b/games-simulation/openttd/metadata.xml |
172 |
index b7a1255795f..cd19f79bf53 100644 |
173 |
--- a/games-simulation/openttd/metadata.xml |
174 |
+++ b/games-simulation/openttd/metadata.xml |
175 |
@@ -7,7 +7,6 @@ |
176 |
</maintainer> |
177 |
<use> |
178 |
<flag name="allegro">Add support for Allegro</flag> |
179 |
- <flag name="aplaymidi">Enables midi music in game, using aplaymidi as an external player</flag> |
180 |
<flag name="fluidsynth">Compile with support for FluidSynth</flag> |
181 |
<flag name="openmedia">Enables the free open media sets: OpenGFX, OpenSFX, OpenMSX, removing the requirement for proprietary TTD assets to play OpenTTD.</flag> |
182 |
<flag name="lzo">Enables LZO compression for savegames. This is only needed to load extremely old savegames. (versions before 0.2)</flag> |
183 |
|
184 |
diff --git a/games-simulation/openttd/openttd-1.10.3.ebuild b/games-simulation/openttd/openttd-1.10.3.ebuild |
185 |
deleted file mode 100644 |
186 |
index 0af63df64cf..00000000000 |
187 |
--- a/games-simulation/openttd/openttd-1.10.3.ebuild |
188 |
+++ /dev/null |
189 |
@@ -1,177 +0,0 @@ |
190 |
-# Copyright 1999-2021 Gentoo Authors |
191 |
-# Distributed under the terms of the GNU General Public License v2 |
192 |
- |
193 |
-EAPI=7 |
194 |
- |
195 |
-inherit toolchain-funcs xdg |
196 |
- |
197 |
-MY_PV="${PV/_rc/-RC}" |
198 |
-MY_P="${PN}-${MY_PV}" |
199 |
- |
200 |
-DESCRIPTION="OpenTTD is a clone of Transport Tycoon Deluxe" |
201 |
-HOMEPAGE="https://www.openttd.org/" |
202 |
-if [[ "${PV}" == *9999 ]] ; then |
203 |
- inherit git-r3 |
204 |
- EGIT_REPO_URI="https://github.com/OpenTTD/OpenTTD.git" |
205 |
-else |
206 |
- SRC_URI="https://proxy.binaries.openttd.org/openttd-releases/${MY_PV}/${MY_P}-source.tar.xz" |
207 |
- KEYWORDS="~amd64 ~ppc64 ~x86" |
208 |
- S="${WORKDIR}/${MY_P}" |
209 |
-fi |
210 |
- |
211 |
-LICENSE="GPL-2" |
212 |
-SLOT="0" |
213 |
-IUSE="aplaymidi debug dedicated iconv icu +lzma lzo +openmedia +png cpu_flags_x86_sse +timidity +truetype zlib" |
214 |
-RESTRICT="test" # needs a graphics set in order to test |
215 |
- |
216 |
-RDEPEND="!dedicated? ( |
217 |
- media-libs/libsdl2[sound,video] |
218 |
- icu? ( |
219 |
- dev-libs/icu-layoutex |
220 |
- dev-libs/icu-le-hb |
221 |
- >=dev-libs/icu-58.1:= |
222 |
- ) |
223 |
- truetype? ( |
224 |
- media-libs/fontconfig |
225 |
- media-libs/freetype:2 |
226 |
- sys-libs/zlib:= |
227 |
- ) |
228 |
- ) |
229 |
- lzma? ( app-arch/xz-utils ) |
230 |
- lzo? ( dev-libs/lzo:2 ) |
231 |
- iconv? ( virtual/libiconv ) |
232 |
- png? ( |
233 |
- media-libs/libpng:0= |
234 |
- sys-libs/zlib:= |
235 |
- ) |
236 |
- zlib? ( sys-libs/zlib:= )" |
237 |
-DEPEND="${RDEPEND}" |
238 |
-BDEPEND=" |
239 |
- virtual/pkgconfig" |
240 |
-PDEPEND=" |
241 |
- !dedicated? ( |
242 |
- openmedia? ( |
243 |
- games-misc/openmsx |
244 |
- games-misc/opensfx |
245 |
- ) |
246 |
- aplaymidi? ( media-sound/alsa-utils ) |
247 |
- !aplaymidi? ( timidity? ( media-sound/timidity++ ) ) |
248 |
- ) |
249 |
- openmedia? ( >=games-misc/opengfx-0.4.7 )" |
250 |
- |
251 |
-PATCHES=( |
252 |
- "${FILESDIR}"/${PN}-1.9.0-cflags.patch |
253 |
- "${FILESDIR}"/${PN}-1.9.0-dont_compress_manpages.patch |
254 |
- "${FILESDIR}"/${P}-icu68.patch |
255 |
-) |
256 |
- |
257 |
-src_configure() { |
258 |
- local myopts=( |
259 |
- --binary-dir="bin" |
260 |
- --disable-strip |
261 |
- --doc-dir="share/doc/${PF}" |
262 |
- --install-dir="${D}" |
263 |
- --menu-group="Game;Simulation;" |
264 |
- --prefix-dir="${EPREFIX}/usr" |
265 |
- $(use_with cpu_flags_x86_sse sse) |
266 |
- $(use_with iconv) |
267 |
- $(use_with lzma) |
268 |
- $(use_with lzo liblzo2) |
269 |
- $(use_with png) |
270 |
- $(usex debug '--enable-debug=3' '') |
271 |
- # there is an allegro interface available as well as sdl, but |
272 |
- # the configure for it looks broken so the sdl interface is |
273 |
- # always built instead. |
274 |
- --without-allegro |
275 |
- |
276 |
- --without-fluidsynth |
277 |
- ) |
278 |
- |
279 |
- if use dedicated ; then |
280 |
- myopts+=( --enable-dedicated ) |
281 |
- else |
282 |
- myopts+=( |
283 |
- $(usex aplaymidi '--with-midi=/usr/bin/aplaymidi' '') |
284 |
- $(use_with truetype freetype) |
285 |
- $(use_with icu) |
286 |
- --with-sdl |
287 |
- ) |
288 |
- fi |
289 |
- if use png || { use !dedicated && use truetype; } || use zlib ; then |
290 |
- myopts+=( --with-zlib ) |
291 |
- else |
292 |
- myopts+=( --without-zlib ) |
293 |
- fi |
294 |
- |
295 |
- # configure is a hand-written bash-script, so econf will not work. |
296 |
- # It's all built as C++, upstream uses CFLAGS internally. |
297 |
- CC=$(tc-getCC) CXX=$(tc-getCXX) CFLAGS="" \ |
298 |
- ./configure ${myopts[@]} || die |
299 |
-} |
300 |
- |
301 |
-src_compile() { |
302 |
- emake VERBOSE=1 |
303 |
-} |
304 |
- |
305 |
-src_install() { |
306 |
- default |
307 |
- if use dedicated ; then |
308 |
- newinitd "${FILESDIR}"/${PN}.initd-r1 ${PN} |
309 |
- rm -rf "${ED}"/usr/share/{applications,icons,pixmaps} || die |
310 |
- fi |
311 |
- rm -f "${ED}"/usr/share/doc/${PF}/COPYING || die |
312 |
-} |
313 |
- |
314 |
-pkg_postinst() { |
315 |
- xdg_pkg_postinst |
316 |
- |
317 |
- if ! use lzo ; then |
318 |
- elog "OpenTTD was built without 'lzo' in USE. While 'lzo' is not" |
319 |
- elog "required, disabling it does mean that loading old savegames" |
320 |
- elog "or scenarios from ancient versions (~0.2) will fail." |
321 |
- elog |
322 |
- fi |
323 |
- |
324 |
- if use dedicated ; then |
325 |
- ewarn "Warning: The init script will kill all running openttd" |
326 |
- ewarn "processes when triggered, including any running client sessions!" |
327 |
- else |
328 |
- if use aplaymidi ; then |
329 |
- elog "You have emerged with 'aplaymidi' for playing MIDI." |
330 |
- elog "This option is for those with a hardware midi device," |
331 |
- elog "or who have set up ALSA to handle midi ports." |
332 |
- elog "You must set the environment variable ALSA_OUTPUT_PORTS." |
333 |
- elog "Available ports can be listed by using 'aplaymidi -l'." |
334 |
- else |
335 |
- if ! use timidity ; then |
336 |
- elog "OpenTTD was built with neither 'aplaymidi' nor 'timidity'" |
337 |
- elog "in USE. Music may or may not work in-game. If you happen" |
338 |
- elog "to have timidity++ installed, music will work so long" |
339 |
- elog "as it remains installed, but OpenTTD will not depend on it." |
340 |
- fi |
341 |
- fi |
342 |
- if ! use openmedia ; then |
343 |
- elog |
344 |
- elog "OpenTTD was compiled without the 'openmedia' USE flag." |
345 |
- elog |
346 |
- elog "In order to play, you must at least install:" |
347 |
- elog "games-misc/opengfx, and games-misc/opensfx, or copy the " |
348 |
- elog "following 6 files from a version of Transport Tycoon Deluxe" |
349 |
- elog "(windows or DOS) to ~/.openttd/data/ or" |
350 |
- elog "/usr/share/${PN}/data/." |
351 |
- elog |
352 |
- elog "From the WINDOWS version you need: " |
353 |
- elog "sample.cat trg1r.grf trgcr.grf trghr.grf trgir.grf trgtr.grf" |
354 |
- elog "OR from the DOS version you need: " |
355 |
- elog "SAMPLE.CAT TRG1.GRF TRGC.GRF TRGH.GRF TRGI.GRF TRGT.GRF" |
356 |
- elog |
357 |
- elog "File names are case sensitive, but should work either with" |
358 |
- elog "all upper or all lower case names" |
359 |
- elog |
360 |
- elog "In addition, in-game music will be unavailable: for music," |
361 |
- elog "install games-misc/openmsx, or use the in-game download" |
362 |
- elog "functionality to get a music set" |
363 |
- elog |
364 |
- fi |
365 |
- fi |
366 |
-} |
367 |
|
368 |
diff --git a/games-simulation/openttd/openttd-9999.ebuild b/games-simulation/openttd/openttd-9999.ebuild |
369 |
deleted file mode 100644 |
370 |
index c685cc3c576..00000000000 |
371 |
--- a/games-simulation/openttd/openttd-9999.ebuild |
372 |
+++ /dev/null |
373 |
@@ -1,176 +0,0 @@ |
374 |
-# Copyright 1999-2021 Gentoo Authors |
375 |
-# Distributed under the terms of the GNU General Public License v2 |
376 |
- |
377 |
-EAPI=7 |
378 |
- |
379 |
-inherit toolchain-funcs xdg |
380 |
- |
381 |
-MY_PV="${PV/_rc/-RC}" |
382 |
-MY_P="${PN}-${MY_PV}" |
383 |
- |
384 |
-DESCRIPTION="OpenTTD is a clone of Transport Tycoon Deluxe" |
385 |
-HOMEPAGE="https://www.openttd.org/" |
386 |
-if [[ "${PV}" == *9999 ]] ; then |
387 |
- inherit git-r3 |
388 |
- EGIT_REPO_URI="https://github.com/OpenTTD/OpenTTD.git" |
389 |
-else |
390 |
- SRC_URI="https://proxy.binaries.openttd.org/openttd-releases/${MY_PV}/${MY_P}-source.tar.xz" |
391 |
- KEYWORDS="~amd64 ~ppc64 ~x86" |
392 |
- S="${WORKDIR}/${MY_P}" |
393 |
-fi |
394 |
- |
395 |
-LICENSE="GPL-2" |
396 |
-SLOT="0" |
397 |
-IUSE="aplaymidi debug dedicated iconv icu +lzma lzo +openmedia +png cpu_flags_x86_sse +timidity +truetype zlib" |
398 |
-RESTRICT="test" # needs a graphics set in order to test |
399 |
- |
400 |
-RDEPEND="!dedicated? ( |
401 |
- media-libs/libsdl2[sound,video] |
402 |
- icu? ( |
403 |
- dev-libs/icu-layoutex |
404 |
- dev-libs/icu-le-hb |
405 |
- >=dev-libs/icu-58.1:= |
406 |
- ) |
407 |
- truetype? ( |
408 |
- media-libs/fontconfig |
409 |
- media-libs/freetype:2 |
410 |
- sys-libs/zlib:= |
411 |
- ) |
412 |
- ) |
413 |
- lzma? ( app-arch/xz-utils ) |
414 |
- lzo? ( dev-libs/lzo:2 ) |
415 |
- iconv? ( virtual/libiconv ) |
416 |
- png? ( |
417 |
- media-libs/libpng:0= |
418 |
- sys-libs/zlib:= |
419 |
- ) |
420 |
- zlib? ( sys-libs/zlib:= )" |
421 |
-DEPEND="${RDEPEND}" |
422 |
-BDEPEND=" |
423 |
- virtual/pkgconfig" |
424 |
-PDEPEND=" |
425 |
- !dedicated? ( |
426 |
- openmedia? ( |
427 |
- games-misc/openmsx |
428 |
- games-misc/opensfx |
429 |
- ) |
430 |
- aplaymidi? ( media-sound/alsa-utils ) |
431 |
- !aplaymidi? ( timidity? ( media-sound/timidity++ ) ) |
432 |
- ) |
433 |
- openmedia? ( >=games-misc/opengfx-0.4.7 )" |
434 |
- |
435 |
-PATCHES=( |
436 |
- "${FILESDIR}"/${PN}-1.9.0-cflags.patch |
437 |
- "${FILESDIR}"/${PN}-1.9.0-dont_compress_manpages.patch |
438 |
-) |
439 |
- |
440 |
-src_configure() { |
441 |
- local myopts=( |
442 |
- --binary-dir="bin" |
443 |
- --disable-strip |
444 |
- --doc-dir="share/doc/${PF}" |
445 |
- --install-dir="${D}" |
446 |
- --menu-group="Game;Simulation;" |
447 |
- --prefix-dir="${EPREFIX}/usr" |
448 |
- $(use_with cpu_flags_x86_sse sse) |
449 |
- $(use_with iconv) |
450 |
- $(use_with lzma) |
451 |
- $(use_with lzo liblzo2) |
452 |
- $(use_with png) |
453 |
- $(usex debug '--enable-debug=3' '') |
454 |
- # there is an allegro interface available as well as sdl, but |
455 |
- # the configure for it looks broken so the sdl interface is |
456 |
- # always built instead. |
457 |
- --without-allegro |
458 |
- |
459 |
- --without-fluidsynth |
460 |
- ) |
461 |
- |
462 |
- if use dedicated ; then |
463 |
- myopts+=( --enable-dedicated ) |
464 |
- else |
465 |
- myopts+=( |
466 |
- $(usex aplaymidi '--with-midi=/usr/bin/aplaymidi' '') |
467 |
- $(use_with truetype freetype) |
468 |
- $(use_with icu) |
469 |
- --with-sdl |
470 |
- ) |
471 |
- fi |
472 |
- if use png || { use !dedicated && use truetype; } || use zlib ; then |
473 |
- myopts+=( --with-zlib ) |
474 |
- else |
475 |
- myopts+=( --without-zlib ) |
476 |
- fi |
477 |
- |
478 |
- # configure is a hand-written bash-script, so econf will not work. |
479 |
- # It's all built as C++, upstream uses CFLAGS internally. |
480 |
- CC=$(tc-getCC) CXX=$(tc-getCXX) CFLAGS="" \ |
481 |
- ./configure ${myopts[@]} || die |
482 |
-} |
483 |
- |
484 |
-src_compile() { |
485 |
- emake VERBOSE=1 |
486 |
-} |
487 |
- |
488 |
-src_install() { |
489 |
- default |
490 |
- if use dedicated ; then |
491 |
- newinitd "${FILESDIR}"/${PN}.initd-r1 ${PN} |
492 |
- rm -rf "${ED}"/usr/share/{applications,icons,pixmaps} || die |
493 |
- fi |
494 |
- rm -f "${ED}"/usr/share/doc/${PF}/COPYING || die |
495 |
-} |
496 |
- |
497 |
-pkg_postinst() { |
498 |
- xdg_pkg_postinst |
499 |
- |
500 |
- if ! use lzo ; then |
501 |
- elog "OpenTTD was built without 'lzo' in USE. While 'lzo' is not" |
502 |
- elog "required, disabling it does mean that loading old savegames" |
503 |
- elog "or scenarios from ancient versions (~0.2) will fail." |
504 |
- elog |
505 |
- fi |
506 |
- |
507 |
- if use dedicated ; then |
508 |
- ewarn "Warning: The init script will kill all running openttd" |
509 |
- ewarn "processes when triggered, including any running client sessions!" |
510 |
- else |
511 |
- if use aplaymidi ; then |
512 |
- elog "You have emerged with 'aplaymidi' for playing MIDI." |
513 |
- elog "This option is for those with a hardware midi device," |
514 |
- elog "or who have set up ALSA to handle midi ports." |
515 |
- elog "You must set the environment variable ALSA_OUTPUT_PORTS." |
516 |
- elog "Available ports can be listed by using 'aplaymidi -l'." |
517 |
- else |
518 |
- if ! use timidity ; then |
519 |
- elog "OpenTTD was built with neither 'aplaymidi' nor 'timidity'" |
520 |
- elog "in USE. Music may or may not work in-game. If you happen" |
521 |
- elog "to have timidity++ installed, music will work so long" |
522 |
- elog "as it remains installed, but OpenTTD will not depend on it." |
523 |
- fi |
524 |
- fi |
525 |
- if ! use openmedia ; then |
526 |
- elog |
527 |
- elog "OpenTTD was compiled without the 'openmedia' USE flag." |
528 |
- elog |
529 |
- elog "In order to play, you must at least install:" |
530 |
- elog "games-misc/opengfx, and games-misc/opensfx, or copy the " |
531 |
- elog "following 6 files from a version of Transport Tycoon Deluxe" |
532 |
- elog "(windows or DOS) to ~/.openttd/data/ or" |
533 |
- elog "/usr/share/${PN}/data/." |
534 |
- elog |
535 |
- elog "From the WINDOWS version you need: " |
536 |
- elog "sample.cat trg1r.grf trgcr.grf trghr.grf trgir.grf trgtr.grf" |
537 |
- elog "OR from the DOS version you need: " |
538 |
- elog "SAMPLE.CAT TRG1.GRF TRGC.GRF TRGH.GRF TRGI.GRF TRGT.GRF" |
539 |
- elog |
540 |
- elog "File names are case sensitive, but should work either with" |
541 |
- elog "all upper or all lower case names" |
542 |
- elog |
543 |
- elog "In addition, in-game music will be unavailable: for music," |
544 |
- elog "install games-misc/openmsx, or use the in-game download" |
545 |
- elog "functionality to get a music set" |
546 |
- elog |
547 |
- fi |
548 |
- fi |
549 |
-} |