1 |
commit: 74e12610ae4c66545f127e400e0a08bd7bc5a0d0 |
2 |
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jul 25 00:43:10 2021 +0000 |
4 |
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jul 25 01:35:09 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=74e12610 |
7 |
|
8 |
media-libs/libsdl: drop vulnerable 1.2.15-r9 |
9 |
|
10 |
Bug: https://bugs.gentoo.org/692388 |
11 |
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> |
12 |
|
13 |
media-libs/libsdl/Manifest | 1 - |
14 |
.../files/libsdl-1.2.15-SDL_EnableUNICODE.patch | 47 ------- |
15 |
.../libsdl/files/libsdl-1.2.15-bsd-joystick.patch | 28 ----- |
16 |
media-libs/libsdl/files/libsdl-1.2.15-caca.patch | 26 ---- |
17 |
.../libsdl/files/libsdl-1.2.15-const-xdata32.patch | 58 --------- |
18 |
.../libsdl/files/libsdl-1.2.15-joystick.patch | 13 -- |
19 |
.../libsdl/files/libsdl-1.2.15-resizing.patch | 60 --------- |
20 |
media-libs/libsdl/libsdl-1.2.15-r9.ebuild | 135 --------------------- |
21 |
8 files changed, 368 deletions(-) |
22 |
|
23 |
diff --git a/media-libs/libsdl/Manifest b/media-libs/libsdl/Manifest |
24 |
index f155eac13db..4024ceafbd4 100644 |
25 |
--- a/media-libs/libsdl/Manifest |
26 |
+++ b/media-libs/libsdl/Manifest |
27 |
@@ -1,2 +1 @@ |
28 |
-DIST SDL-1.2.15.tar.gz 3920622 BLAKE2B ecd4b82d7de6e4ca0de1317ad34bcd957a5a0d319e94c5b705f8b30aa53136ac08c88a6dcd90ad0ac84e607ba9483c2366921c4b25c8c53973cee62cfe97d204 SHA512 ac392d916e6953b0925a7cbb0f232affea33339ef69b47a0a7898492afb9784b93138986df53d6da6d3e2ad79af1e9482df565ecca30f89428be0ae6851b1adc |
29 |
DIST SDL-1.2.15_p20210224.tar.gz 3991106 BLAKE2B be0906950c80cddf15bc458f7734a3ebfa767b11e2f54bf9f771155f4420947900b95bbbebf01341d9dba4c1c7cfe9d54e43150e5f7781622b99668b3362adeb SHA512 3521fe996cf8a8ebb9beaa4802ac05cf5f3a2e7ed1c9b362a818d965b26ec8b3bbebfaac7c827feae44becf5bdd764378cb4282d129285f23a982b5c7474e006 |
30 |
|
31 |
diff --git a/media-libs/libsdl/files/libsdl-1.2.15-SDL_EnableUNICODE.patch b/media-libs/libsdl/files/libsdl-1.2.15-SDL_EnableUNICODE.patch |
32 |
deleted file mode 100644 |
33 |
index bf68b2e44f4..00000000000 |
34 |
--- a/media-libs/libsdl/files/libsdl-1.2.15-SDL_EnableUNICODE.patch |
35 |
+++ /dev/null |
36 |
@@ -1,47 +0,0 @@ |
37 |
- |
38 |
-diff -r 22a7f096bb9d -r 0aade9c0203f src/video/x11/SDL_x11events.c |
39 |
---- a/src/video/x11/SDL_x11events.c Sun Dec 01 00:00:17 2013 -0500 |
40 |
-+++ b/src/video/x11/SDL_x11events.c Thu Apr 17 22:36:14 2014 -0700 |
41 |
-@@ -395,6 +395,8 @@ |
42 |
- { |
43 |
- int posted; |
44 |
- XEvent xevent; |
45 |
-+ int orig_event_type; |
46 |
-+ KeyCode orig_keycode; |
47 |
- |
48 |
- SDL_memset(&xevent, '\0', sizeof (XEvent)); /* valgrind fix. --ryan. */ |
49 |
- XNextEvent(SDL_Display, &xevent); |
50 |
-@@ -410,9 +412,29 @@ |
51 |
- #ifdef X_HAVE_UTF8_STRING |
52 |
- /* If we are translating with IM, we need to pass all events |
53 |
- to XFilterEvent, and discard those filtered events immediately. */ |
54 |
-+ orig_event_type = xevent.type; |
55 |
-+ if (orig_event_type == KeyPress || orig_event_type == KeyRelease) { |
56 |
-+ orig_keycode = xevent.xkey.keycode; |
57 |
-+ } else { |
58 |
-+ orig_keycode = 0; |
59 |
-+ } |
60 |
- if ( SDL_TranslateUNICODE |
61 |
- && SDL_IM != NULL |
62 |
- && XFilterEvent(&xevent, None) ) { |
63 |
-+ if (orig_keycode) { |
64 |
-+ SDL_keysym keysym; |
65 |
-+ static XComposeStatus state; |
66 |
-+ char keybuf[32]; |
67 |
-+ |
68 |
-+ keysym.scancode = xevent.xkey.keycode; |
69 |
-+ keysym.sym = X11_TranslateKeycode(SDL_Display, xevent.xkey.keycode); |
70 |
-+ keysym.mod = KMOD_NONE; |
71 |
-+ keysym.unicode = 0; |
72 |
-+ if (orig_event_type == KeyPress && XLookupString(&xevent.xkey, keybuf, sizeof(keybuf), NULL, &state)) |
73 |
-+ keysym.unicode = (Uint8)keybuf[0]; |
74 |
-+ |
75 |
-+ SDL_PrivateKeyboard(orig_event_type == KeyPress ? SDL_PRESSED : SDL_RELEASED, &keysym); |
76 |
-+ } |
77 |
- return 0; |
78 |
- } |
79 |
- #endif |
80 |
- |
81 |
- |
82 |
- |
83 |
- |
84 |
|
85 |
diff --git a/media-libs/libsdl/files/libsdl-1.2.15-bsd-joystick.patch b/media-libs/libsdl/files/libsdl-1.2.15-bsd-joystick.patch |
86 |
deleted file mode 100644 |
87 |
index 0f3542529ba..00000000000 |
88 |
--- a/media-libs/libsdl/files/libsdl-1.2.15-bsd-joystick.patch |
89 |
+++ /dev/null |
90 |
@@ -1,28 +0,0 @@ |
91 |
- |
92 |
-# HG changeset patch |
93 |
-# User Sam Lantinga <slouken@××××××.org> |
94 |
-# Date 1329357968 18000 |
95 |
-# Node ID 62ff1c0a103f685774450be2e5338824a22078bd |
96 |
-# Parent 8e98c714bb2ab96de4100a335dacf042963d5068 |
97 |
-FreeBSD compile fix |
98 |
- |
99 |
-Robert Millan |
100 |
- |
101 |
-src/joystick/bsd/SDL_sysjoystick.c makes the invalid assumption that |
102 |
-__FreeBSD_kernel__ implies presence of "ucr_data" struct member. This |
103 |
-breaks recent versions of FreeBSD 10-CURRENT, FreeBSD 9-STABLE and |
104 |
-Debian GNU/kFreeBSD "wheezy/sid". |
105 |
- |
106 |
-diff -r 8e98c714bb2a -r 62ff1c0a103f src/joystick/bsd/SDL_sysjoystick.c |
107 |
---- a/src/joystick/bsd/SDL_sysjoystick.c Sat Feb 04 18:12:20 2012 -0500 |
108 |
-+++ b/src/joystick/bsd/SDL_sysjoystick.c Wed Feb 15 21:06:08 2012 -0500 |
109 |
-@@ -148,7 +148,7 @@ |
110 |
- static int report_alloc(struct report *, struct report_desc *, int); |
111 |
- static void report_free(struct report *); |
112 |
- |
113 |
--#if defined(USBHID_UCR_DATA) || defined(__FreeBSD_kernel__) |
114 |
-+#if defined(USBHID_UCR_DATA) |
115 |
- #define REP_BUF_DATA(rep) ((rep)->buf->ucr_data) |
116 |
- #elif (defined(__FREEBSD__) && (__FreeBSD_kernel_version > 800063)) |
117 |
- #define REP_BUF_DATA(rep) ((rep)->buf->ugd_data) |
118 |
- |
119 |
|
120 |
diff --git a/media-libs/libsdl/files/libsdl-1.2.15-caca.patch b/media-libs/libsdl/files/libsdl-1.2.15-caca.patch |
121 |
deleted file mode 100644 |
122 |
index faf5ae132a9..00000000000 |
123 |
--- a/media-libs/libsdl/files/libsdl-1.2.15-caca.patch |
124 |
+++ /dev/null |
125 |
@@ -1,26 +0,0 @@ |
126 |
---- SDL-1.2.15/configure.in |
127 |
-+++ SDL-1.2.15/configure.in |
128 |
-@@ -1507,11 +1507,10 @@ |
129 |
- , enable_video_caca=no) |
130 |
- if test x$enable_video = xyes -a x$enable_video_caca = xyes; then |
131 |
- video_caca=no |
132 |
-- AC_PATH_PROG(CACACONFIG, caca-config, no) |
133 |
-- if test x$CACACONFIG != xno; then |
134 |
-+ PKG_PROG_PKG_CONFIG([0.20]) |
135 |
-+ PKG_CHECK_MODULES(CACA, caca, has_caca_pc=yes, has_caca_pc=no]) |
136 |
-+ if test x$has_caca_pc == xyes; then |
137 |
- AC_MSG_CHECKING(for libcaca support) |
138 |
-- CACA_CFLAGS=`$CACACONFIG --cflags` |
139 |
-- CACA_LDFLAGS=`$CACACONFIG --libs` |
140 |
- save_CFLAGS="$CFLAGS" |
141 |
- AC_TRY_COMPILE([ |
142 |
- #include <caca.h> |
143 |
-@@ -1524,7 +1523,7 @@ |
144 |
- if test x$video_caca = xyes; then |
145 |
- AC_DEFINE(SDL_VIDEO_DRIVER_CACA) |
146 |
- EXTRA_CFLAGS="$EXTRA_CFLAGS $CACA_CFLAGS" |
147 |
-- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $CACA_LDFLAGS" |
148 |
-+ EXTRA_LDFLAGS="$EXTRA_LDFLAGS $CACA_LIBS" |
149 |
- SOURCES="$SOURCES $srcdir/src/video/caca/*.c" |
150 |
- fi |
151 |
- fi |
152 |
|
153 |
diff --git a/media-libs/libsdl/files/libsdl-1.2.15-const-xdata32.patch b/media-libs/libsdl/files/libsdl-1.2.15-const-xdata32.patch |
154 |
deleted file mode 100644 |
155 |
index ffe55348a6c..00000000000 |
156 |
--- a/media-libs/libsdl/files/libsdl-1.2.15-const-xdata32.patch |
157 |
+++ /dev/null |
158 |
@@ -1,58 +0,0 @@ |
159 |
-# HG changeset patch |
160 |
-# User Azamat H. Hackimov <azamat.hackimov@×××××.com> |
161 |
-# Date 1370184533 -21600 |
162 |
-# Branch SDL-1.2 |
163 |
-# Node ID 91ad7b43317a6387e115ecdf63a49137f47e42c8 |
164 |
-# Parent f7fd5c3951b9ed922fdf696f7182e71b58a13268 |
165 |
-Fix compilation with libX11 >= 1.5.99.902. |
166 |
- |
167 |
-These changes fixes bug #1769 for SDL 1.2 |
168 |
-(http://bugzilla.libsdl.org/show_bug.cgi?id=1769). |
169 |
- |
170 |
-diff -r f7fd5c3951b9 -r 91ad7b43317a configure.in |
171 |
---- a/configure.in Wed Apr 17 00:56:53 2013 -0700 |
172 |
-+++ b/configure.in Sun Jun 02 20:48:53 2013 +0600 |
173 |
-@@ -1169,6 +1169,17 @@ |
174 |
- if test x$definitely_enable_video_x11_xrandr = xyes; then |
175 |
- AC_DEFINE(SDL_VIDEO_DRIVER_X11_XRANDR) |
176 |
- fi |
177 |
-+ AC_MSG_CHECKING(for const parameter to _XData32) |
178 |
-+ have_const_param_xdata32=no |
179 |
-+ AC_TRY_COMPILE([ |
180 |
-+ #include <X11/Xlibint.h> |
181 |
-+ extern int _XData32(Display *dpy,register _Xconst long *data,unsigned len); |
182 |
-+ ],[ |
183 |
-+ ],[ |
184 |
-+ have_const_param_xdata32=yes |
185 |
-+ AC_DEFINE(SDL_VIDEO_DRIVER_X11_CONST_PARAM_XDATA32) |
186 |
-+ ]) |
187 |
-+ AC_MSG_RESULT($have_const_param_xdata32) |
188 |
- fi |
189 |
- fi |
190 |
- } |
191 |
-diff -r f7fd5c3951b9 -r 91ad7b43317a include/SDL_config.h.in |
192 |
---- a/include/SDL_config.h.in Wed Apr 17 00:56:53 2013 -0700 |
193 |
-+++ b/include/SDL_config.h.in Sun Jun 02 20:48:53 2013 +0600 |
194 |
-@@ -283,6 +283,7 @@ |
195 |
- #undef SDL_VIDEO_DRIVER_WINDIB |
196 |
- #undef SDL_VIDEO_DRIVER_WSCONS |
197 |
- #undef SDL_VIDEO_DRIVER_X11 |
198 |
-+#undef SDL_VIDEO_DRIVER_X11_CONST_PARAM_XDATA32 |
199 |
- #undef SDL_VIDEO_DRIVER_X11_DGAMOUSE |
200 |
- #undef SDL_VIDEO_DRIVER_X11_DYNAMIC |
201 |
- #undef SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT |
202 |
-diff -r f7fd5c3951b9 -r 91ad7b43317a src/video/x11/SDL_x11sym.h |
203 |
---- a/src/video/x11/SDL_x11sym.h Wed Apr 17 00:56:53 2013 -0700 |
204 |
-+++ b/src/video/x11/SDL_x11sym.h Sun Jun 02 20:48:53 2013 +0600 |
205 |
-@@ -165,7 +165,11 @@ |
206 |
- */ |
207 |
- #ifdef LONG64 |
208 |
- SDL_X11_MODULE(IO_32BIT) |
209 |
-+#if SDL_VIDEO_DRIVER_X11_CONST_PARAM_XDATA32 |
210 |
-+SDL_X11_SYM(int,_XData32,(Display *dpy,register _Xconst long *data,unsigned len),(dpy,data,len),return) |
211 |
-+#else |
212 |
- SDL_X11_SYM(int,_XData32,(Display *dpy,register long *data,unsigned len),(dpy,data,len),return) |
213 |
-+#endif |
214 |
- SDL_X11_SYM(void,_XRead32,(Display *dpy,register long *data,long len),(dpy,data,len),) |
215 |
- #endif |
216 |
- |
217 |
|
218 |
diff --git a/media-libs/libsdl/files/libsdl-1.2.15-joystick.patch b/media-libs/libsdl/files/libsdl-1.2.15-joystick.patch |
219 |
deleted file mode 100644 |
220 |
index 70e585e5013..00000000000 |
221 |
--- a/media-libs/libsdl/files/libsdl-1.2.15-joystick.patch |
222 |
+++ /dev/null |
223 |
@@ -1,13 +0,0 @@ |
224 |
---- src/joystick/linux/SDL_sysjoystick.c.org |
225 |
-+++ src/joystick/linux/SDL_sysjoystick.c |
226 |
-@@ -1106,6 +1106,10 @@ static __inline__ void EV_HandleEvents(S |
227 |
- } |
228 |
- break; |
229 |
- case EV_ABS: |
230 |
-+ if (code >= ABS_MISC) { |
231 |
-+ break; |
232 |
-+ } |
233 |
-+ |
234 |
- switch (code) { |
235 |
- case ABS_HAT0X: |
236 |
- case ABS_HAT0Y: |
237 |
|
238 |
diff --git a/media-libs/libsdl/files/libsdl-1.2.15-resizing.patch b/media-libs/libsdl/files/libsdl-1.2.15-resizing.patch |
239 |
deleted file mode 100644 |
240 |
index 5112137a5a1..00000000000 |
241 |
--- a/media-libs/libsdl/files/libsdl-1.2.15-resizing.patch |
242 |
+++ /dev/null |
243 |
@@ -1,60 +0,0 @@ |
244 |
-Description: Revert change that breaks window corner resizing |
245 |
- http://bugzilla.libsdl.org/show_bug.cgi?id=1430 |
246 |
-Author: Andrew Caudwell <acaudwell@×××××.com> |
247 |
-Last-Update: 2012-04-10 |
248 |
-Bug-Debian: http://bugs.debian.org/665779 |
249 |
- |
250 |
---- a/src/video/x11/SDL_x11events.c |
251 |
-+++ b/src/video/x11/SDL_x11events.c |
252 |
-@@ -57,12 +57,6 @@ |
253 |
- static SDLKey MISC_keymap[256]; |
254 |
- SDLKey X11_TranslateKeycode(Display *display, KeyCode kc); |
255 |
- |
256 |
--/* |
257 |
-- Pending resize target for ConfigureNotify (so outdated events don't |
258 |
-- cause inappropriate resize events) |
259 |
--*/ |
260 |
--int X11_PendingConfigureNotifyWidth = -1; |
261 |
--int X11_PendingConfigureNotifyHeight = -1; |
262 |
- |
263 |
- #ifdef X_HAVE_UTF8_STRING |
264 |
- Uint32 Utf8ToUcs4(const Uint8 *utf8) |
265 |
-@@ -825,16 +819,6 @@ |
266 |
- #ifdef DEBUG_XEVENTS |
267 |
- printf("ConfigureNotify! (resize: %dx%d)\n", xevent.xconfigure.width, xevent.xconfigure.height); |
268 |
- #endif |
269 |
-- if ((X11_PendingConfigureNotifyWidth != -1) && |
270 |
-- (X11_PendingConfigureNotifyHeight != -1)) { |
271 |
-- if ((xevent.xconfigure.width != X11_PendingConfigureNotifyWidth) && |
272 |
-- (xevent.xconfigure.height != X11_PendingConfigureNotifyHeight)) { |
273 |
-- /* Event is from before the resize, so ignore. */ |
274 |
-- break; |
275 |
-- } |
276 |
-- X11_PendingConfigureNotifyWidth = -1; |
277 |
-- X11_PendingConfigureNotifyHeight = -1; |
278 |
-- } |
279 |
- if ( SDL_VideoSurface ) { |
280 |
- if ((xevent.xconfigure.width != SDL_VideoSurface->w) || |
281 |
- (xevent.xconfigure.height != SDL_VideoSurface->h)) { |
282 |
---- a/src/video/x11/SDL_x11events_c.h |
283 |
-+++ b/src/video/x11/SDL_x11events_c.h |
284 |
-@@ -27,8 +27,3 @@ |
285 |
- extern void X11_InitOSKeymap(_THIS); |
286 |
- extern void X11_PumpEvents(_THIS); |
287 |
- extern void X11_SetKeyboardState(Display *display, const char *key_vec); |
288 |
-- |
289 |
--/* Variables to be exported */ |
290 |
--extern int X11_PendingConfigureNotifyWidth; |
291 |
--extern int X11_PendingConfigureNotifyHeight; |
292 |
-- |
293 |
---- a/src/video/x11/SDL_x11video.c |
294 |
-+++ b/src/video/x11/SDL_x11video.c |
295 |
-@@ -1182,8 +1182,6 @@ |
296 |
- current = NULL; |
297 |
- goto done; |
298 |
- } |
299 |
-- X11_PendingConfigureNotifyWidth = width; |
300 |
-- X11_PendingConfigureNotifyHeight = height; |
301 |
- } else { |
302 |
- if (X11_CreateWindow(this,current,width,height,bpp,flags) < 0) { |
303 |
- current = NULL; |
304 |
|
305 |
diff --git a/media-libs/libsdl/libsdl-1.2.15-r9.ebuild b/media-libs/libsdl/libsdl-1.2.15-r9.ebuild |
306 |
deleted file mode 100644 |
307 |
index 4ec34594ed5..00000000000 |
308 |
--- a/media-libs/libsdl/libsdl-1.2.15-r9.ebuild |
309 |
+++ /dev/null |
310 |
@@ -1,135 +0,0 @@ |
311 |
-# Copyright 1999-2021 Gentoo Authors |
312 |
-# Distributed under the terms of the GNU General Public License v2 |
313 |
- |
314 |
-EAPI=5 |
315 |
- |
316 |
-inherit autotools flag-o-matic multilib toolchain-funcs epatch multilib-minimal |
317 |
- |
318 |
-DESCRIPTION="Simple Direct Media Layer" |
319 |
-HOMEPAGE="https://libsdl.org/" |
320 |
-SRC_URI="https://libsdl.org/release/SDL-${PV}.tar.gz" |
321 |
- |
322 |
-LICENSE="LGPL-2.1" |
323 |
-SLOT="0" |
324 |
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 sparc x86 ~amd64-linux ~x86-linux" |
325 |
-# WARNING: |
326 |
-# If you turn on the custom-cflags use flag in USE and something breaks, |
327 |
-# you pick up the pieces. Be prepared for bug reports to be marked INVALID. |
328 |
-IUSE="oss alsa nas X dga xv xinerama fbcon tslib aalib opengl libcaca +sound +video +joystick custom-cflags pulseaudio static-libs" |
329 |
- |
330 |
-RDEPEND=" |
331 |
- sound? ( >=media-libs/audiofile-0.3.5[${MULTILIB_USEDEP}] ) |
332 |
- alsa? ( >=media-libs/alsa-lib-1.0.27.2[${MULTILIB_USEDEP}] ) |
333 |
- nas? ( |
334 |
- >=media-libs/nas-1.9.4[${MULTILIB_USEDEP}] |
335 |
- >=x11-libs/libXt-1.1.4[${MULTILIB_USEDEP}] |
336 |
- >=x11-libs/libXext-1.3.2[${MULTILIB_USEDEP}] |
337 |
- >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}] |
338 |
- ) |
339 |
- X? ( |
340 |
- >=x11-libs/libXext-1.3.2[${MULTILIB_USEDEP}] |
341 |
- >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}] |
342 |
- >=x11-libs/libXrandr-1.4.2[${MULTILIB_USEDEP}] |
343 |
- ) |
344 |
- aalib? ( >=media-libs/aalib-1.4_rc5-r6[${MULTILIB_USEDEP}] ) |
345 |
- libcaca? ( >=media-libs/libcaca-0.99_beta18-r1[${MULTILIB_USEDEP}] ) |
346 |
- opengl? ( |
347 |
- >=virtual/opengl-7.0-r1[${MULTILIB_USEDEP}] |
348 |
- >=virtual/glu-9.0-r1[${MULTILIB_USEDEP}] |
349 |
- ) |
350 |
- tslib? ( >=x11-libs/tslib-1.0-r3[${MULTILIB_USEDEP}] ) |
351 |
- pulseaudio? ( >=media-sound/pulseaudio-2.1-r1[${MULTILIB_USEDEP}] )" |
352 |
-DEPEND="${RDEPEND} |
353 |
- nas? ( x11-base/xorg-proto ) |
354 |
- X? ( x11-base/xorg-proto ) |
355 |
- x86? ( || ( >=dev-lang/yasm-0.6.0 >=dev-lang/nasm-0.98.39-r3 ) )" |
356 |
- |
357 |
-S=${WORKDIR}/SDL-${PV} |
358 |
- |
359 |
-pkg_setup() { |
360 |
- if use custom-cflags ; then |
361 |
- ewarn "Since you've chosen to use possibly unsafe CFLAGS," |
362 |
- ewarn "don't bother filing libsdl-related bugs until trying to remerge" |
363 |
- ewarn "libsdl without the custom-cflags use flag in USE." |
364 |
- fi |
365 |
-} |
366 |
- |
367 |
-src_prepare() { |
368 |
- epatch \ |
369 |
- "${FILESDIR}"/${P}-sdl-config.patch \ |
370 |
- "${FILESDIR}"/${P}-resizing.patch \ |
371 |
- "${FILESDIR}"/${P}-joystick.patch \ |
372 |
- "${FILESDIR}"/${P}-bsd-joystick.patch \ |
373 |
- "${FILESDIR}"/${P}-gamma.patch \ |
374 |
- "${FILESDIR}"/${P}-const-xdata32.patch \ |
375 |
- "${FILESDIR}"/${P}-caca.patch \ |
376 |
- "${FILESDIR}"/${P}-SDL_EnableUNICODE.patch |
377 |
- AT_M4DIR="${EPREFIX}/usr/share/aclocal acinclude" eautoreconf |
378 |
-} |
379 |
- |
380 |
-multilib_src_configure() { |
381 |
- local myconf= |
382 |
- if use !x86 && use !x86-linux ; then |
383 |
- myconf="${myconf} --disable-nasm" |
384 |
- else |
385 |
- myconf="${myconf} --enable-nasm" |
386 |
- fi |
387 |
- use custom-cflags || strip-flags |
388 |
- use sound || myconf="${myconf} --disable-audio" |
389 |
- use video \ |
390 |
- && myconf="${myconf} --enable-video-dummy" \ |
391 |
- || myconf="${myconf} --disable-video" |
392 |
- use joystick || myconf="${myconf} --disable-joystick" |
393 |
- |
394 |
- ECONF_SOURCE="${S}" econf \ |
395 |
- $(use_enable prefix rpath) \ |
396 |
- --disable-arts \ |
397 |
- --disable-esd \ |
398 |
- --enable-events \ |
399 |
- --enable-cdrom \ |
400 |
- --enable-threads \ |
401 |
- --enable-timers \ |
402 |
- --enable-file \ |
403 |
- --enable-cpuinfo \ |
404 |
- --disable-alsa-shared \ |
405 |
- --disable-esd-shared \ |
406 |
- --disable-pulseaudio-shared \ |
407 |
- --disable-arts-shared \ |
408 |
- --disable-nas-shared \ |
409 |
- --disable-osmesa-shared \ |
410 |
- $(use_enable oss) \ |
411 |
- $(use_enable alsa) \ |
412 |
- $(use_enable pulseaudio) \ |
413 |
- $(use_enable nas) \ |
414 |
- $(use_enable X video-x11) \ |
415 |
- $(use_enable dga) \ |
416 |
- $(use_enable xv video-x11-xv) \ |
417 |
- $(use_enable xinerama video-x11-xinerama) \ |
418 |
- $(use_enable X video-x11-xrandr) \ |
419 |
- $(use_enable dga video-dga) \ |
420 |
- $(use_enable fbcon video-fbcon) \ |
421 |
- --disable-video-ggi \ |
422 |
- --disable-video-svga \ |
423 |
- $(use_enable aalib video-aalib) \ |
424 |
- $(use_enable libcaca video-caca) \ |
425 |
- $(use_enable opengl video-opengl) \ |
426 |
- --disable-video-ps3 \ |
427 |
- $(use_enable tslib input-tslib) \ |
428 |
- $(use_with X x) \ |
429 |
- $(use_enable static-libs static) \ |
430 |
- --disable-video-x11-xme \ |
431 |
- --disable-video-directfb \ |
432 |
- ${myconf} |
433 |
-} |
434 |
- |
435 |
-multilib_src_install() { |
436 |
- emake DESTDIR="${D}" install |
437 |
-} |
438 |
- |
439 |
-multilib_src_install_all() { |
440 |
- if ! use static-libs; then |
441 |
- find "${ED}" -name '*.la' -delete || die |
442 |
- fi |
443 |
- dodoc BUGS CREDITS README README-SDL.txt README.HG TODO WhatsNew |
444 |
- dohtml -r ./ |
445 |
-} |