Gentoo Archives: gentoo-commits

From: "Tony Vroon (chainsaw)" <chainsaw@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-libs/libsdl: ChangeLog libsdl-1.2.15-r4.ebuild
Date: Sun, 02 Jun 2013 20:33:22
Message-Id: 20130602203318.A9C2B2171D@flycatcher.gentoo.org
1 chainsaw 13/06/02 20:33:18
2
3 Modified: ChangeLog
4 Added: libsdl-1.2.15-r4.ebuild
5 Log:
6 Patch by Azamat H. Hackimov to address build failures against recent libX11, closes bug #471300.
7
8 (Portage version: 2.1.12.2/cvs/Linux x86_64, signed Manifest commit with key 0xB5058F9A)
9
10 Revision Changes Path
11 1.202 media-libs/libsdl/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/libsdl/ChangeLog?rev=1.202&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/libsdl/ChangeLog?rev=1.202&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/libsdl/ChangeLog?r1=1.201&r2=1.202
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/media-libs/libsdl/ChangeLog,v
20 retrieving revision 1.201
21 retrieving revision 1.202
22 diff -u -r1.201 -r1.202
23 --- ChangeLog 10 May 2013 06:20:06 -0000 1.201
24 +++ ChangeLog 2 Jun 2013 20:33:18 -0000 1.202
25 @@ -1,6 +1,13 @@
26 # ChangeLog for media-libs/libsdl
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/media-libs/libsdl/ChangeLog,v 1.201 2013/05/10 06:20:06 mr_bones_ Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/media-libs/libsdl/ChangeLog,v 1.202 2013/06/02 20:33:18 chainsaw Exp $
30 +
31 +*libsdl-1.2.15-r4 (02 Jun 2013)
32 +
33 + 02 Jun 2013; Tony Vroon <chainsaw@g.o> +libsdl-1.2.15-r4.ebuild,
34 + +files/libsdl-1.2.15-const-xdata32.patch:
35 + Patch by Azamat H. Hackimov to address build failures against recent libX11,
36 + closes bug #471300.
37
38 *libsdl-1.2.15-r3 (10 May 2013)
39
40
41
42
43 1.1 media-libs/libsdl/libsdl-1.2.15-r4.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/libsdl/libsdl-1.2.15-r4.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/libsdl/libsdl-1.2.15-r4.ebuild?rev=1.1&content-type=text/plain
47
48 Index: libsdl-1.2.15-r4.ebuild
49 ===================================================================
50 # Copyright 1999-2013 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/media-libs/libsdl/libsdl-1.2.15-r4.ebuild,v 1.1 2013/06/02 20:33:18 chainsaw Exp $
53
54 EAPI=5
55 inherit autotools base flag-o-matic multilib toolchain-funcs eutils
56
57 DESCRIPTION="Simple Direct Media Layer"
58 HOMEPAGE="http://www.libsdl.org/"
59 SRC_URI="http://www.libsdl.org/release/SDL-${PV}.tar.gz"
60
61 LICENSE="LGPL-2.1"
62 SLOT="0"
63 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
64 # WARNING:
65 # If you turn on the custom-cflags use flag in USE and something breaks,
66 # you pick up the pieces. Be prepared for bug reports to be marked INVALID.
67 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"
68
69 RDEPEND="audio? ( >=media-libs/audiofile-0.1.9 )
70 alsa? ( media-libs/alsa-lib )
71 nas? (
72 media-libs/nas
73 x11-libs/libXt
74 x11-libs/libXext
75 x11-libs/libX11
76 )
77 X? (
78 x11-libs/libXt
79 x11-libs/libXext
80 x11-libs/libX11
81 x11-libs/libXrandr
82 )
83 directfb? ( >=dev-libs/DirectFB-0.9.19 )
84 ggi? ( >=media-libs/libggi-2.0_beta3 )
85 svga? ( >=media-libs/svgalib-1.4.2 )
86 aalib? ( media-libs/aalib )
87 libcaca? ( >=media-libs/libcaca-0.9-r1 )
88 opengl? ( virtual/opengl virtual/glu )
89 ppc64? ( ps3? ( sys-libs/libspe2 ) )
90 tslib? ( x11-libs/tslib )
91 pulseaudio? ( media-sound/pulseaudio )"
92 DEPEND="${RDEPEND}
93 nas? (
94 x11-proto/xextproto
95 x11-proto/xproto
96 )
97 X? (
98 x11-proto/xextproto
99 x11-proto/xproto
100 )
101 x86? ( || ( >=dev-lang/yasm-0.6.0 >=dev-lang/nasm-0.98.39-r3 ) )"
102
103 S=${WORKDIR}/SDL-${PV}
104 PATCHES=(
105 "${FILESDIR}"/${P}-sdl-config.patch
106 "${FILESDIR}"/${P}-resizing.patch
107 "${FILESDIR}"/${P}-joystick.patch
108 "${FILESDIR}"/${P}-gamma.patch
109 "${FILESDIR}"/${P}-const-xdata32.patch
110 )
111
112 pkg_setup() {
113 if use custom-cflags ; then
114 ewarn "Since you've chosen to use possibly unsafe CFLAGS,"
115 ewarn "don't bother filing libsdl-related bugs until trying to remerge"
116 ewarn "libsdl without the custom-cflags use flag in USE."
117 epause 10
118 fi
119 }
120
121 src_prepare() {
122 base_src_prepare
123 AT_M4DIR="/usr/share/aclocal acinclude" eautoreconf
124 }
125
126 src_configure() {
127 local myconf=
128 if [[ $(tc-arch) != "x86" ]] ; then
129 myconf="${myconf} --disable-nasm"
130 else
131 myconf="${myconf} --enable-nasm"
132 fi
133 use custom-cflags || strip-flags
134 use audio || myconf="${myconf} --disable-audio"
135 use video \
136 && myconf="${myconf} --enable-video-dummy" \
137 || myconf="${myconf} --disable-video"
138 use joystick || myconf="${myconf} --disable-joystick"
139
140 local directfbconf="--disable-video-directfb"
141 if use directfb ; then
142 # since DirectFB can link against SDL and trigger a
143 # dependency loop, only link against DirectFB if it
144 # isn't broken #61592
145 echo 'int main(){}' > directfb-test.c
146 $(tc-getCC) directfb-test.c -ldirectfb 2>/dev/null \
147 && directfbconf="--enable-video-directfb" \
148 || ewarn "Disabling DirectFB since libdirectfb.so is broken"
149 fi
150
151 myconf="${myconf} ${directfbconf}"
152
153 econf \
154 --disable-rpath \
155 --disable-arts \
156 --disable-esd \
157 --enable-events \
158 --enable-cdrom \
159 --enable-threads \
160 --enable-timers \
161 --enable-file \
162 --enable-cpuinfo \
163 --disable-alsa-shared \
164 --disable-esd-shared \
165 --disable-pulseaudio-shared \
166 --disable-arts-shared \
167 --disable-nas-shared \
168 --disable-osmesa-shared \
169 $(use_enable oss) \
170 $(use_enable alsa) \
171 $(use_enable pulseaudio) \
172 $(use_enable nas) \
173 $(use_enable X video-x11) \
174 $(use_enable dga) \
175 $(use_enable xv video-x11-xv) \
176 $(use_enable xinerama video-x11-xinerama) \
177 $(use_enable X video-x11-xrandr) \
178 $(use_enable dga video-dga) \
179 $(use_enable fbcon video-fbcon) \
180 $(use_enable ggi video-ggi) \
181 $(use_enable svga video-svga) \
182 $(use_enable aalib video-aalib) \
183 $(use_enable libcaca video-caca) \
184 $(use_enable opengl video-opengl) \
185 $(use_enable ps3 video-ps3) \
186 $(use_enable tslib input-tslib) \
187 $(use_with X x) \
188 $(use_enable static-libs static) \
189 --disable-video-x11-xme \
190 ${myconf}
191 }
192
193 src_install() {
194 emake DESTDIR="${D}" install
195 use static-libs || prune_libtool_files --all
196 dodoc BUGS CREDITS README README-SDL.txt README.HG TODO WhatsNew
197 dohtml -r ./
198 }