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