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