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