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