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