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_beta1.ebuild
Date: Tue, 01 Jul 2008 22:51:26
Message-Id: E1KDogy-0002of-J9@stork.gentoo.org
1 aballier 08/07/01 22:51:20
2
3 Modified: ChangeLog
4 Added: vlc-0.9.0_beta1.ebuild
5 Log:
6 bump to test1
7 (Portage version: 2.2_rc1/cvs/Linux 2.6.25.7 x86_64)
8
9 Revision Changes Path
10 1.352 media-video/vlc/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/vlc/ChangeLog?rev=1.352&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/vlc/ChangeLog?rev=1.352&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/vlc/ChangeLog?r1=1.351&r2=1.352
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/media-video/vlc/ChangeLog,v
19 retrieving revision 1.351
20 retrieving revision 1.352
21 diff -u -r1.351 -r1.352
22 --- ChangeLog 29 Jun 2008 19:40:47 -0000 1.351
23 +++ ChangeLog 1 Jul 2008 22:51:20 -0000 1.352
24 @@ -1,6 +1,11 @@
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.351 2008/06/29 19:40:47 aballier Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/media-video/vlc/ChangeLog,v 1.352 2008/07/01 22:51:20 aballier Exp $
29 +
30 +*vlc-0.9.0_beta1 (01 Jul 2008)
31 +
32 + 01 Jul 2008; Alexis Ballier <aballier@g.o> +vlc-0.9.0_beta1.ebuild:
33 + bump to test1
34
35 29 Jun 2008; Alexis Ballier <aballier@g.o>
36 vlc-0.9.0_alpha20080625.ebuild:
37
38
39
40 1.1 media-video/vlc/vlc-0.9.0_beta1.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/vlc/vlc-0.9.0_beta1.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/vlc/vlc-0.9.0_beta1.ebuild?rev=1.1&content-type=text/plain
44
45 Index: vlc-0.9.0_beta1.ebuild
46 ===================================================================
47 # Copyright 1999-2008 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/media-video/vlc/vlc-0.9.0_beta1.ebuild,v 1.1 2008/07/01 22:51:20 aballier Exp $
50
51 EAPI="1"
52
53 WANT_AUTOMAKE=latest
54 WANT_AUTOCONF=latest
55
56 inherit eutils multilib autotools toolchain-funcs gnome2 nsplugins qt4 flag-o-matic
57
58 MY_PV="${PV/_/-}"
59 MY_PV="${MY_PV/-beta/-test}"
60 MY_P="${PN}-${MY_PV}"
61 VLC_SNAPSHOT_TIME="0013"
62
63 PATCHLEVEL="56"
64 M4_TARBALL_VERSION="1"
65 DESCRIPTION="VLC media player - Video player and streamer"
66 HOMEPAGE="http://www.videolan.org/vlc/"
67 if [[ "${P}" == *_alpha* ]]; then # Snapshots taken from nightlies.videolan.org
68 SRC_URI="http://nightlies.videolan.org/build/source/trunk-${PV/*_alpha/}-${VLC_SNAPSHOT_TIME}/${PN}-snapshot-${PV/*_alpha/}.tar.bz2"
69 MY_P="${P/_alpha*/}-git"
70 elif [[ "${P}" == *_p* ]]; then # Snapshots
71 SRC_URI="mirror://gentoo/${P}.tar.bz2"
72 MY_P="${P}"
73 elif [[ "${MY_P}" == "${P}" ]]; then
74 SRC_URI="http://download.videolan.org/pub/videolan/${PN}/${PV}/${P}.tar.bz2"
75 else
76 SRC_URI="http://download.videolan.org/pub/videolan/testing/${MY_P}/${MY_P}.tar.bz2"
77 fi
78
79 SRC_URI="${SRC_URI}
80 mirror://gentoo/${PN}-patches-${PATCHLEVEL}.tar.bz2
81 mirror://gentoo/${PN}-m4-${M4_TARBALL_VERSION}.tar.bz2"
82
83 LICENSE="GPL-2"
84 SLOT="0"
85
86 KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
87 IUSE="a52 aac aalib alsa altivec arts atmo avahi bidi cdda cddb cdio dbus dc1394
88 debug directfb dts dvb dvd esd fbcon fluidsynth +ffmpeg flac ggi gnome gnutls hal httpd
89 id3tag jack libcaca libnotify lirc live lua matroska mmx modplug mp3 mpeg
90 musepack musicbrainz ncurses nsplugin ogg opengl optimisememory oss png pulseaudio pvr +qt4
91 remoteosd rtsp samba sdl sdl-image seamonkey shout skins speex sse stream svg svga taglib
92 theora truetype twolame upnp v4l v4l2 vcd vcdx vlm vorbis win32codecs
93 X x264 xinerama xml xosd xulrunner xv"
94
95 RDEPEND="
96 sys-libs/zlib
97 media-libs/libdvbpsi
98 a52? ( >=media-libs/a52dec-0.7.4-r3 )
99 aalib? ( media-libs/aalib )
100 aac? ( >=media-libs/faad2-2.6.1 )
101 alsa? ( media-libs/alsa-lib )
102 arts? ( kde-base/arts )
103 avahi? ( >=net-dns/avahi-0.6 )
104 bidi? ( >=dev-libs/fribidi-0.10.4 )
105 cdda? ( >=dev-libs/libcdio-0.72
106 cddb? ( >=media-libs/libcddb-1.2.0 ) )
107 cdio? ( >=dev-libs/libcdio-0.78.2
108 >=media-video/vcdimager-0.7.22 )
109 dbus? ( >=sys-apps/dbus-1.0.2 )
110 dc1394? ( sys-libs/libraw1394
111 <media-libs/libdc1394-1.9.99 )
112 directfb? ( dev-libs/DirectFB )
113 dts? ( media-libs/libdca )
114 dvd? ( media-libs/libdvdread
115 media-libs/libdvdcss
116 >=media-libs/libdvdnav-0.1.9
117 media-libs/libdvdplay )
118 esd? ( media-sound/esound )
119 ffmpeg? ( >=media-video/ffmpeg-0.4.9_p20070616 )
120 flac? ( media-libs/libogg
121 >=media-libs/flac-1.1.2 )
122 fluidsynth? ( media-sound/fluidsynth )
123 ggi? ( media-libs/libggi )
124 gnome? ( gnome-base/gnome-vfs )
125 gnutls? ( >=net-libs/gnutls-1.3.3 )
126 >=dev-libs/libgcrypt-1.2.0
127 hal? ( sys-apps/hal )
128 id3tag? ( media-libs/libid3tag
129 sys-libs/zlib )
130 jack? ( >=media-sound/jack-audio-connection-kit-0.99.0-r1 )
131 libcaca? ( media-libs/libcaca )
132 libnotify? ( x11-libs/libnotify )
133 lirc? ( app-misc/lirc )
134 live? ( >=media-plugins/live-2007.02.20 )
135 lua? ( >=dev-lang/lua-5.1 )
136 matroska? (
137 >=dev-libs/libebml-0.7.6
138 >=media-libs/libmatroska-0.8.0 )
139 modplug? ( media-libs/libmodplug )
140 mp3? ( media-libs/libmad )
141 mpeg? ( >=media-libs/libmpeg2-0.3.2 )
142 musepack? ( media-libs/libmpcdec )
143 musicbrainz? ( =media-libs/musicbrainz-2* )
144 ncurses? ( sys-libs/ncurses )
145 nsplugin? (
146 xulrunner? ( >=net-libs/xulrunner-1.8 )
147 !xulrunner? ( seamonkey? ( =www-client/seamonkey-1* ) )
148 !xulrunner? ( !seamonkey? ( =www-client/mozilla-firefox-2* ) )
149 )
150 ogg? ( media-libs/libogg )
151 png? ( media-libs/libpng )
152 pulseaudio? ( >=media-sound/pulseaudio-0.9.8 )
153 qt4? ( || ( ( x11-libs/qt-gui x11-libs/qt-core ) >=x11-libs/qt-4.2.0:4 ) )
154 remoteosd? ( >=dev-libs/libgcrypt-1.2.0 )
155 samba? ( net-fs/samba )
156 sdl? ( >=media-libs/libsdl-1.2.8
157 sdl-image? ( media-libs/sdl-image ) )
158 shout? ( media-libs/libshout )
159 skins? ( || ( ( x11-libs/qt-gui x11-libs/qt-core ) >=x11-libs/qt-4.2.0:4 ) )
160 speex? ( media-libs/speex )
161 svg? ( >=gnome-base/librsvg-2.9.0 )
162 svga? ( media-libs/svgalib )
163 taglib? ( media-libs/taglib )
164 theora? ( media-libs/libtheora )
165 truetype? ( media-libs/freetype
166 media-fonts/ttf-bitstream-vera )
167 twolame? ( media-sound/twolame )
168 upnp? ( net-libs/libupnp )
169 vorbis? ( media-libs/libvorbis )
170 win32codecs? ( media-libs/win32codecs )
171 X? (
172 x11-libs/libX11
173 x11-libs/libXext
174 xv? ( x11-libs/libXv )
175 xinerama? ( x11-libs/libXinerama )
176 opengl? ( virtual/opengl )
177 )
178 x264? ( media-libs/x264 )
179 xml? ( dev-libs/libxml2 )
180 xosd? ( x11-libs/xosd )
181 "
182
183 # Disabled features and reasons:
184 # xvmc? ( x11-libs/libXvMC )
185 # Will probably compile only on x86
186 # dirac? ( >=media-video/dirac-0.10.0 )
187 # Needs testing but can be ok
188 # zvbi? ( >=media-libs/zvbi-0.2.25 )
189 # Dep not up to date enough
190 # kate? ( >=media-libs/libkate-0.1.1 )
191 # No package yet
192
193 DEPEND="${RDEPEND}
194 dvb? ( sys-kernel/linux-headers )
195 v4l? ( sys-kernel/linux-headers )
196 v4l2? ( sys-kernel/linux-headers )
197 X? ( xinerama? ( x11-proto/xineramaproto ) )
198 dev-util/pkgconfig"
199
200 S="${WORKDIR}/${MY_P}"
201
202 # Dispalys a warning if the first use flag is set but not the second
203 vlc_use_needs() {
204 use $1 && use !$2 && ewarn "USE=$1 requires $2, $1 will be disabled."
205 }
206
207 # Notify the user that some useflag have been forced on
208 vlc_use_force() {
209 use $1 && use !$2 && ewarn "USE=$1 requires $2, $2 will be enabled."
210 }
211
212 # Use when $2 depends strictly on $3
213 # if use $1 then enable $2 and $3, otherwise disable $2
214 vlc_use_enable_force() {
215 if use $1 ; then
216 echo "--enable-$2 --enable-$3"
217 else
218 echo "--disable-$2"
219 fi
220 }
221
222 # Prints the configure argument for the ffmpeg scaling api to use
223 vlc_ffmpeg_scaling_api() {
224 if use ffmpeg ; then
225 if has_version ">=media-video/ffmpeg-0.4.9_p20070616-r1" ; then
226 echo "--enable-swscale --disable-imgresample"
227 else
228 echo "--disable-swscale --enable-imgresample"
229 fi
230 else
231 echo "--disable-swscale --disable-imgresample"
232 fi
233 }
234
235 pkg_setup() {
236 vlc_use_needs skins truetype
237 vlc_use_force skins qt4
238 vlc_use_needs cdda cdio
239 vlc_use_needs vcdx cdio
240 vlc_use_needs bidi truetype
241 }
242
243 src_unpack() {
244 unpack ${A}
245 cd "${S}"
246
247 EPATCH_SUFFIX="patch" epatch "${WORKDIR}/patches"
248 AT_M4DIR="m4 ${WORKDIR}/${PN}-m4" eautoreconf
249 }
250
251 src_compile () {
252
253 # It would fail if -fforce-addr is used due to too few registers...
254 use x86 && filter-flags -fforce-addr
255
256 local XPIDL=""
257 local MOZILLA_CONFIG=""
258
259 if use nsplugin; then
260 if use xulrunner; then
261 XPIDL=/usr/$(get_libdir)/xulrunner
262 MOZILLA_CONFIG=/usr/bin/xulrunner-config
263 elif use seamonkey; then
264 XPIDL=/usr/$(get_libdir)/seamonkey
265 MOZILLA_CONFIG=/usr/$(get_libdir)/seamonkey/seamonkey-config
266 else
267 XPIDL=/usr/$(get_libdir)/mozilla-firefox
268 MOZILLA_CONFIG=/usr/$(get_libdir)/mozilla-firefox/firefox-config
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 --disable-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 --disable-galaktos \
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 --disable-kate \
310 $(use_enable libcaca caca) \
311 --enable-libgcrypt \
312 $(use_enable libnotify notify) \
313 --disable-libproxy \
314 --disable-libtar \
315 $(use_enable lirc) \
316 $(use_enable live live555) \
317 $(use_enable lua) \
318 $(use_enable matroska mkv) \
319 $(use_enable mmx) \
320 $(use_enable modplug mod) \
321 $(use_enable mp3 mad) \
322 $(use_enable mpeg libmpeg2) \
323 $(use_enable musepack mpc) \
324 $(use_enable musicbrainz) \
325 $(use_enable ncurses) \
326 $(use_enable nsplugin mozilla) XPIDL="${XPIDL}" MOZILLA_CONFIG="${MOZILLA_CONFIG}" \
327 $(use_enable ogg) \
328 $(use_enable opengl glx) $(use_enable opengl) \
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 remoteosd) \
337 $(use_enable rtsp realrtsp) \
338 $(use_enable samba smb) \
339 --disable-schroedinger \
340 $(use_enable sdl) \
341 $(use_enable sdl-image) \
342 $(use_enable shout) \
343 $(use_enable skins skins2) \
344 $(use_enable speex) \
345 $(use_enable sse) \
346 --enable-sout \
347 $(use_enable svg) \
348 $(use_enable svga svgalib) \
349 $(use_enable taglib) \
350 $(use_enable theora) \
351 $(use_enable truetype freetype) \
352 $(use_enable twolame) \
353 $(use_enable upnp) \
354 $(use_enable v4l) \
355 $(use_enable v4l2) \
356 $(use_enable vcd) \
357 $(use_enable vcdx) \
358 $(use_enable vorbis) \
359 $(use_enable win32codecs loader) \
360 $(use_enable X x11) $(use_enable X screen) \
361 $(use_enable x264) \
362 $(use_enable xinerama) \
363 $(use_enable xml libxml2) \
364 $(use_enable xosd) \
365 $(use_enable xv xvideo) \
366 --disable-xvmc \
367 --disable-zvbi \
368 --disable-snapshot \
369 --disable-growl \
370 --disable-optimizations \
371 --enable-fast-install \
372 $(vlc_use_enable_force vlm vlm sout) \
373 $(vlc_use_enable_force skins skins2 qt4)
374
375 # Reminder to re-add this when disabling it will not be broken
376 # $(use_enable stream sout) \
377
378 if [[ $(gcc-major-version) == 2 ]]; then
379 sed -i -e s:"-fomit-frame-pointer":: vlc-config || die "-fomit-frame-pointer patching failed"
380 fi
381
382 emake || die "make of VLC failed"
383 }
384
385 src_install() {
386 emake DESTDIR="${D}" install || die "make install failed"
387
388 dodoc AUTHORS MAINTAINERS HACKING THANKS NEWS README \
389 doc/fortunes.txt doc/intf-cdda.txt doc/intf-vcd.txt
390
391 rm -rf "${D}/usr/share/doc/vlc" \
392 "${D}"/usr/share/vlc/vlc{16x16,32x32,48x48,128x128}.{png,xpm,ico}
393
394 if use nsplugin; then
395 dodir "/usr/$(get_libdir)/${PLUGINS_DIR}"
396 mv "${D}"/usr/$(get_libdir)/mozilla/plugins/* \
397 "${D}/usr/$(get_libdir)/${PLUGINS_DIR}/"
398 fi
399
400 use skins || rm -rf "${D}/usr/share/vlc/skins2"
401
402 for res in 16 32 48; do
403 insinto /usr/share/icons/hicolor/${res}x${res}/apps/
404 newins "${S}"/share/vlc${res}x${res}.png vlc.png
405 done
406 }
407
408
409
410 --
411 gentoo-commits@l.g.o mailing list