Gentoo Archives: gentoo-commits

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