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