1 |
commit: ce8b1e2ed84bd7e70e9027d68e68b96ddfffd41d |
2 |
Author: Azamat H. Hackimov <azamat.hackimov <AT> gmail <DOT> com> |
3 |
AuthorDate: Tue Mar 5 18:13:55 2013 +0000 |
4 |
Commit: Azamat H. Hackimov <winterheart <AT> gentoo <DOT> ru> |
5 |
CommitDate: Tue Mar 5 18:13:55 2013 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gamerlay.git;a=commit;h=ce8b1e2e |
7 |
|
8 |
[media-libs/libsdl] Bump to 6963 revision, remove old obsolete 1.2.14 and buggy 9999-r2, |
9 |
metadata cleanup. |
10 |
|
11 |
Package-Manager: portage-2.1.11.52 |
12 |
Manifest-Sign-Key: A018DE8C |
13 |
|
14 |
--- |
15 |
media-libs/libsdl/ChangeLog | 10 + |
16 |
.../libsdl/files/libsdl-1.2.13-sdl-config.patch | 20 -- |
17 |
media-libs/libsdl/files/libsdl-1.2.14-click.patch | 23 --- |
18 |
.../files/libsdl-1.2.14-disappearingcursor.diff | 19 -- |
19 |
media-libs/libsdl/libsdl-1.2.14-r3.ebuild | 155 ---------------- |
20 |
media-libs/libsdl/libsdl-2.0.0_pre6799.ebuild | 12 +- |
21 |
..._pre6799.ebuild => libsdl-2.0.0_pre6963.ebuild} | 12 +- |
22 |
media-libs/libsdl/libsdl-9999-r2.ebuild | 187 -------------------- |
23 |
media-libs/libsdl/metadata.xml | 12 +- |
24 |
9 files changed, 24 insertions(+), 426 deletions(-) |
25 |
|
26 |
diff --git a/media-libs/libsdl/ChangeLog b/media-libs/libsdl/ChangeLog |
27 |
index 74bf865..60b8f6a 100644 |
28 |
--- a/media-libs/libsdl/ChangeLog |
29 |
+++ b/media-libs/libsdl/ChangeLog |
30 |
@@ -2,6 +2,16 @@ |
31 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
32 |
# $Header: $ |
33 |
|
34 |
+*libsdl-2.0.0_pre6963 (05 Mar 2013) |
35 |
+ |
36 |
+ 05 Mar 2013; Azamat H. Hackimov <azamat.hackimov@×××××.com> |
37 |
+ +libsdl-2.0.0_pre6963.ebuild, -Manifest, |
38 |
+ -files/libsdl-1.2.13-sdl-config.patch, -files/libsdl-1.2.14-click.patch, |
39 |
+ -files/libsdl-1.2.14-disappearingcursor.diff, -libsdl-1.2.14-r3.ebuild, |
40 |
+ -libsdl-9999-r2.ebuild, libsdl-2.0.0_pre6799.ebuild, metadata.xml: |
41 |
+ [media-libs/libsdl] Bump to 6963 revision, remove old obsolete 1.2.14 and |
42 |
+ buggy 9999-r2, metadata cleanup. |
43 |
+ |
44 |
07 Jan 2013; Sergey Popov <pinkbyte@g.o> libsdl-2.0.0_pre6799.ebuild: |
45 |
Use versionator eclass for getting revision |
46 |
|
47 |
|
48 |
diff --git a/media-libs/libsdl/files/libsdl-1.2.13-sdl-config.patch b/media-libs/libsdl/files/libsdl-1.2.13-sdl-config.patch |
49 |
deleted file mode 100644 |
50 |
index f430428..0000000 |
51 |
--- a/media-libs/libsdl/files/libsdl-1.2.13-sdl-config.patch |
52 |
+++ /dev/null |
53 |
@@ -1,20 +0,0 @@ |
54 |
-Only output -L -rpath cruft if using a non-standard install location. |
55 |
- |
56 |
-Makes ABI / cross-compiling easier on the soul. |
57 |
- |
58 |
---- sdl-config.in |
59 |
-+++ sdl-config.in |
60 |
-@@ -44,7 +44,12 @@ |
61 |
- echo -I@includedir@/SDL @SDL_CFLAGS@ |
62 |
- ;; |
63 |
- @ENABLE_SHARED_TRUE@ --libs) |
64 |
--@ENABLE_SHARED_TRUE@ echo -L@libdir@ @SDL_RLD_FLAGS@ @SDL_LIBS@ |
65 |
-+@ENABLE_SHARED_TRUE@ if test x"${prefix}" != x"/usr" ; then |
66 |
-+@ENABLE_SHARED_TRUE@ libdirs="-L@libdir@" |
67 |
-+@ENABLE_SHARED_TRUE@ else |
68 |
-+@ENABLE_SHARED_TRUE@ libdirs="" |
69 |
-+@ENABLE_SHARED_TRUE@ fi |
70 |
-+@ENABLE_SHARED_TRUE@ echo $libdirs @SDL_RLD_FLAGS@ @SDL_LIBS@ |
71 |
- @ENABLE_SHARED_TRUE@ ;; |
72 |
- @ENABLE_STATIC_TRUE@@ENABLE_SHARED_TRUE@ --static-libs) |
73 |
- @ENABLE_STATIC_TRUE@@ENABLE_SHARED_FALSE@ --libs|--static-libs) |
74 |
|
75 |
diff --git a/media-libs/libsdl/files/libsdl-1.2.14-click.patch b/media-libs/libsdl/files/libsdl-1.2.14-click.patch |
76 |
deleted file mode 100644 |
77 |
index 7d3e5ac..0000000 |
78 |
--- a/media-libs/libsdl/files/libsdl-1.2.14-click.patch |
79 |
+++ /dev/null |
80 |
@@ -1,23 +0,0 @@ |
81 |
---- SDL-1.2.14/src/video/x11/SDL_x11events.c.orig 2010-04-08 11:57:05.003169834 -0700 |
82 |
-+++ SDL-1.2.14/src/video/x11/SDL_x11events.c 2010-04-08 12:33:51.690926340 -0700 |
83 |
-@@ -423,12 +423,15 @@ |
84 |
- if ( xevent.xcrossing.mode == NotifyUngrab ) |
85 |
- printf("Mode: NotifyUngrab\n"); |
86 |
- #endif |
87 |
-- if ( this->input_grab == SDL_GRAB_OFF ) { |
88 |
-- posted = SDL_PrivateAppActive(1, SDL_APPMOUSEFOCUS); |
89 |
-+ if ( (xevent.xcrossing.mode != NotifyGrab) && |
90 |
-+ (xevent.xcrossing.mode != NotifyUngrab) ) { |
91 |
-+ if ( this->input_grab == SDL_GRAB_OFF ) { |
92 |
-+ posted = SDL_PrivateAppActive(1, SDL_APPMOUSEFOCUS); |
93 |
-+ } |
94 |
-+ posted = SDL_PrivateMouseMotion(0, 0, |
95 |
-+ xevent.xcrossing.x, |
96 |
-+ xevent.xcrossing.y); |
97 |
- } |
98 |
-- posted = SDL_PrivateMouseMotion(0, 0, |
99 |
-- xevent.xcrossing.x, |
100 |
-- xevent.xcrossing.y); |
101 |
- } |
102 |
- break; |
103 |
- |
104 |
|
105 |
diff --git a/media-libs/libsdl/files/libsdl-1.2.14-disappearingcursor.diff b/media-libs/libsdl/files/libsdl-1.2.14-disappearingcursor.diff |
106 |
deleted file mode 100644 |
107 |
index bb637b9..0000000 |
108 |
--- a/media-libs/libsdl/files/libsdl-1.2.14-disappearingcursor.diff |
109 |
+++ /dev/null |
110 |
@@ -1,19 +0,0 @@ |
111 |
-This was retrieved from the debian patch tracker, and fixes an issue caused by the clicks patch, |
112 |
-which we seem to have also gotten from debian. |
113 |
-Index: SDL-1.2.14/src/video/x11/SDL_x11events.c |
114 |
-=================================================================== |
115 |
---- SDL-1.2.14.orig/src/video/x11/SDL_x11events.c 2010-04-30 09:16:35.000000000 -0400 |
116 |
-+++ SDL-1.2.14/src/video/x11/SDL_x11events.c 2010-04-30 09:16:35.000000000 -0400 |
117 |
-@@ -444,8 +444,10 @@ |
118 |
- if ( xevent.xcrossing.mode == NotifyUngrab ) |
119 |
- printf("Mode: NotifyUngrab\n"); |
120 |
- #endif |
121 |
-- if ( xevent.xcrossing.detail != NotifyInferior ) { |
122 |
-- if ( this->input_grab == SDL_GRAB_OFF ) { |
123 |
-+ if ( (xevent.xcrossing.mode != NotifyGrab) && |
124 |
-+ (xevent.xcrossing.mode != NotifyUngrab) && |
125 |
-+ (xevent.xcrossing.detail != NotifyInferior) ) { |
126 |
-+ if ( this->input_grab == SDL_GRAB_OFF ) { |
127 |
- posted = SDL_PrivateAppActive(0, SDL_APPMOUSEFOCUS); |
128 |
- } else { |
129 |
- posted = SDL_PrivateMouseMotion(0, 0, |
130 |
|
131 |
diff --git a/media-libs/libsdl/libsdl-1.2.14-r3.ebuild b/media-libs/libsdl/libsdl-1.2.14-r3.ebuild |
132 |
deleted file mode 100644 |
133 |
index 174dcb9..0000000 |
134 |
--- a/media-libs/libsdl/libsdl-1.2.14-r3.ebuild |
135 |
+++ /dev/null |
136 |
@@ -1,155 +0,0 @@ |
137 |
-# Copyright 1999-2010 Gentoo Foundation |
138 |
-# Distributed under the terms of the GNU General Public License v2 |
139 |
-# $Header: /var/cvsroot/gentoo-x86/media-libs/libsdl/libsdl-1.2.14-r2.ebuild,v 1.1 2010/04/08 20:25:47 mr_bones_ Exp $ |
140 |
- |
141 |
-EAPI=2 |
142 |
-inherit flag-o-matic multilib toolchain-funcs eutils libtool |
143 |
- |
144 |
-DESCRIPTION="Simple Direct Media Layer" |
145 |
-HOMEPAGE="http://www.libsdl.org/" |
146 |
-SRC_URI="http://www.libsdl.org/release/SDL-${PV}.tar.gz" |
147 |
- |
148 |
-LICENSE="LGPL-2.1" |
149 |
-SLOT="0" |
150 |
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd" |
151 |
-# WARNING: |
152 |
-# if you disable the audio, video, joystick use flags or turn on the custom-cflags use flag |
153 |
-# in USE and something breaks, you pick up the pieces. Be prepared for |
154 |
-# bug reports to be marked INVALID. |
155 |
-IUSE="oss alsa nas X dga xv xinerama fbcon directfb ggi svga tslib aalib opengl libcaca +audio +video +joystick custom-cflags pulseaudio ps3 static-libs" |
156 |
- |
157 |
-RDEPEND="audio? ( >=media-libs/audiofile-0.1.9 ) |
158 |
- alsa? ( media-libs/alsa-lib ) |
159 |
- nas? ( |
160 |
- media-libs/nas |
161 |
- x11-libs/libXt |
162 |
- x11-libs/libXext |
163 |
- x11-libs/libX11 |
164 |
- ) |
165 |
- X? ( |
166 |
- x11-libs/libXt |
167 |
- x11-libs/libXext |
168 |
- x11-libs/libX11 |
169 |
- x11-libs/libXrandr |
170 |
- ) |
171 |
- directfb? ( >=dev-libs/DirectFB-0.9.19 ) |
172 |
- ggi? ( >=media-libs/libggi-2.0_beta3 ) |
173 |
- svga? ( >=media-libs/svgalib-1.4.2 ) |
174 |
- aalib? ( media-libs/aalib ) |
175 |
- libcaca? ( >=media-libs/libcaca-0.9-r1 ) |
176 |
- opengl? ( virtual/opengl virtual/glu ) |
177 |
- ppc64? ( ps3? ( sys-libs/libspe2 ) ) |
178 |
- tslib? ( x11-libs/tslib ) |
179 |
- pulseaudio? ( media-sound/pulseaudio )" |
180 |
-DEPEND="${RDEPEND} |
181 |
- nas? ( |
182 |
- x11-proto/xextproto |
183 |
- x11-proto/xproto |
184 |
- ) |
185 |
- X? ( |
186 |
- x11-proto/xextproto |
187 |
- x11-proto/xproto |
188 |
- ) |
189 |
- x86? ( || ( >=dev-lang/yasm-0.6.0 >=dev-lang/nasm-0.98.39-r3 ) )" |
190 |
- |
191 |
-S=${WORKDIR}/SDL-${PV} |
192 |
- |
193 |
-pkg_setup() { |
194 |
- if use !audio || use !video || use !joystick ; then |
195 |
- ewarn "Since you've chosen to turn off some of libsdl's functionality," |
196 |
- ewarn "don't bother filing libsdl-related bugs until trying to remerge" |
197 |
- ewarn "libsdl with the audio, video, and joystick flags in USE." |
198 |
- ewarn "You need to know what you're doing to selectively turn off parts of libsdl." |
199 |
- epause 30 |
200 |
- fi |
201 |
- if use custom-cflags ; then |
202 |
- ewarn "Since you've chosen to use possibly unsafe CFLAGS," |
203 |
- ewarn "don't bother filing libsdl-related bugs until trying to remerge" |
204 |
- ewarn "libsdl without the custom-cflags use flag in USE." |
205 |
- epause 10 |
206 |
- fi |
207 |
-} |
208 |
- |
209 |
-src_prepare() { |
210 |
- epatch \ |
211 |
- "${FILESDIR}"/${PN}-1.2.13-sdl-config.patch \ |
212 |
- "${FILESDIR}"/${P}-click.patch \ |
213 |
- "${FILESDIR}"/${P}-disappearingcursor.diff |
214 |
- |
215 |
- elibtoolize |
216 |
-} |
217 |
- |
218 |
-src_configure() { |
219 |
- local myconf= |
220 |
- if [[ $(tc-arch) != "x86" ]] ; then |
221 |
- myconf="${myconf} --disable-nasm" |
222 |
- else |
223 |
- myconf="${myconf} --enable-nasm" |
224 |
- fi |
225 |
- use custom-cflags || strip-flags |
226 |
- use audio || myconf="${myconf} --disable-audio" |
227 |
- use video \ |
228 |
- && myconf="${myconf} --enable-video-dummy" \ |
229 |
- || myconf="${myconf} --disable-video" |
230 |
- use joystick || myconf="${myconf} --disable-joystick" |
231 |
- |
232 |
- local directfbconf="--disable-video-directfb" |
233 |
- if use directfb ; then |
234 |
- # since DirectFB can link against SDL and trigger a |
235 |
- # dependency loop, only link against DirectFB if it |
236 |
- # isn't broken #61592 |
237 |
- echo 'int main(){}' > directfb-test.c |
238 |
- $(tc-getCC) directfb-test.c -ldirectfb 2>/dev/null \ |
239 |
- && directfbconf="--enable-video-directfb" \ |
240 |
- || ewarn "Disabling DirectFB since libdirectfb.so is broken" |
241 |
- fi |
242 |
- |
243 |
- myconf="${myconf} ${directfbconf}" |
244 |
- |
245 |
- econf \ |
246 |
- --disable-rpath \ |
247 |
- --disable-arts \ |
248 |
- --disable-esd \ |
249 |
- --enable-events \ |
250 |
- --enable-cdrom \ |
251 |
- --enable-threads \ |
252 |
- --enable-timers \ |
253 |
- --enable-file \ |
254 |
- --enable-cpuinfo \ |
255 |
- --disable-alsa-shared \ |
256 |
- --disable-esd-shared \ |
257 |
- --disable-pulseaudio-shared \ |
258 |
- --disable-arts-shared \ |
259 |
- --disable-nas-shared \ |
260 |
- --disable-x11-shared \ |
261 |
- --disable-osmesa-shared \ |
262 |
- $(use_enable oss) \ |
263 |
- $(use_enable alsa) \ |
264 |
- $(use_enable pulseaudio) \ |
265 |
- $(use_enable nas) \ |
266 |
- $(use_enable X video-x11) \ |
267 |
- $(use_enable dga) \ |
268 |
- $(use_enable xv video-x11-xv) \ |
269 |
- $(use_enable xinerama video-x11-xinerama) \ |
270 |
- $(use_enable X video-x11-xrandr) \ |
271 |
- $(use_enable dga video-dga) \ |
272 |
- $(use_enable fbcon video-fbcon) \ |
273 |
- $(use_enable ggi video-ggi) \ |
274 |
- $(use_enable svga video-svga) \ |
275 |
- $(use_enable aalib video-aalib) \ |
276 |
- $(use_enable libcaca video-caca) \ |
277 |
- $(use_enable opengl video-opengl) \ |
278 |
- $(use_enable ps3 video-ps3) \ |
279 |
- $(use_enable tslib input-tslib) \ |
280 |
- $(use_with X x) \ |
281 |
- $(use_enable static-libs static) \ |
282 |
- --disable-video-x11-xme \ |
283 |
- ${myconf} |
284 |
-} |
285 |
- |
286 |
-src_install() { |
287 |
- emake DESTDIR="${D}" install || die "emake install failed" |
288 |
- use static-libs || rm -f "${D}"/usr/$(get_libdir)/lib*.la |
289 |
- dodoc BUGS CREDITS README README-SDL.txt README.CVS TODO WhatsNew |
290 |
- dohtml -r ./ |
291 |
-} |
292 |
|
293 |
diff --git a/media-libs/libsdl/libsdl-2.0.0_pre6799.ebuild b/media-libs/libsdl/libsdl-2.0.0_pre6799.ebuild |
294 |
index fcae24b..0ec7027 100644 |
295 |
--- a/media-libs/libsdl/libsdl-2.0.0_pre6799.ebuild |
296 |
+++ b/media-libs/libsdl/libsdl-2.0.0_pre6799.ebuild |
297 |
@@ -17,7 +17,7 @@ EHG_REVISION="${REV/pre/}" |
298 |
LICENSE="ZLIB" |
299 |
SLOT="2" |
300 |
KEYWORDS="~amd64 ~x86" |
301 |
-IUSE="3dnow alsa altivec +asm aqua fusionsound gles mmx nas opengl oss pulseaudio sse sse2 static-libs +threads tslib +video X +xcursor +xinput xinerama xscreensaver xrandr xvidmode" |
302 |
+IUSE="3dnow alsa altivec +asm aqua fusionsound gles mmx nas opengl oss pulseaudio sse sse2 static-libs +threads tslib +video X xinerama xscreensaver" |
303 |
|
304 |
#FIXME: Replace "gles" deps with "virtual/opengles", after hitting Portage. |
305 |
RDEPEND=" |
306 |
@@ -95,12 +95,12 @@ src_configure() { |
307 |
$(cmake-utils_use tslib INPUT_TSLIB) |
308 |
$(cmake-utils_use video VIDEO_DUMMY) |
309 |
$(cmake-utils_use X VIDEO_X11) |
310 |
- $(cmake-utils_use xcursor VIDEO_X11_XCURSOR) |
311 |
- $(cmake-utils_use xinerama VIDEO_X11_XINERAMA) |
312 |
- $(cmake-utils_use xinput VIDEO_X11_XINPUT) |
313 |
- $(cmake-utils_use xrandr VIDEO_X11_XRANDR) |
314 |
+ $(cmake-utils_use X VIDEO_X11_XCURSOR) |
315 |
+ $(cmake-utils_use X VIDEO_X11_XINERAMA) |
316 |
+ $(cmake-utils_use X VIDEO_X11_XINPUT) |
317 |
+ $(cmake-utils_use X VIDEO_X11_XRANDR) |
318 |
$(cmake-utils_use xscreensaver VIDEO_X11_XSCRNSAVER) |
319 |
- $(cmake-utils_use xvidmode VIDEO_X11_XVM) |
320 |
+ $(cmake-utils_use X VIDEO_X11_XVM) |
321 |
#$(cmake-utils_use joystick SDL_JOYSTICK) |
322 |
) |
323 |
cmake-utils_src_configure |
324 |
|
325 |
diff --git a/media-libs/libsdl/libsdl-2.0.0_pre6799.ebuild b/media-libs/libsdl/libsdl-2.0.0_pre6963.ebuild |
326 |
similarity index 88% |
327 |
copy from media-libs/libsdl/libsdl-2.0.0_pre6799.ebuild |
328 |
copy to media-libs/libsdl/libsdl-2.0.0_pre6963.ebuild |
329 |
index fcae24b..0ec7027 100644 |
330 |
--- a/media-libs/libsdl/libsdl-2.0.0_pre6799.ebuild |
331 |
+++ b/media-libs/libsdl/libsdl-2.0.0_pre6963.ebuild |
332 |
@@ -17,7 +17,7 @@ EHG_REVISION="${REV/pre/}" |
333 |
LICENSE="ZLIB" |
334 |
SLOT="2" |
335 |
KEYWORDS="~amd64 ~x86" |
336 |
-IUSE="3dnow alsa altivec +asm aqua fusionsound gles mmx nas opengl oss pulseaudio sse sse2 static-libs +threads tslib +video X +xcursor +xinput xinerama xscreensaver xrandr xvidmode" |
337 |
+IUSE="3dnow alsa altivec +asm aqua fusionsound gles mmx nas opengl oss pulseaudio sse sse2 static-libs +threads tslib +video X xinerama xscreensaver" |
338 |
|
339 |
#FIXME: Replace "gles" deps with "virtual/opengles", after hitting Portage. |
340 |
RDEPEND=" |
341 |
@@ -95,12 +95,12 @@ src_configure() { |
342 |
$(cmake-utils_use tslib INPUT_TSLIB) |
343 |
$(cmake-utils_use video VIDEO_DUMMY) |
344 |
$(cmake-utils_use X VIDEO_X11) |
345 |
- $(cmake-utils_use xcursor VIDEO_X11_XCURSOR) |
346 |
- $(cmake-utils_use xinerama VIDEO_X11_XINERAMA) |
347 |
- $(cmake-utils_use xinput VIDEO_X11_XINPUT) |
348 |
- $(cmake-utils_use xrandr VIDEO_X11_XRANDR) |
349 |
+ $(cmake-utils_use X VIDEO_X11_XCURSOR) |
350 |
+ $(cmake-utils_use X VIDEO_X11_XINERAMA) |
351 |
+ $(cmake-utils_use X VIDEO_X11_XINPUT) |
352 |
+ $(cmake-utils_use X VIDEO_X11_XRANDR) |
353 |
$(cmake-utils_use xscreensaver VIDEO_X11_XSCRNSAVER) |
354 |
- $(cmake-utils_use xvidmode VIDEO_X11_XVM) |
355 |
+ $(cmake-utils_use X VIDEO_X11_XVM) |
356 |
#$(cmake-utils_use joystick SDL_JOYSTICK) |
357 |
) |
358 |
cmake-utils_src_configure |
359 |
|
360 |
diff --git a/media-libs/libsdl/libsdl-9999-r2.ebuild b/media-libs/libsdl/libsdl-9999-r2.ebuild |
361 |
deleted file mode 100644 |
362 |
index da4ea64..0000000 |
363 |
--- a/media-libs/libsdl/libsdl-9999-r2.ebuild |
364 |
+++ /dev/null |
365 |
@@ -1,187 +0,0 @@ |
366 |
-# Copyright 1999-2012 Gentoo Foundation |
367 |
-# Distributed under the terms of the GNU General Public License v2 |
368 |
-# $Header: $ |
369 |
-EAPI=5 |
370 |
- |
371 |
-# Enable Bash strictness. |
372 |
-set -e |
373 |
- |
374 |
-# SDL 2.0 officially distributes both autotools- and CMake-based builds. Due to |
375 |
-# all the usual autotools problems, the former essentially doesn't work. The |
376 |
-# latter, however, does. CMake it is! |
377 |
-inherit cmake-utils eutils flag-o-matic mercurial multilib toolchain-funcs |
378 |
- |
379 |
-DESCRIPTION="Simple Direct Media Layer" |
380 |
-HOMEPAGE="http://www.libsdl.org" |
381 |
-EHG_REPO_URI="http://hg.libsdl.org/SDL" |
382 |
- |
383 |
-LICENSE="ZLIB" |
384 |
-SLOT="2" |
385 |
-KEYWORDS="" |
386 |
- |
387 |
-#FIXME: Add "test". |
388 |
-# SDL 1.2 ebuilds prohibited unsafe CFLAGS unless "custom-flags" was enabled. |
389 |
-# This appears to have been overly judicious, as the query "How does one build |
390 |
-# an optimized SDL library?" at |
391 |
-# http://osdl.sourceforge.net/main/documentation/rendering/SDL-optimizing.html |
392 |
-# suggests. SDL supports at least a modicum of extreme optimization. If users |
393 |
-# enable unsafe CFLAGS, SDL breaking is the least of their concerns. |
394 |
-IUSE=" |
395 |
-+audio feedback joystick +threads static-libs +video |
396 |
-3dnow altivec mmx sse sse2 |
397 |
-alsa fusionsound nas oss pulseaudio |
398 |
-X xcursor xinerama xinput xrandr xscreensaver xvidmode |
399 |
-aqua directfb gles opengl tslib |
400 |
-" |
401 |
-REQUIRED_USE=" |
402 |
- feedback? ( joystick ) |
403 |
- alsa? ( audio ) |
404 |
- fusionsound? ( audio ) |
405 |
- nas? ( audio ) |
406 |
- oss? ( audio ) |
407 |
- pulseaudio? ( audio ) |
408 |
- aqua? ( video ) |
409 |
- directfb? ( video ) |
410 |
- gles? ( video ) |
411 |
- opengl? ( video ) |
412 |
- tslib? ( video ) |
413 |
- X? ( video ) |
414 |
- xcursor? ( X ) |
415 |
- xinerama? ( X ) |
416 |
- xinput? ( X ) |
417 |
- xrandr? ( X ) |
418 |
- xscreensaver? ( X ) |
419 |
- xvidmode? ( X ) |
420 |
-" |
421 |
- |
422 |
-#FIXME: Replace "gles" deps with "virtual/opengles", after hitting Portage. |
423 |
-RDEPEND=" |
424 |
- nas? ( |
425 |
- media-libs/nas |
426 |
- x11-libs/libX11 |
427 |
- x11-libs/libXext |
428 |
- x11-libs/libXt |
429 |
- ) |
430 |
- X? ( |
431 |
- x11-libs/libX11 |
432 |
- x11-libs/libXext |
433 |
- x11-libs/libXt |
434 |
- x11-libs/libXrender |
435 |
- ) |
436 |
- xcursor? ( x11-libs/libXcursor ) |
437 |
- xinerama? ( x11-libs/libXinerama ) |
438 |
- xinput? ( x11-libs/libXi ) |
439 |
- xrandr? ( x11-libs/libXrandr ) |
440 |
- xvidmode? ( x11-libs/libXxf86vm ) |
441 |
- xscreensaver? ( x11-libs/libXScrnSaver ) |
442 |
- alsa? ( media-libs/alsa-lib ) |
443 |
- fusionsound? ( >=media-libs/FusionSound-1.1.1 ) |
444 |
- pulseaudio? ( >=media-sound/pulseaudio-0.9 ) |
445 |
- directfb? ( >=dev-libs/DirectFB-1.0.0 ) |
446 |
- gles? ( || ( media-libs/mesa[gles2] media-libs/mesa[gles] ) ) |
447 |
- opengl? ( virtual/opengl ) |
448 |
- tslib? ( x11-libs/tslib ) |
449 |
-" |
450 |
-DEPEND="${RDEPEND} |
451 |
- nas? ( |
452 |
- x11-proto/xextproto |
453 |
- x11-proto/xproto |
454 |
- ) |
455 |
- X? ( |
456 |
- x11-proto/xextproto |
457 |
- x11-proto/xproto |
458 |
- x11-proto/renderproto |
459 |
- ) |
460 |
- xinerama? ( x11-proto/xineramaproto ) |
461 |
- xinput? ( x11-proto/inputproto ) |
462 |
- xrandr? ( x11-proto/randrproto ) |
463 |
- xrandr? ( x11-proto/randrproto ) |
464 |
- xvidmode? ( x11-proto/xf86vidmodeproto ) |
465 |
- xscreensaver? ( x11-proto/scrnsaverproto ) |
466 |
-" |
467 |
- |
468 |
-CMAKE_MIN_VERSION=2.6 # ...if "CMakeLists.txt" is to be believed. |
469 |
- |
470 |
-src_unpack() { |
471 |
- [[ -d "${EHG_STORE_DIR}/${PN}" ]] || |
472 |
- einfo 'Cloning may take up to several minutes on slow connections.' |
473 |
- mercurial_src_unpack |
474 |
-} |
475 |
- |
476 |
-#FIXME: SDL2's current "CMakeLists.txt" file leaks LDFLAGS into pkg-config |
477 |
-#files, as confirmed by a QA notice. The offending CMake line appears to be: |
478 |
-# |
479 |
-# target_link_libraries(SDL2 ${EXTRA_LIBS} ${EXTRA_LDFLAGS}) |
480 |
-# |
481 |
-#Since target_link_libraries() is a core CMake function, it's unclear whether |
482 |
-#we can patch around this on our end. I'm surprised I haven't seen similar |
483 |
-#complaints from other CMake-dependent ebuilds, and thus suspect the issue *IS* |
484 |
-#our fault. Somehow, anyway... |
485 |
-src_prepare() { |
486 |
- epatch "${FILESDIR}/${PV}-sdl2-config.in.patch" |
487 |
-} |
488 |
- |
489 |
-src_configure() { |
490 |
- # DirectFB can link against SDL, triggering a dependency loop. Link against |
491 |
- # DirectFB only if it isn't currently being installed. (See issue #61592.) |
492 |
- local use_directfb="-DVIDEO_DIRECTFB=ON" |
493 |
- if use directfb; then |
494 |
- echo 'int main(){}' > directfb-test.c |
495 |
- $(tc-getCC) directfb-test.c -ldirectfb 2>/dev/null \ |
496 |
- && use_directfb="-DVIDEO_DIRECTFB=OFF" \ |
497 |
- || ewarn "Disabling DirectFB, since \"libdirectfb.so\" is broken." |
498 |
- rm directfb-test.c |
499 |
- fi |
500 |
- |
501 |
- # Required by cmake-utils_src_configure(). |
502 |
- mycmakeargs=( |
503 |
- # Disable assertion tests. |
504 |
- -DASSERTIONS=disabled |
505 |
- # Avoid hard-coding RPATH entries into dynamically linked SDL libraries. |
506 |
- -DRPATH=NO |
507 |
- # Disable obsolete and/or inapplicable libraries. |
508 |
- -DARTS=NO |
509 |
- -DESD=NO |
510 |
- ${use_directfb} |
511 |
- $(cmake-utils_use static-libs SDL_STATIC) |
512 |
- $(cmake-utils_use audio SDL_AUDIO) |
513 |
- $(cmake-utils_use feedback SDL_HAPTIC) |
514 |
- $(cmake-utils_use joystick SDL_JOYSTICK) |
515 |
- $(cmake-utils_use video SDL_VIDEO) |
516 |
- $(cmake-utils_use threads SDL_THREADS) |
517 |
- $(cmake-utils_use threads PTHREADS) |
518 |
- $(cmake-utils_use threads PTHREADS_SEM) |
519 |
- $(cmake-utils_use 3dnow) |
520 |
- $(cmake-utils_use altivec) |
521 |
- $(cmake-utils_use mmx) |
522 |
- $(cmake-utils_use sse) |
523 |
- $(cmake-utils_use sse SSEMATH) |
524 |
- $(cmake-utils_use sse2) |
525 |
- $(cmake-utils_use alsa) |
526 |
- $(cmake-utils_use fusionsound) |
527 |
- $(cmake-utils_use nas) |
528 |
- $(cmake-utils_use oss) |
529 |
- $(cmake-utils_use pulseaudio) |
530 |
- $(cmake-utils_use tslib INPUT_TSLIB) |
531 |
- $(cmake-utils_use X VIDEO_X11) |
532 |
- $(cmake-utils_use xcursor VIDEO_X11_XCURSOR) |
533 |
- $(cmake-utils_use xinerama VIDEO_X11_XINERAMA) |
534 |
- $(cmake-utils_use xinput VIDEO_X11_XINPUT) |
535 |
- $(cmake-utils_use xrandr VIDEO_X11_XRANDR) |
536 |
- $(cmake-utils_use xscreensaver VIDEO_X11_XSCRNSAVER) |
537 |
- $(cmake-utils_use xvidmode VIDEO_X11_XVM) |
538 |
- $(cmake-utils_use aqua VIDEO_COCOA) |
539 |
- $(cmake-utils_use gles VIDEO_OPENGLES) |
540 |
- $(cmake-utils_use opengl VIDEO_OPENGL) |
541 |
- ) |
542 |
- |
543 |
- cmake-utils_src_configure |
544 |
-} |
545 |
- |
546 |
-src_install() { |
547 |
- # cmake-utils_src_install() installs all docs, except... |
548 |
- cmake-utils_src_install |
549 |
- for docfile in README* TODO BUGS CREDITS WhatsNew; do |
550 |
- dodoc "${docfile}" |
551 |
- done |
552 |
-} |
553 |
|
554 |
diff --git a/media-libs/libsdl/metadata.xml b/media-libs/libsdl/metadata.xml |
555 |
index 18a5a9c..6a3aa9f 100644 |
556 |
--- a/media-libs/libsdl/metadata.xml |
557 |
+++ b/media-libs/libsdl/metadata.xml |
558 |
@@ -2,8 +2,8 @@ |
559 |
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
560 |
<pkgmetadata> |
561 |
<maintainer> |
562 |
- <email>leycec@×××××.com</email> |
563 |
- <name>leycec</name> |
564 |
+ <email>azamat.hackimov@×××××.com</email> |
565 |
+ <name>Azamat H. Hackimov</name> |
566 |
</maintainer> |
567 |
<longdescription> |
568 |
Simple DirectMedia Layer is a cross-platform multimedia library designed |
569 |
@@ -28,18 +28,10 @@ Pike, Pliant, Python, Ruby, Smalltalk, and Tcl. |
570 |
</upstream> |
571 |
<use> |
572 |
<!--flag name="directx">Adds support for Windows DirectX audio and video</flag--> |
573 |
- <flag name="audio">Support video devices (strongly recommended!)</flag> |
574 |
<flag name="asm">Enable assembly for optimization (3dnow, mmx, sse, sse2)</flag> |
575 |
- <flag name="feedback">Support tactile feedback (e.g., vibration) devices</flag> |
576 |
<flag name="fusionsound">Enable FusionSound audio support</flag> |
577 |
<flag name="gles">Enable OpenGL ES video support</flag> |
578 |
- <flag name="joystick">Support joystick devices</flag> |
579 |
- <flag name="ps3">Build the PS3 video driver</flag> |
580 |
<flag name="tslib">Enable tslib-based touchscreen device support</flag> |
581 |
<flag name="video">Control video support (disable at your own risk)</flag> |
582 |
- <flag name="xcursor">Enable Xcursor-based cursor theme support</flag> |
583 |
- <flag name="xinput">Enable xinput-based touchscreen and multiple input device support (recommended)</flag> |
584 |
- <flag name="xrandr">Enable XRandR-based resolution switching (recommended)</flag> |
585 |
- <flag name="xvidmode">Enable XVidMode-based resolution switching (not recommended)</flag> |
586 |
</use> |
587 |
</pkgmetadata> |