1 |
commit: f7daebb36ddf1612cea0cf0f1d6141c9bc01fb56 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Nov 5 07:05:29 2019 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Nov 5 07:09:30 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f7daebb3 |
7 |
|
8 |
games-engines/scummvm: Bump to version 2.1.0 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/699334 |
11 |
Package-Manager: Portage-2.3.78, Repoman-2.3.17 |
12 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
13 |
|
14 |
games-engines/scummvm/Manifest | 1 + |
15 |
.../files/scummvm-2.1.0-tts_pthread_link.patch | 22 +++++ |
16 |
games-engines/scummvm/metadata.xml | 1 + |
17 |
games-engines/scummvm/scummvm-2.1.0.ebuild | 109 +++++++++++++++++++++ |
18 |
4 files changed, 133 insertions(+) |
19 |
|
20 |
diff --git a/games-engines/scummvm/Manifest b/games-engines/scummvm/Manifest |
21 |
index e3b863b3406..eafca9329bc 100644 |
22 |
--- a/games-engines/scummvm/Manifest |
23 |
+++ b/games-engines/scummvm/Manifest |
24 |
@@ -1 +1,2 @@ |
25 |
DIST scummvm-2.0.0.tar.xz 21291656 BLAKE2B 303aa4254d1c940ce6d65d192f2678a033015f1b85e38c62902aa8fac05a1ff33fd7e3fe9de47825cd0cf72076027adb21c72a63a38349f9ee8f63566f3db948 SHA512 5f4c11145c5dfcc7ae95d5c0e5ac9e938912cc5060b9d5fdfcb699a745755b31412e44199e487ad388ca5e091afc3366f874610adb44d440f336e26d6cd4812c |
26 |
+DIST scummvm-2.1.0.tar.xz 27188916 BLAKE2B b808ff335e5b25c58c8caebfe660b4c2938dcb6eada0aa5b31777b97ff2fb7cb3732d516fc4d981ab1bee16876d62f634f69517158c7c233e11cc22575b15c09 SHA512 9a03cf207660aa49e49f53e1df10b774b7c9711dffd527e00518015e7e7057f25538a7dd89e248e9237434cf08a9f7ea6b215805fb65a770fb20596f5e713218 |
27 |
|
28 |
diff --git a/games-engines/scummvm/files/scummvm-2.1.0-tts_pthread_link.patch b/games-engines/scummvm/files/scummvm-2.1.0-tts_pthread_link.patch |
29 |
new file mode 100644 |
30 |
index 00000000000..70440be0e13 |
31 |
--- /dev/null |
32 |
+++ b/games-engines/scummvm/files/scummvm-2.1.0-tts_pthread_link.patch |
33 |
@@ -0,0 +1,22 @@ |
34 |
+From 26c09be3a091e47419ba2629c5f2a346ad6a5543 Mon Sep 17 00:00:00 2001 |
35 |
+From: Christian Krause <chkr@××××××××.de> |
36 |
+Date: Wed, 16 Oct 2019 22:41:27 +0200 |
37 |
+Subject: [PATCH] TTS: Link libpthread explicitly on Linux platform |
38 |
+ |
39 |
+--- |
40 |
+ configure | 2 +- |
41 |
+ 1 file changed, 1 insertion(+), 1 deletion(-) |
42 |
+ |
43 |
+diff --git a/configure b/configure |
44 |
+index 0adf0bb7bad..dbfe336e6d0 100755 |
45 |
+--- a/configure |
46 |
++++ b/configure |
47 |
+@@ -5504,7 +5504,7 @@ else |
48 |
+ echo "linux" |
49 |
+ _tts=yes |
50 |
+ define_in_config_if_yes $_tts 'USE_SPEECH_DISPATCHER' |
51 |
+- append_var LIBS '-lspeechd' |
52 |
++ append_var LIBS '-lspeechd -lpthread' |
53 |
+ ;; |
54 |
+ mingw*) |
55 |
+ echo "win32" |
56 |
|
57 |
diff --git a/games-engines/scummvm/metadata.xml b/games-engines/scummvm/metadata.xml |
58 |
index 3f7ace82af0..e71c4a5e17b 100644 |
59 |
--- a/games-engines/scummvm/metadata.xml |
60 |
+++ b/games-engines/scummvm/metadata.xml |
61 |
@@ -8,6 +8,7 @@ |
62 |
<use> |
63 |
<flag name="fluidsynth">compile with support for fluidsynth</flag> |
64 |
<flag name="mpeg2">enable mpeg2 codec for cutscenes</flag> |
65 |
+ <flag name="speech">enable text-to-speech support through <pkg>app-accessibility/speech-dispatcher</pkg></flag> |
66 |
<flag name="unsupported">enable unsupported and/or broken game engines (you're on your own)</flag> |
67 |
</use> |
68 |
<upstream> |
69 |
|
70 |
diff --git a/games-engines/scummvm/scummvm-2.1.0.ebuild b/games-engines/scummvm/scummvm-2.1.0.ebuild |
71 |
new file mode 100644 |
72 |
index 00000000000..f278a9a5471 |
73 |
--- /dev/null |
74 |
+++ b/games-engines/scummvm/scummvm-2.1.0.ebuild |
75 |
@@ -0,0 +1,109 @@ |
76 |
+# Copyright 1999-2019 Gentoo Authors |
77 |
+# Distributed under the terms of the GNU General Public License v2 |
78 |
+ |
79 |
+EAPI=7 |
80 |
+inherit desktop flag-o-matic toolchain-funcs xdg |
81 |
+ |
82 |
+DESCRIPTION="Reimplementation of the SCUMM game engine used in Lucasarts adventures" |
83 |
+HOMEPAGE="https://www.scummvm.org/" |
84 |
+SRC_URI="https://scummvm.org/frs/scummvm/${PV}/${P}.tar.xz" |
85 |
+ |
86 |
+LICENSE="GPL-2+ LGPL-2.1 BSD GPL-3-with-font-exception" |
87 |
+SLOT="0" |
88 |
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" |
89 |
+IUSE="a52 aac alsa debug flac fluidsynth jpeg lua mpeg2 mp3 opengl png speech theora truetype unsupported vorbis zlib" |
90 |
+RESTRICT="test" # it only looks like there's a test there #77507 |
91 |
+ |
92 |
+RDEPEND=" |
93 |
+ >=media-libs/libsdl2-2.0.0[sound,joystick,video] |
94 |
+ media-libs/sdl2-net |
95 |
+ a52? ( media-libs/a52dec ) |
96 |
+ aac? ( media-libs/faad2 ) |
97 |
+ alsa? ( media-libs/alsa-lib ) |
98 |
+ flac? ( media-libs/flac ) |
99 |
+ fluidsynth? ( media-sound/fluidsynth ) |
100 |
+ jpeg? ( virtual/jpeg:0 ) |
101 |
+ mp3? ( media-libs/libmad ) |
102 |
+ mpeg2? ( media-libs/libmpeg2 ) |
103 |
+ opengl? ( virtual/opengl ) |
104 |
+ png? ( media-libs/libpng:0 ) |
105 |
+ speech? ( app-accessibility/speech-dispatcher ) |
106 |
+ truetype? ( media-libs/freetype:2 ) |
107 |
+ theora? ( media-libs/libtheora ) |
108 |
+ vorbis? ( |
109 |
+ media-libs/libogg |
110 |
+ media-libs/libvorbis |
111 |
+ ) |
112 |
+ zlib? ( sys-libs/zlib:= ) |
113 |
+" |
114 |
+DEPEND="${RDEPEND}" |
115 |
+BDEPEND=" |
116 |
+ app-arch/xz-utils |
117 |
+ truetype? ( virtual/pkgconfig ) |
118 |
+ x86? ( dev-lang/nasm ) |
119 |
+" |
120 |
+ |
121 |
+S="${WORKDIR}/${P/_/}" |
122 |
+ |
123 |
+PATCHES=( |
124 |
+ "${FILESDIR}/${P}-tts_pthread_link.patch" |
125 |
+) |
126 |
+ |
127 |
+src_prepare() { |
128 |
+ xdg_src_prepare |
129 |
+ |
130 |
+ # -g isn't needed for nasm here |
131 |
+ sed -i \ |
132 |
+ -e '/NASMFLAGS/ s/-g//' \ |
133 |
+ configure || die |
134 |
+ sed -i \ |
135 |
+ -e '/INSTALL.*doc/d' \ |
136 |
+ -e '/INSTALL.*\/pixmaps/d' \ |
137 |
+ -e 's/-s //' \ |
138 |
+ ports.mk || die |
139 |
+} |
140 |
+ |
141 |
+src_configure() { |
142 |
+ use x86 && append-ldflags -Wl,-z,noexecstack |
143 |
+ |
144 |
+ local myconf=( |
145 |
+ --backend=sdl |
146 |
+ --host=${CHOST} |
147 |
+ --enable-verbose-build |
148 |
+ --prefix="${EPREFIX}/usr" |
149 |
+ --libdir="${EPREFIX}/usr/$(get_libdir)" |
150 |
+ --opengl-mode=$(usex opengl auto none) |
151 |
+ $(use_enable a52) |
152 |
+ $(use_enable aac faad) |
153 |
+ $(use_enable alsa) |
154 |
+ $(use_enable debug) |
155 |
+ $(use_enable !debug release-mode) |
156 |
+ $(use_enable flac) |
157 |
+ $(usex fluidsynth '' --disable-fluidsynth) |
158 |
+ $(use_enable jpeg) |
159 |
+ $(use_enable lua) |
160 |
+ $(use_enable mp3 mad) |
161 |
+ $(use_enable mpeg2) |
162 |
+ $(use_enable png) |
163 |
+ $(use_enable speech tts) |
164 |
+ $(use_enable theora theoradec) |
165 |
+ $(use_enable truetype freetype2) |
166 |
+ $(usex unsupported --enable-all-engines '') |
167 |
+ $(use_enable vorbis) |
168 |
+ $(use_enable zlib) |
169 |
+ $(use_enable x86 nasm) |
170 |
+ ) |
171 |
+ echo "configure ${myconf[@]}" |
172 |
+ # NOT AN AUTOCONF SCRIPT SO DONT CALL ECONF |
173 |
+ SDL_CONFIG="sdl2-config" \ |
174 |
+ ./configure "${myconf[@]}" "${EXTRA_ECONF}" || die |
175 |
+} |
176 |
+ |
177 |
+src_compile() { |
178 |
+ emake AR="$(tc-getAR) cru" RANLIB="$(tc-getRANLIB)" |
179 |
+} |
180 |
+ |
181 |
+src_install() { |
182 |
+ default |
183 |
+ doicon -s scalable icons/scummvm.svg |
184 |
+} |