Gentoo Archives: gentoo-commits

From: "Julian Ospald (hasufell)" <hasufell@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-libs/libsdl2: libsdl2-2.0.1-r1.ebuild ChangeLog libsdl2-2.0.1.ebuild
Date: Wed, 01 Jan 2014 00:26:09
Message-Id: 20140101002603.E45CD21A29@flycatcher.gentoo.org
1 hasufell 14/01/01 00:26:03
2
3 Modified: ChangeLog
4 Added: libsdl2-2.0.1-r1.ebuild
5 Removed: libsdl2-2.0.1.ebuild
6 Log:
7 modifications to static-libs.patch by Daniel Scharrer wrt #1431 (upstream tracker)
8
9 (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key E73C35B3)
10
11 Revision Changes Path
12 1.7 media-libs/libsdl2/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/libsdl2/ChangeLog?rev=1.7&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/libsdl2/ChangeLog?rev=1.7&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/libsdl2/ChangeLog?r1=1.6&r2=1.7
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/media-libs/libsdl2/ChangeLog,v
21 retrieving revision 1.6
22 retrieving revision 1.7
23 diff -u -r1.6 -r1.7
24 --- ChangeLog 26 Oct 2013 18:18:43 -0000 1.6
25 +++ ChangeLog 1 Jan 2014 00:26:03 -0000 1.7
26 @@ -1,6 +1,13 @@
27 # ChangeLog for media-libs/libsdl2
28 -# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/media-libs/libsdl2/ChangeLog,v 1.6 2013/10/26 18:18:43 mr_bones_ Exp $
30 +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
31 +# $Header: /var/cvsroot/gentoo-x86/media-libs/libsdl2/ChangeLog,v 1.7 2014/01/01 00:26:03 hasufell Exp $
32 +
33 +*libsdl2-2.0.1-r1 (01 Jan 2014)
34 +
35 + 01 Jan 2014; Julian Ospald <hasufell@g.o> +libsdl2-2.0.1-r1.ebuild,
36 + -libsdl2-2.0.1.ebuild, files/libsdl2-2.0.1-static-libs.patch:
37 + modifications to static-libs.patch by Daniel Scharrer wrt #1431 (upstream
38 + tracker)
39
40 26 Oct 2013; Michael Sterrett <mr_bones_@g.o>
41 -files/libsdl2-2.0.0-static-libs.patch, -files/libsdl2-2.0.0-threads.patch,
42
43
44
45 1.1 media-libs/libsdl2/libsdl2-2.0.1-r1.ebuild
46
47 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/libsdl2/libsdl2-2.0.1-r1.ebuild?rev=1.1&view=markup
48 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/libsdl2/libsdl2-2.0.1-r1.ebuild?rev=1.1&content-type=text/plain
49
50 Index: libsdl2-2.0.1-r1.ebuild
51 ===================================================================
52 # Copyright 1999-2014 Gentoo Foundation
53 # Distributed under the terms of the GNU General Public License v2
54 # $Header: /var/cvsroot/gentoo-x86/media-libs/libsdl2/libsdl2-2.0.1-r1.ebuild,v 1.1 2014/01/01 00:26:03 hasufell Exp $
55
56 EAPI=5
57 inherit autotools flag-o-matic toolchain-funcs eutils
58
59 MY_P=SDL2-${PV}
60 DESCRIPTION="Simple Direct Media Layer"
61 HOMEPAGE="http://www.libsdl.org"
62 SRC_URI="http://www.libsdl.org/release/${MY_P}.tar.gz"
63
64 LICENSE="ZLIB"
65 SLOT="0"
66 KEYWORDS="~amd64 ~x86"
67
68 IUSE="3dnow alsa altivec +audio custom-cflags dbus directfb fusionsound gles haptic +joystick mmx nas opengl oss pulseaudio sse sse2 static-libs +threads tslib udev +video X xinerama xscreensaver"
69 REQUIRED_USE="
70 alsa? ( audio )
71 fusionsound? ( audio )
72 gles? ( video )
73 nas? ( audio )
74 opengl? ( video )
75 pulseaudio? ( audio )
76 xinerama? ( X )
77 xscreensaver? ( X )"
78
79 RDEPEND="
80 alsa? ( media-libs/alsa-lib )
81 dbus? ( sys-apps/dbus )
82 directfb? ( >=dev-libs/DirectFB-1.0.0 )
83 fusionsound? ( >=media-libs/FusionSound-1.1.1 )
84 gles? ( media-libs/mesa[gles2] )
85 nas? ( media-libs/nas )
86 opengl? ( virtual/opengl virtual/glu )
87 pulseaudio? ( media-sound/pulseaudio )
88 tslib? ( x11-libs/tslib )
89 udev? ( virtual/udev )
90 X? (
91 x11-libs/libX11
92 x11-libs/libXcursor
93 x11-libs/libXext
94 x11-libs/libXi
95 x11-libs/libXrandr
96 x11-libs/libXt
97 x11-libs/libXxf86vm
98 xinerama? ( x11-libs/libXinerama )
99 xscreensaver? ( x11-libs/libXScrnSaver )
100 )"
101 DEPEND="${RDEPEND}
102 X? (
103 x11-proto/xextproto
104 x11-proto/xproto
105 )
106 virtual/pkgconfig"
107
108 S=${WORKDIR}/${MY_P}
109
110 src_prepare() {
111 # https://bugzilla.libsdl.org/show_bug.cgi?id=1431
112 epatch "${FILESDIR}"/${P}-static-libs.patch
113 AT_M4DIR="/usr/share/aclocal acinclude" eautoreconf
114 }
115
116 src_configure() {
117 use custom-cflags || strip-flags
118
119 local directfbconf="--disable-video-directfb"
120 if use directfb ; then
121 # since DirectFB can link against SDL and trigger a
122 # dependency loop, only link against DirectFB if it
123 # isn't broken #61592
124 echo 'int main(){}' > directfb-test.c
125 $(tc-getCC) directfb-test.c -ldirectfb 2>/dev/null \
126 && directfbconf="--enable-video-directfb" \
127 || ewarn "Disabling DirectFB since libdirectfb.so is broken"
128 fi
129
130 # sorted by `./configure --help`
131 econf \
132 $(use_enable static-libs static) \
133 $(use_enable audio) \
134 $(use_enable video) \
135 --enable-render \
136 --enable-events \
137 $(use_enable joystick) \
138 $(use_enable haptic) \
139 --enable-power \
140 $(use_enable threads) \
141 --enable-timers \
142 --enable-file \
143 --disable-loadso \
144 --enable-cpuinfo \
145 --enable-atomic \
146 --enable-assembly \
147 $(use_enable sse ssemath) \
148 $(use_enable mmx) \
149 $(use_enable 3dnow) \
150 $(use_enable sse) \
151 $(use_enable sse2) \
152 $(use_enable altivec) \
153 $(use_enable oss) \
154 $(use_enable alsa) \
155 --disable-alsa-shared \
156 --disable-esd \
157 $(use_enable pulseaudio) \
158 --disable-pulseaudio-shared \
159 --disable-arts \
160 $(use_enable nas) \
161 --disable-nas-shared \
162 --disable-sndio \
163 --disable-sndio-shared \
164 $(use_enable audio diskaudio) \
165 $(use_enable audio dummyaudio) \
166 $(use_enable X video-x11) \
167 --disable-x11-shared \
168 $(use_enable X video-x11-xcursor) \
169 $(use_enable xinerama video-x11-xinerama) \
170 $(use_enable X video-x11-xinput) \
171 $(use_enable X video-x11-xrandr) \
172 $(use_enable xscreensaver video-x11-scrnsaver) \
173 $(use_enable X video-x11-xshape) \
174 $(use_enable X video-x11-vm) \
175 --disable-video-cocoa \
176 ${directfbconf} \
177 --disable-directfb-shared \
178 $(use_enable fusionsound) \
179 --disable-fusionsound-shared \
180 $(use_enable video video-dummy) \
181 $(use_enable opengl video-opengl) \
182 $(use_enable gles video-opengles) \
183 $(use_enable udev libudev) \
184 $(use_enable dbus) \
185 $(use_enable tslib input-tslib) \
186 --disable-directx \
187 --disable-rpath \
188 --disable-render-d3d \
189 $(use_with X x)
190 }
191
192 src_install() {
193 emake DESTDIR="${D}" install
194 prune_libtool_files
195 dodoc {BUGS,CREDITS,README,README-SDL,README-hg,TODO,WhatsNew}.txt
196 }