1 |
hasufell 13/08/28 21:36:52 |
2 |
|
3 |
Added: libsdl2-2.0.0.ebuild ChangeLog metadata.xml |
4 |
Manifest |
5 |
Log: |
6 |
initial import wrt #480826 |
7 |
|
8 |
(Portage version: 2.2.1/cvs/Linux x86_64, signed Manifest commit with key E73C35B3) |
9 |
|
10 |
Revision Changes Path |
11 |
1.1 media-libs/libsdl2/libsdl2-2.0.0.ebuild |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/libsdl2/libsdl2-2.0.0.ebuild?rev=1.1&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/libsdl2/libsdl2-2.0.0.ebuild?rev=1.1&content-type=text/plain |
15 |
|
16 |
Index: libsdl2-2.0.0.ebuild |
17 |
=================================================================== |
18 |
# Copyright 1999-2013 Gentoo Foundation |
19 |
# Distributed under the terms of the GNU General Public License v2 |
20 |
# $Header: /var/cvsroot/gentoo-x86/media-libs/libsdl2/libsdl2-2.0.0.ebuild,v 1.1 2013/08/28 21:36:52 hasufell Exp $ |
21 |
|
22 |
EAPI=5 |
23 |
inherit autotools flag-o-matic toolchain-funcs eutils |
24 |
|
25 |
MY_P=SDL2-${PV} |
26 |
DESCRIPTION="Simple Direct Media Layer" |
27 |
HOMEPAGE="http://www.libsdl.org" |
28 |
SRC_URI="http://www.libsdl.org/release/${MY_P}.tar.gz" |
29 |
|
30 |
LICENSE="ZLIB" |
31 |
SLOT="0" |
32 |
KEYWORDS="~amd64 ~x86" |
33 |
|
34 |
IUSE="3dnow alsa altivec +audio dbus directfb fusionsound gles haptic +joystick mmx nas opengl oss pulseaudio sse sse2 static-libs tslib udev +video X xinerama xscreensaver" |
35 |
REQUIRED_USE=" |
36 |
alsa? ( audio ) |
37 |
fusionsound? ( audio ) |
38 |
gles? ( video ) |
39 |
nas? ( audio ) |
40 |
opengl? ( video ) |
41 |
pulseaudio? ( audio ) |
42 |
xinerama? ( X ) |
43 |
xscreensaver? ( X )" |
44 |
|
45 |
RDEPEND=" |
46 |
alsa? ( media-libs/alsa-lib ) |
47 |
dbus? ( sys-apps/dbus ) |
48 |
directfb? ( >=dev-libs/DirectFB-1.0.0 ) |
49 |
fusionsound? ( >=media-libs/FusionSound-1.1.1 ) |
50 |
gles? ( media-libs/mesa[gles2] ) |
51 |
nas? ( media-libs/nas ) |
52 |
opengl? ( virtual/opengl virtual/glu ) |
53 |
pulseaudio? ( media-sound/pulseaudio ) |
54 |
tslib? ( x11-libs/tslib ) |
55 |
udev? ( virtual/udev ) |
56 |
X? ( |
57 |
x11-libs/libX11 |
58 |
x11-libs/libXcursor |
59 |
x11-libs/libXext |
60 |
x11-libs/libXi |
61 |
x11-libs/libXrandr |
62 |
x11-libs/libXt |
63 |
x11-libs/libXxf86vm |
64 |
xinerama? ( x11-libs/libXinerama ) |
65 |
xscreensaver? ( x11-libs/libXScrnSaver ) |
66 |
)" |
67 |
DEPEND="${RDEPEND} |
68 |
X? ( |
69 |
x11-proto/xextproto |
70 |
x11-proto/xproto |
71 |
) |
72 |
virtual/pkgconfig" |
73 |
|
74 |
S=${WORKDIR}/${MY_P} |
75 |
|
76 |
src_prepare() { |
77 |
# https://bugzilla.libsdl.org/show_bug.cgi?id=1431 |
78 |
epatch "${FILESDIR}"/${P}-static-libs.patch |
79 |
AT_M4DIR="/usr/share/aclocal acinclude" eautoreconf |
80 |
} |
81 |
|
82 |
src_configure() { |
83 |
local directfbconf="--disable-video-directfb" |
84 |
if use directfb ; then |
85 |
# since DirectFB can link against SDL and trigger a |
86 |
# dependency loop, only link against DirectFB if it |
87 |
# isn't broken #61592 |
88 |
echo 'int main(){}' > directfb-test.c |
89 |
$(tc-getCC) directfb-test.c -ldirectfb 2>/dev/null \ |
90 |
&& directfbconf="--enable-video-directfb" \ |
91 |
|| ewarn "Disabling DirectFB since libdirectfb.so is broken" |
92 |
fi |
93 |
|
94 |
# sorted by `./configure --help` |
95 |
# |
96 |
# --disable-threads broken |
97 |
# https://bugzilla.libsdl.org/show_bug.cgi?id=2070 |
98 |
econf \ |
99 |
$(use_enable static-libs static) \ |
100 |
$(use_enable audio) \ |
101 |
$(use_enable video) \ |
102 |
--enable-render \ |
103 |
--enable-events \ |
104 |
$(use_enable joystick) \ |
105 |
$(use_enable haptic) \ |
106 |
--enable-power \ |
107 |
--enable-threads \ |
108 |
--enable-timers \ |
109 |
--enable-file \ |
110 |
--disable-loadso \ |
111 |
--enable-cpuinfo \ |
112 |
--enable-atomic \ |
113 |
--enable-assembly \ |
114 |
$(use_enable sse ssemath) \ |
115 |
$(use_enable mmx) \ |
116 |
$(use_enable 3dnow) \ |
117 |
$(use_enable sse) \ |
118 |
$(use_enable sse2) \ |
119 |
$(use_enable altivec) \ |
120 |
$(use_enable oss) \ |
121 |
$(use_enable alsa) \ |
122 |
--disable-alsa-shared \ |
123 |
--disable-esd \ |
124 |
$(use_enable pulseaudio) \ |
125 |
--disable-pulseaudio-shared \ |
126 |
--disable-arts \ |
127 |
$(use_enable nas) \ |
128 |
--disable-nas-shared \ |
129 |
--disable-sndio \ |
130 |
--disable-sndio-shared \ |
131 |
$(use_enable audio diskaudio) \ |
132 |
$(use_enable audio dummyaudio) \ |
133 |
$(use_enable X video-x11) \ |
134 |
--disable-x11-shared \ |
135 |
$(use_enable X video-x11-xcursor) \ |
136 |
$(use_enable xinerama video-x11-xinerama) \ |
137 |
$(use_enable X video-x11-xinput) \ |
138 |
$(use_enable X video-x11-xrandr) \ |
139 |
$(use_enable xscreensaver video-x11-scrnsaver) \ |
140 |
$(use_enable X video-x11-xshape) \ |
141 |
$(use_enable X video-x11-vm) \ |
142 |
--disable-video-cocoa \ |
143 |
${directfbconf} \ |
144 |
--disable-directfb-shared \ |
145 |
$(use_enable fusionsound) \ |
146 |
--disable-fusionsound-shared \ |
147 |
$(use_enable video video-dummy) \ |
148 |
$(use_enable opengl video-opengl) \ |
149 |
$(use_enable gles video-opengles) \ |
150 |
$(use_enable udev libudev) \ |
151 |
$(use_enable dbus) \ |
152 |
$(use_enable tslib input-tslib) \ |
153 |
--disable-directx \ |
154 |
--disable-rpath \ |
155 |
--disable-render-d3d \ |
156 |
$(use_with X x) |
157 |
} |
158 |
|
159 |
src_install() { |
160 |
emake DESTDIR="${D}" install |
161 |
use static-libs || prune_libtool_files |
162 |
dodoc {BUGS,CREDITS,README,README-SDL,README-hg,TODO,WhatsNew}.txt |
163 |
} |
164 |
|
165 |
|
166 |
|
167 |
1.1 media-libs/libsdl2/ChangeLog |
168 |
|
169 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/libsdl2/ChangeLog?rev=1.1&view=markup |
170 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/libsdl2/ChangeLog?rev=1.1&content-type=text/plain |
171 |
|
172 |
Index: ChangeLog |
173 |
=================================================================== |
174 |
# ChangeLog for media-libs/libsdl2 |
175 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
176 |
# $Header: /var/cvsroot/gentoo-x86/media-libs/libsdl2/ChangeLog,v 1.1 2013/08/28 21:36:52 hasufell Exp $ |
177 |
|
178 |
*libsdl2-2.0.0 (28 Aug 2013) |
179 |
|
180 |
28 Aug 2013; Julian Ospald <hasufell@g.o> +libsdl2-2.0.0.ebuild, |
181 |
+files/libsdl2-2.0.0-static-libs.patch, +metadata.xml: |
182 |
initial import wrt #480826 |
183 |
|
184 |
|
185 |
|
186 |
|
187 |
1.1 media-libs/libsdl2/metadata.xml |
188 |
|
189 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/libsdl2/metadata.xml?rev=1.1&view=markup |
190 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/libsdl2/metadata.xml?rev=1.1&content-type=text/plain |
191 |
|
192 |
Index: metadata.xml |
193 |
=================================================================== |
194 |
<?xml version="1.0" encoding="UTF-8"?> |
195 |
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
196 |
<pkgmetadata> |
197 |
<herd>games</herd> |
198 |
<longdescription> |
199 |
Simple DirectMedia Layer is a cross-platform multimedia library |
200 |
designed to provide low level access to audio, keyboard, mouse, |
201 |
joystick, 3D hardware via OpenGL, and 2D video framebuffer. It is |
202 |
used by MPEG playback software, emulators, and many popular games, |
203 |
including the award winning Linux port of "Civilization: Call To |
204 |
Power." |
205 |
|
206 |
Simple DirectMedia Layer supports Linux, Windows, BeOS, MacOS |
207 |
Classic, MacOS X, FreeBSD, OpenBSD, BSD/OS, Solaris, IRIX, and QNX. |
208 |
There is also code, but no official support, for Windows CE, |
209 |
AmigaOS, Dreamcast, Atari, NetBSD, AIX, OSF/Tru64, RISC OS, and |
210 |
SymbianOS. |
211 |
|
212 |
SDL is written in C, but works with C++ natively, and has bindings |
213 |
to several other languages, including Ada, Eiffel, Java, Lua, ML, |
214 |
Perl, PHP, Pike, Python, and Ruby. |
215 |
</longdescription> |
216 |
<use> |
217 |
<flag name="audio">Control audio support (disable at your own risk) |
218 |
</flag> |
219 |
<flag name="fusionsound">use FusionSound audio driver</flag> |
220 |
<flag name="gles">include OpenGL ES support</flag> |
221 |
<flag name="haptic">Enable the haptic (force feedback) subsystem |
222 |
</flag> |
223 |
<flag name="joystick">Control joystick support |
224 |
(disable at your own risk)</flag> |
225 |
<flag name="tslib">Build with tslib support for touchscreen devices |
226 |
</flag> |
227 |
<flag name="video">Control video support (disable at your own risk) |
228 |
</flag> |
229 |
</use> |
230 |
</pkgmetadata> |
231 |
|
232 |
|
233 |
|
234 |
1.1 media-libs/libsdl2/Manifest |
235 |
|
236 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/libsdl2/Manifest?rev=1.1&view=markup |
237 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/libsdl2/Manifest?rev=1.1&content-type=text/plain |
238 |
|
239 |
Index: Manifest |
240 |
=================================================================== |
241 |
AUX libsdl2-2.0.0-static-libs.patch 4292 SHA256 b94faa8e0f54102ed790aebf7fb4a120e80aadc95171de7f1627f79eb5af79d9 SHA512 c7a766fc124a4cc4ba9af143579769967158e3a1617afc55ce13c20ac148cf067b73b2fd0b15d197b5587b981e07b648cb1f800f8099aaa976596e421389bb06 WHIRLPOOL f1dbbe6f45f4c4a7d705cf9beadb8edb215fb302707ce917abc89f5eccfccdd0c7ff2f25f9279284de03ea011354c54f94a4fd2b4e66d0e5bed03ce0795606d4 |
242 |
DIST SDL2-2.0.0.tar.gz 3623960 SHA256 6f6ac8153d90e06a118474d5400624ae82b3d3e080915505db27cebc52b27178 SHA512 6650ca1afcf2ad172f511adb80d265722c7533b1e614925ef5bcdce1b898b42c261d6ed8188e15e56bab2002f16d16c255bdd984932e347de6252c0ee54a7f53 WHIRLPOOL 38111cb4f47dda36a658b94f8ab9b50c6009926b45e3d55f255d03e2c0f66040a5b8786d44da51fe572a03eb7fa5ac5d8fa5a0933bbc0579ed0e86de1b2a4c12 |
243 |
EBUILD libsdl2-2.0.0.ebuild 3869 SHA256 ab757abb80125ff4021816aae1fdcc3babd296e16beabd57499f73e34a5ad709 SHA512 7d81490b142274eeb6ccba8fca208920fd609d4d984643d1056d0e709d4b91e2c2b6a339ca134d06ea6e118bd64fce2dca128e3ccfdd605dd028531985fbddd9 WHIRLPOOL dbc83ec5f9db5efedeb3934855f8bebacaae3a711ded0160442aad5e230f3aa5be6c4c848341652e9b9f26911e08f4e082ed1a0dc27fb00df68097898183f9ff |
244 |
MISC ChangeLog 310 SHA256 902158ae4530b5b630f4ddbf7854f330a9cfd8399f72f525431f64a28d9e83f1 SHA512 413dccc3652aa268a536dd8b1a218380221b67bf0114e690a75b9734c74d1b63333933ad57a84f92e174a9c55f53508f4331fc0b8c3304f15a0ae48261209a60 WHIRLPOOL 8355ae5ab7daee7afb071cb7aafbe2f12b78f45e0b4539cbae576a2ed206f68a23235f68cf49cde596525cea88e70b9172980ace8e0c3a8fa8820b1a04dc49ca |
245 |
MISC metadata.xml 1532 SHA256 b0de84edcfbcf286934f7adf119917dcd138c0570d78b25286f25b3a2d110da9 SHA512 fe8e84981baee1567e80430a2352feffa03915864b871916c13cfec4fd734c12dd6d9195ed20da26e7985dcd39c55498d1f55ac0a5dd61c2d4100e6e964b5e79 WHIRLPOOL dfda175811d3dc27eadc3e7b61920c6257ad9e062626cd786adaf0a1c52ab283f8814feb85d0121bfd01ce52cab56f587c078b3d20aa1fc954a1986d176bb4aa |