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