Gentoo Archives: gentoo-commits

From: "Alexis Ballier (aballier)" <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-video/vlc: ChangeLog vlc-0.9.0_alpha20080625.ebuild
Date: Wed, 25 Jun 2008 08:49:36
Message-Id: E1KBQgz-0004PE-ST@stork.gentoo.org
1 aballier 08/06/25 08:49:29
2
3 Modified: ChangeLog
4 Added: vlc-0.9.0_alpha20080625.ebuild
5 Log:
6 bump a new snapshot
7 (Portage version: 2.2_rc1/cvs/Linux 2.6.25.7 x86_64)
8
9 Revision Changes Path
10 1.342 media-video/vlc/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/vlc/ChangeLog?rev=1.342&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/vlc/ChangeLog?rev=1.342&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/vlc/ChangeLog?r1=1.341&r2=1.342
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/media-video/vlc/ChangeLog,v
19 retrieving revision 1.341
20 retrieving revision 1.342
21 diff -u -r1.341 -r1.342
22 --- ChangeLog 6 Jun 2008 17:10:48 -0000 1.341
23 +++ ChangeLog 25 Jun 2008 08:49:29 -0000 1.342
24 @@ -1,6 +1,12 @@
25 # ChangeLog for media-video/vlc
26 # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/media-video/vlc/ChangeLog,v 1.341 2008/06/06 17:10:48 aballier Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/media-video/vlc/ChangeLog,v 1.342 2008/06/25 08:49:29 aballier Exp $
29 +
30 +*vlc-0.9.0_alpha20080625 (25 Jun 2008)
31 +
32 + 25 Jun 2008; Alexis Ballier <aballier@g.o>
33 + +vlc-0.9.0_alpha20080625.ebuild:
34 + bump a new snapshot
35
36 *vlc-0.8.6h (06 Jun 2008)
37
38
39
40
41 1.1 media-video/vlc/vlc-0.9.0_alpha20080625.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/vlc/vlc-0.9.0_alpha20080625.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/vlc/vlc-0.9.0_alpha20080625.ebuild?rev=1.1&content-type=text/plain
45
46 Index: vlc-0.9.0_alpha20080625.ebuild
47 ===================================================================
48 # Copyright 1999-2008 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/media-video/vlc/vlc-0.9.0_alpha20080625.ebuild,v 1.1 2008/06/25 08:49:29 aballier Exp $
51
52 EAPI="1"
53
54 WANT_AUTOMAKE=latest
55 WANT_AUTOCONF=latest
56
57 inherit eutils multilib autotools toolchain-funcs gnome2 nsplugins qt4 flag-o-matic
58
59 MY_PV="${PV/_/-}"
60 MY_PV="${MY_PV/-beta/-test}"
61 MY_P="${PN}-${MY_PV}"
62 VLC_SNAPSHOT_TIME="0013"
63
64 #RESTRICT="test"
65
66 PATCHLEVEL="56"
67 M4_TARBALL_VERSION="1"
68 DESCRIPTION="VLC media player - Video player and streamer"
69 HOMEPAGE="http://www.videolan.org/vlc/"
70 if [[ "${P}" == *_alpha* ]]; then # Snapshots taken from nightlies.videolan.org
71 SRC_URI="http://nightlies.videolan.org/build/source/trunk-${PV/*_alpha/}-${VLC_SNAPSHOT_TIME}/${PN}-snapshot-${PV/*_alpha/}.tar.bz2"
72 MY_P="${P/_alpha*/}-git"
73 elif [[ "${P}" == *_p* ]]; then # Snapshots
74 SRC_URI="mirror://gentoo/${P}.tar.bz2"
75 MY_P="${P}"
76 elif [[ "${MY_P}" == "${P}" ]]; then
77 SRC_URI="http://download.videolan.org/pub/videolan/${PN}/${PV}/${P}.tar.bz2"
78 else
79 SRC_URI="http://download.videolan.org/pub/videolan/testing/${MY_P}/${MY_P}.tar.bz2"
80 fi
81
82 SRC_URI="${SRC_URI}
83 mirror://gentoo/${PN}-patches-${PATCHLEVEL}.tar.bz2
84 mirror://gentoo/${PN}-m4-${M4_TARBALL_VERSION}.tar.bz2"
85
86 LICENSE="GPL-2"
87 SLOT="0"
88
89 KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
90 IUSE="a52 aac aalib alsa altivec arts atmo avahi bidi cdda cddb cdio dbus dc1394
91 debug directfb dts dvb dvd esd fbcon fluidsynth +ffmpeg flac ggi gnome gnutls hal httpd
92 id3tag jack libcaca libnotify lirc live lua matroska mmx modplug mp3 mpeg
93 musepack musicbrainz ncurses nsplugin ogg opengl optimisememory oss png pulseaudio pvr qt4
94 rtsp samba sdl sdl-image seamonkey shout skins speex sse stream svg svga taglib
95 theora truetype twolame upnp v4l v4l2 vcd vcdx vlm vorbis win32codecs
96 X x264 xinerama xml xosd xulrunner xv"
97
98 RDEPEND="
99 sys-libs/zlib
100 media-libs/libdvbpsi
101 a52? ( >=media-libs/a52dec-0.7.4-r3 )
102 aalib? ( media-libs/aalib )
103 aac? ( >=media-libs/faad2-2.6.1 )
104 alsa? ( media-libs/alsa-lib )
105 arts? ( kde-base/arts )
106 avahi? ( >=net-dns/avahi-0.6 )
107 bidi? ( >=dev-libs/fribidi-0.10.4 )
108 cdda? ( >=dev-libs/libcdio-0.72
109 cddb? ( >=media-libs/libcddb-1.2.0 ) )
110 cdio? ( >=dev-libs/libcdio-0.78.2
111 >=media-video/vcdimager-0.7.22 )
112 dbus? ( >=sys-apps/dbus-1.0.2 )
113 dc1394? ( sys-libs/libraw1394
114 <media-libs/libdc1394-1.9.99 )
115 directfb? ( dev-libs/DirectFB )
116 dts? ( media-libs/libdca )
117 dvd? ( media-libs/libdvdread
118 media-libs/libdvdcss
119 >=media-libs/libdvdnav-0.1.9
120 media-libs/libdvdplay )
121 esd? ( media-sound/esound )
122 ffmpeg? ( >=media-video/ffmpeg-0.4.9_p20050226-r1 )
123 flac? ( media-libs/libogg
124 >=media-libs/flac-1.1.2 )
125 fluidsynth? ( media-sound/fluidsynth )
126 ggi? ( media-libs/libggi )
127 gnome? ( gnome-base/gnome-vfs )
128 gnutls? ( >=net-libs/gnutls-1.3.3 >=dev-libs/libgcrypt-1.2.0 )
129 hal? ( sys-apps/hal )
130 id3tag? ( media-libs/libid3tag
131 sys-libs/zlib )
132 jack? ( >=media-sound/jack-audio-connection-kit-0.99.0-r1 )
133 libcaca? ( media-libs/libcaca )
134 libnotify? ( x11-libs/libnotify )
135 lirc? ( app-misc/lirc )
136 live? ( >=media-plugins/live-2007.02.20 )
137 lua? ( >=dev-lang/lua-5.1 )
138 matroska? (
139 >=dev-libs/libebml-0.7.6
140 >=media-libs/libmatroska-0.8.0 )
141 modplug? ( media-libs/libmodplug )
142 mp3? ( media-libs/libmad )
143 mpeg? ( >=media-libs/libmpeg2-0.3.2 )
144 musepack? ( media-libs/libmpcdec )
145 musicbrainz? ( =media-libs/musicbrainz-2* )
146 ncurses? ( sys-libs/ncurses )
147 nsplugin? (
148 xulrunner? ( =net-libs/xulrunner-1.8* )
149 !xulrunner? ( seamonkey? ( =www-client/seamonkey-1* ) )
150 !xulrunner? ( !seamonkey? ( =www-client/mozilla-firefox-2* ) )
151 )
152 ogg? ( media-libs/libogg )
153 png? ( media-libs/libpng )
154 pulseaudio? ( >=media-sound/pulseaudio-0.9.8 )
155 qt4? ( || ( ( x11-libs/qt-gui x11-libs/qt-core ) >=x11-libs/qt-4.2.0:4 ) )
156 samba? ( net-fs/samba )
157 sdl? ( >=media-libs/libsdl-1.2.8
158 sdl-image? ( media-libs/sdl-image ) )
159 shout? ( media-libs/libshout )
160 speex? ( media-libs/speex )
161 svg? ( >=gnome-base/librsvg-2.9.0 )
162 svga? ( media-libs/svgalib )
163 taglib? ( media-libs/taglib )
164 theora? ( media-libs/libtheora )
165 truetype? ( media-libs/freetype
166 media-fonts/ttf-bitstream-vera )
167 twolame? ( media-sound/twolame )
168 upnp? ( net-libs/libupnp )
169 vorbis? ( media-libs/libvorbis )
170 win32codecs? ( media-libs/win32codecs )
171 X? (
172 x11-libs/libX11
173 x11-libs/libXext
174 xv? ( x11-libs/libXv )
175 xinerama? ( x11-libs/libXinerama )
176 opengl? ( virtual/opengl )
177 )
178 x264? ( media-libs/x264 )
179 xml? ( dev-libs/libxml2 )
180 xosd? ( x11-libs/xosd )
181 "
182
183 # Disabled features and reasons:
184 # xvmc? ( x11-libs/libXvMC )
185 # Will probably compile only on x86
186 # dirac? ( >=media-video/dirac-0.10.0 )
187 # Needs testing but can be ok
188 # zvbi? ( >=media-libs/zvbi-0.2.25 )
189 # Dep not up to date enough
190 # kate? ( >=media-libs/libkate-0.1.1 )
191 # No package yet
192
193 DEPEND="${RDEPEND}
194 dvb? ( sys-kernel/linux-headers )
195 v4l? ( sys-kernel/linux-headers )
196 v4l2? ( sys-kernel/linux-headers )
197 X? ( xinerama? ( x11-proto/xineramaproto ) )
198 dev-util/pkgconfig"
199
200 S="${WORKDIR}/${MY_P}"
201
202 # Dispalys a warning if the first use flag is set but not the second
203 vlc_use_needs() {
204 use $1 && use !$2 && ewarn "USE=$1 requires $2, $1 will be disabled."
205 }
206
207 pkg_setup() {
208 vlc_use_needs skins truetype
209 vlc_use_needs skins qt4
210 vlc_use_needs cdda cdio
211 vlc_use_needs vcdx cdio
212 vlc_use_needs bidi truetype
213 }
214
215 src_unpack() {
216 unpack ${A}
217 cd "${S}"
218
219 EPATCH_SUFFIX="patch" epatch "${WORKDIR}/patches"
220 AT_M4DIR="m4 ${WORKDIR}/${PN}-m4" eautoreconf
221 }
222
223 src_compile () {
224
225 # It would fail if -fforce-addr is used due to too few registers...
226 use x86 && filter-flags -fforce-addr
227
228 local XPIDL=""
229 local MOZILLA_CONFIG=""
230
231 use vlm && \
232 myconf="${myconf} --enable-vlm --enable-sout" || \
233 myconf="${myconf} --disable-vlm"
234
235 if use nsplugin; then
236 if use xulrunner; then
237 XPIDL=/usr/$(get_libdir)/xulrunner
238 MOZILLA_CONFIG=/usr/bin/xulrunner-config
239 elif use seamonkey; then
240 XPIDL=/usr/$(get_libdir)/seamonkey
241 MOZILLA_CONFIG=/usr/$(get_libdir)/seamonkey/seamonkey-config
242 else
243 XPIDL=/usr/$(get_libdir)/mozilla-firefox
244 MOZILLA_CONFIG=/usr/$(get_libdir)/mozilla-firefox/firefox-config
245 fi
246 fi
247
248 econf \
249 $(use_enable a52) \
250 $(use_enable aalib aa) \
251 $(use_enable aac faad) \
252 $(use_enable alsa) \
253 $(use_enable altivec) \
254 $(use_enable arts) \
255 --disable-asademux \
256 $(use_enable atmo) \
257 $(use_enable avahi bonjour) \
258 $(use_enable bidi fribidi) \
259 $(use_enable cdda) $(use_enable cdda cddax)\
260 $(use_enable cddb libcddb) \
261 $(use_enable cdio libcdio) \
262 --disable-csri \
263 $(use_enable dbus) $(use_enable dbus dbus-control) \
264 --disable-dirac \
265 $(use_enable directfb) \
266 $(use_enable dc1394) \
267 $(use_enable debug) \
268 $(use_enable dts dca) \
269 --disable-dv \
270 $(use_enable dvb) \
271 $(use_enable dvd dvdread) $(use_enable dvd dvdnav) \
272 $(use_enable esd) \
273 $(use_enable fbcon fb) \
274 $(use_enable ffmpeg avcodec) $(use_enable ffmpeg avformat) $(use_enable ffmpeg swscale) \
275 $(use_enable flac) \
276 $(use_enable fluidsynth) \
277 --disable-galaktos \
278 $(use_enable ggi) \
279 $(use_enable gnome gnomevfs) \
280 $(use_enable gnutls) \
281 $(use_enable hal) \
282 $(use_enable httpd) \
283 $(use_enable id3tag) \
284 $(use_enable jack) \
285 --disable-kate \
286 $(use_enable libcaca caca) \
287 $(use_enable gnutls libgcrypt) \
288 $(use_enable libnotify notify) \
289 --disable-libproxy \
290 --disable-libtar \
291 $(use_enable lirc) \
292 $(use_enable live live555) \
293 $(use_enable lua) \
294 $(use_enable matroska mkv) \
295 $(use_enable mmx) \
296 $(use_enable modplug mod) \
297 $(use_enable mp3 mad) \
298 $(use_enable mpeg libmpeg2) \
299 $(use_enable musepack mpc) \
300 $(use_enable musicbrainz) \
301 $(use_enable ncurses) \
302 $(use_enable nsplugin mozilla) XPIDL="${XPIDL}" MOZILLA_CONFIG="${MOZILLA_CONFIG}" \
303 $(use_enable ogg) \
304 $(use_enable opengl glx) $(use_enable opengl) \
305 $(use_enable optimisememory optimize-memory) \
306 $(use_enable oss) \
307 $(use_enable png) \
308 --disable-portaudio \
309 $(use_enable pulseaudio pulse) \
310 $(use_enable pvr) \
311 $(use_enable qt4) \
312 $(use_enable rtsp realrtsp) \
313 $(use_enable samba smb) \
314 $(use_enable sdl) \
315 $(use_enable sdl-image) \
316 $(use_enable shout) \
317 $(use_enable skins skins2) \
318 $(use_enable speex) \
319 $(use_enable sse) \
320 --enable-sout \
321 $(use_enable svg) \
322 $(use_enable svga svgalib) \
323 $(use_enable taglib) \
324 $(use_enable theora) \
325 $(use_enable truetype freetype) \
326 $(use_enable twolame) \
327 $(use_enable upnp) \
328 $(use_enable v4l) \
329 $(use_enable v4l2) \
330 $(use_enable vcd) \
331 $(use_enable vcdx) \
332 $(use_enable vorbis) \
333 $(use_enable win32codecs loader) \
334 $(use_enable X x11) $(use_enable X screen) \
335 $(use_enable x264) \
336 $(use_enable xinerama) \
337 $(use_enable xml libxml2) \
338 $(use_enable xosd) \
339 $(use_enable xv xvideo) \
340 --disable-xvmc \
341 --disable-zvbi \
342 --disable-snapshot \
343 --disable-growl \
344 --disable-optimizations \
345 --enable-fast-install \
346 ${myconf} || die "configuration failed"
347
348 # Reminder to re-add this when disabling it will not be broken
349 # $(use_enable stream sout) \
350
351 if [[ $(gcc-major-version) == 2 ]]; then
352 sed -i -e s:"-fomit-frame-pointer":: vlc-config || die "-fomit-frame-pointer patching failed"
353 fi
354
355 emake || die "make of VLC failed"
356 }
357
358 src_install() {
359 emake DESTDIR="${D}" install || die "make install failed"
360
361 dodoc AUTHORS MAINTAINERS HACKING THANKS NEWS README \
362 doc/fortunes.txt doc/intf-cdda.txt doc/intf-vcd.txt
363
364 rm -rf "${D}/usr/share/doc/vlc" \
365 "${D}"/usr/share/vlc/vlc{16x16,32x32,48x48,128x128}.{png,xpm,ico}
366
367 if use nsplugin; then
368 dodir "/usr/$(get_libdir)/${PLUGINS_DIR}"
369 mv "${D}"/usr/$(get_libdir)/mozilla/plugins/* \
370 "${D}/usr/$(get_libdir)/${PLUGINS_DIR}/"
371 fi
372
373 use skins || rm -rf "${D}/usr/share/vlc/skins2"
374
375 for res in 16 32 48; do
376 insinto /usr/share/icons/hicolor/${res}x${res}/apps/
377 newins "${S}"/share/vlc${res}x${res}.png vlc.png
378 done
379 }
380
381
382
383 --
384 gentoo-commits@l.g.o mailing list