1 |
aballier 09/02/27 10:34:44 |
2 |
|
3 |
Modified: metadata.xml ChangeLog |
4 |
Added: vlc-0.9.9999.ebuild vlc-9999.ebuild |
5 |
Log: |
6 |
Add live ebuilds for bugfix and master branches, useful for testing |
7 |
(Portage version: 2.2_rc23/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.23 media-video/vlc/metadata.xml |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/vlc/metadata.xml?rev=1.23&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/vlc/metadata.xml?rev=1.23&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/vlc/metadata.xml?r1=1.22&r2=1.23 |
15 |
|
16 |
Index: metadata.xml |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/media-video/vlc/metadata.xml,v |
19 |
retrieving revision 1.22 |
20 |
retrieving revision 1.23 |
21 |
diff -u -r1.22 -r1.23 |
22 |
--- metadata.xml 6 Feb 2009 09:02:22 -0000 1.22 |
23 |
+++ metadata.xml 27 Feb 2009 10:34:43 -0000 1.23 |
24 |
@@ -25,6 +25,7 @@ |
25 |
from various video formats to standard ones, needed to use v4l2 devices |
26 |
with strange formats).</flag> |
27 |
<flag name="live">Enables LIVE.com support.</flag> |
28 |
+ <flag name="mtp">Enables MTP devices support.</flag> |
29 |
<flag name="optimisememory">Enable optimisation for memory rather than performance.</flag> |
30 |
<flag name="pda">Builds a GTK+ interface suitable for PDA devices.</flag> |
31 |
<flag name="pvr">Enables PVR cards access module.</flag> |
32 |
@@ -34,6 +35,7 @@ |
33 |
<flag name="run-as-root">Allows vlc to start for root. Don't enable this unless you have a very specific (e.g. embedded) need for it!</flag> |
34 |
<flag name="schroedinger">Enable Dirac video support (an advanced royalty-free video compression format) via libschroedinger (high-speed implementation in C of the Dirac codec).</flag> |
35 |
<flag name="sdl-image">Enables sdl image video decoder (depends on sdl)</flag> |
36 |
+ <flag name="shine">Enables shine fixed point mp3 encoder.</flag> |
37 |
<flag name="shout">Enables libshout output.</flag> |
38 |
<flag name="skins">Enables support for the skins2 interface.</flag> |
39 |
<flag name="stream">Enables vlc to stream video.</flag> |
40 |
@@ -42,6 +44,7 @@ |
41 |
<flag name="vcdinfo">Enables VCD information library support.</flag> |
42 |
<flag name="vcdx">Enables VCD with navigation via libvcdinfo (depends on cdio)</flag> |
43 |
<flag name="vlm">New videolan (media) manager (vlm), a little manager designed to launch and manage multiple streams from within one instance of VLC.</flag> |
44 |
+ <flag name="wma-fixed">Enables fixed point WMA decoder.</flag> |
45 |
<flag name="X">Enables support for, e.g., fullscreen mode via the X Window System. By itself, this flag does not build a graphical interface.</flag> |
46 |
<flag name="zvbi">Enables support for teletext subtitles via the zvbi library.</flag> |
47 |
</use> |
48 |
|
49 |
|
50 |
|
51 |
1.421 media-video/vlc/ChangeLog |
52 |
|
53 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/vlc/ChangeLog?rev=1.421&view=markup |
54 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/vlc/ChangeLog?rev=1.421&content-type=text/plain |
55 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/vlc/ChangeLog?r1=1.420&r2=1.421 |
56 |
|
57 |
Index: ChangeLog |
58 |
=================================================================== |
59 |
RCS file: /var/cvsroot/gentoo-x86/media-video/vlc/ChangeLog,v |
60 |
retrieving revision 1.420 |
61 |
retrieving revision 1.421 |
62 |
diff -u -r1.420 -r1.421 |
63 |
--- ChangeLog 6 Feb 2009 09:02:22 -0000 1.420 |
64 |
+++ ChangeLog 27 Feb 2009 10:34:43 -0000 1.421 |
65 |
@@ -1,6 +1,13 @@ |
66 |
# ChangeLog for media-video/vlc |
67 |
# Copyright 2002-2009 Gentoo Foundation; Distributed under the GPL v2 |
68 |
-# $Header: /var/cvsroot/gentoo-x86/media-video/vlc/ChangeLog,v 1.420 2009/02/06 09:02:22 aballier Exp $ |
69 |
+# $Header: /var/cvsroot/gentoo-x86/media-video/vlc/ChangeLog,v 1.421 2009/02/27 10:34:43 aballier Exp $ |
70 |
+ |
71 |
+*vlc-9999 (27 Feb 2009) |
72 |
+*vlc-0.9.9999 (27 Feb 2009) |
73 |
+ |
74 |
+ 27 Feb 2009; Alexis Ballier <aballier@g.o> metadata.xml, |
75 |
+ +vlc-0.9.9999.ebuild, +vlc-9999.ebuild: |
76 |
+ Add live ebuilds for bugfix and master branches, useful for testing |
77 |
|
78 |
06 Feb 2009; Alexis Ballier <aballier@g.o> metadata.xml, |
79 |
vlc-0.9.8a.ebuild: |
80 |
|
81 |
|
82 |
|
83 |
1.1 media-video/vlc/vlc-0.9.9999.ebuild |
84 |
|
85 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/vlc/vlc-0.9.9999.ebuild?rev=1.1&view=markup |
86 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/vlc/vlc-0.9.9999.ebuild?rev=1.1&content-type=text/plain |
87 |
|
88 |
Index: vlc-0.9.9999.ebuild |
89 |
=================================================================== |
90 |
# Copyright 1999-2009 Gentoo Foundation |
91 |
# Distributed under the terms of the GNU General Public License v2 |
92 |
# $Header: /var/cvsroot/gentoo-x86/media-video/vlc/vlc-0.9.9999.ebuild,v 1.1 2009/02/27 10:34:43 aballier Exp $ |
93 |
|
94 |
EAPI="1" |
95 |
|
96 |
WANT_AUTOMAKE=latest |
97 |
WANT_AUTOCONF=latest |
98 |
|
99 |
SCM="" |
100 |
if [ "${PV%9999}" != "${PV}" ] ; then |
101 |
SCM=git |
102 |
EGIT_REPO_URI="git://git.videolan.org/vlc.git" |
103 |
EGIT_BOOTSTRAP="bootstrap" |
104 |
if [ "${PV%.9999}" != "${PV}" ] ; then |
105 |
EGIT_BRANCH=${PV%.9999}-bugfix |
106 |
else |
107 |
EGIT_BRANCH=master |
108 |
fi |
109 |
fi |
110 |
|
111 |
inherit eutils multilib autotools toolchain-funcs gnome2 nsplugins qt4 flag-o-matic ${SCM} |
112 |
|
113 |
MY_PV="${PV/_/-}" |
114 |
MY_PV="${MY_PV/-beta/-test}" |
115 |
MY_P="${PN}-${MY_PV}" |
116 |
VLC_SNAPSHOT_TIME="0013" |
117 |
|
118 |
PATCHLEVEL="59" |
119 |
M4_TARBALL_VERSION="1" |
120 |
DESCRIPTION="VLC media player - Video player and streamer" |
121 |
HOMEPAGE="http://www.videolan.org/vlc/" |
122 |
if [ "${PV%9999}" != "${PV}" ] ; then # Live ebuild |
123 |
SRC_URI="" |
124 |
elif [[ "${P}" == *_alpha* ]]; then # Snapshots taken from nightlies.videolan.org |
125 |
SRC_URI="http://nightlies.videolan.org/build/source/trunk-${PV/*_alpha/}-${VLC_SNAPSHOT_TIME}/${PN}-snapshot-${PV/*_alpha/}.tar.bz2" |
126 |
MY_P="${P/_alpha*/}-git" |
127 |
elif [[ "${MY_P}" == "${P}" ]]; then |
128 |
SRC_URI="http://download.videolan.org/pub/videolan/${PN}/${PV}/${P}.tar.bz2" |
129 |
else |
130 |
SRC_URI="http://download.videolan.org/pub/videolan/testing/${MY_P}/${MY_P}.tar.bz2" |
131 |
fi |
132 |
|
133 |
SRC_URI="${SRC_URI} |
134 |
mirror://gentoo/${PN}-patches-${PATCHLEVEL}.tar.bz2 |
135 |
mirror://gentoo/${PN}-m4-${M4_TARBALL_VERSION}.tar.bz2" |
136 |
|
137 |
LICENSE="GPL-2" |
138 |
SLOT="0" |
139 |
|
140 |
KEYWORDS="" |
141 |
IUSE="a52 aac aalib alsa altivec arts atmo avahi bidi cdda cddax cddb cdio dbus dc1394 |
142 |
debug dirac directfb dts dvb dvd esd fbcon fluidsynth +ffmpeg flac fontconfig ggi gnome gnutls hal httpd |
143 |
id3tag jack kate libass libcaca +libgcrypt libnotify libsysfs libv4l2 lirc live lua matroska mmx modplug mp3 mpeg |
144 |
musepack ncurses nsplugin ogg opengl optimisememory oss pda png pulseaudio pvr +qt4 |
145 |
remoteosd rtsp run-as-root samba schroedinger sdl sdl-image seamonkey shout skins speex sse stream svg svga taglib |
146 |
theora truetype twolame upnp v4l v4l2 vcdinfo vcdx vlm vorbis win32codecs |
147 |
X x264 xinerama xml xosd xv zvbi" |
148 |
|
149 |
RDEPEND=" |
150 |
sys-libs/zlib |
151 |
media-libs/libdvbpsi |
152 |
a52? ( >=media-libs/a52dec-0.7.4-r3 ) |
153 |
aalib? ( media-libs/aalib ) |
154 |
aac? ( >=media-libs/faad2-2.6.1 ) |
155 |
alsa? ( media-libs/alsa-lib ) |
156 |
arts? ( kde-base/arts ) |
157 |
avahi? ( >=net-dns/avahi-0.6 ) |
158 |
bidi? ( >=dev-libs/fribidi-0.10.4 ) |
159 |
cdda? ( cddb? ( >=media-libs/libcddb-1.2.0 ) ) |
160 |
cddax? ( cddb? ( >=media-libs/libcddb-1.2.0 ) ) |
161 |
cdio? ( >=dev-libs/libcdio-0.78.2 ) |
162 |
dbus? ( >=sys-apps/dbus-1.0.2 ) |
163 |
dc1394? ( sys-libs/libraw1394 |
164 |
<media-libs/libdc1394-1.9.99 ) |
165 |
dirac? ( >=media-video/dirac-0.10.0 ) |
166 |
directfb? ( dev-libs/DirectFB ) |
167 |
dts? ( media-libs/libdca ) |
168 |
dvd? ( media-libs/libdvdread |
169 |
media-libs/libdvdcss |
170 |
>=media-libs/libdvdnav-0.1.9 |
171 |
media-libs/libdvdplay ) |
172 |
esd? ( media-sound/esound ) |
173 |
ffmpeg? ( >=media-video/ffmpeg-0.4.9_p20090201 ) |
174 |
flac? ( media-libs/libogg |
175 |
>=media-libs/flac-1.1.2 ) |
176 |
fluidsynth? ( media-sound/fluidsynth ) |
177 |
fontconfig? ( media-libs/fontconfig ) |
178 |
ggi? ( media-libs/libggi ) |
179 |
gnome? ( gnome-base/gnome-vfs ) |
180 |
gnutls? ( >=net-libs/gnutls-1.3.3 ) |
181 |
hal? ( sys-apps/hal ) |
182 |
id3tag? ( media-libs/libid3tag |
183 |
sys-libs/zlib ) |
184 |
jack? ( >=media-sound/jack-audio-connection-kit-0.99.0-r1 ) |
185 |
kate? ( >=media-libs/libkate-0.1.1 ) |
186 |
libass? ( >=media-libs/libass-0.9.5 media-libs/fontconfig ) |
187 |
libcaca? ( media-libs/libcaca ) |
188 |
libgcrypt? ( >=dev-libs/libgcrypt-1.2.0 ) |
189 |
libnotify? ( x11-libs/libnotify ) |
190 |
libsysfs? ( sys-fs/sysfsutils ) |
191 |
lirc? ( app-misc/lirc ) |
192 |
live? ( >=media-plugins/live-2008.07.06 ) |
193 |
lua? ( >=dev-lang/lua-5.1 ) |
194 |
matroska? ( |
195 |
>=dev-libs/libebml-0.7.6 |
196 |
>=media-libs/libmatroska-0.8.0 ) |
197 |
modplug? ( media-libs/libmodplug ) |
198 |
mp3? ( media-libs/libmad ) |
199 |
mpeg? ( >=media-libs/libmpeg2-0.3.2 ) |
200 |
musepack? ( media-libs/libmpcdec ) |
201 |
ncurses? ( sys-libs/ncurses ) |
202 |
nsplugin? ( |
203 |
seamonkey? ( =www-client/seamonkey-1* ) |
204 |
!seamonkey? ( >=net-libs/xulrunner-1.8 ) |
205 |
) |
206 |
ogg? ( media-libs/libogg ) |
207 |
pda? ( x11-libs/gtk+:2 ) |
208 |
png? ( media-libs/libpng ) |
209 |
pulseaudio? ( >=media-sound/pulseaudio-0.9.8 ) |
210 |
qt4? ( || ( ( x11-libs/qt-gui x11-libs/qt-core ) =x11-libs/qt-4.3*:4 ) ) |
211 |
remoteosd? ( >=dev-libs/libgcrypt-1.2.0 ) |
212 |
samba? ( net-fs/samba ) |
213 |
schroedinger? ( >=media-libs/schroedinger-1.0 ) |
214 |
sdl? ( >=media-libs/libsdl-1.2.8 |
215 |
sdl-image? ( media-libs/sdl-image ) ) |
216 |
shout? ( media-libs/libshout ) |
217 |
skins? ( || ( ( x11-libs/qt-gui x11-libs/qt-core ) =x11-libs/qt-4.3*:4 ) ) |
218 |
speex? ( media-libs/speex ) |
219 |
svg? ( >=gnome-base/librsvg-2.9.0 ) |
220 |
svga? ( media-libs/svgalib ) |
221 |
taglib? ( media-libs/taglib ) |
222 |
theora? ( media-libs/libtheora ) |
223 |
truetype? ( media-libs/freetype |
224 |
media-fonts/ttf-bitstream-vera ) |
225 |
twolame? ( media-sound/twolame ) |
226 |
upnp? ( net-libs/libupnp ) |
227 |
v4l2? ( libv4l2? ( media-libs/libv4l ) ) |
228 |
vcdinfo? ( >=media-video/vcdimager-0.7.22 ) |
229 |
vorbis? ( media-libs/libvorbis ) |
230 |
win32codecs? ( media-libs/win32codecs ) |
231 |
X? ( |
232 |
x11-libs/libX11 |
233 |
x11-libs/libXext |
234 |
xv? ( x11-libs/libXv ) |
235 |
xinerama? ( x11-libs/libXinerama ) |
236 |
opengl? ( virtual/opengl ) |
237 |
) |
238 |
x264? ( media-libs/x264 ) |
239 |
xml? ( dev-libs/libxml2 ) |
240 |
xosd? ( x11-libs/xosd ) |
241 |
zvbi? ( >=media-libs/zvbi-0.2.25 ) |
242 |
" |
243 |
|
244 |
# Disabled features and reasons: |
245 |
# xvmc? ( x11-libs/libXvMC ) |
246 |
# Will probably compile only on x86 |
247 |
|
248 |
DEPEND="${RDEPEND} |
249 |
dvb? ( sys-kernel/linux-headers ) |
250 |
v4l? ( sys-kernel/linux-headers ) |
251 |
v4l2? ( sys-kernel/linux-headers ) |
252 |
X? ( xinerama? ( x11-proto/xineramaproto ) ) |
253 |
dev-util/pkgconfig" |
254 |
|
255 |
S="${WORKDIR}/${MY_P}" |
256 |
|
257 |
# Dispalys a warning if the first use flag is set but not the second |
258 |
vlc_use_needs() { |
259 |
use $1 && use !$2 && ewarn "USE=$1 requires $2, $1 will be disabled." |
260 |
} |
261 |
|
262 |
# Notify the user that some useflag have been forced on |
263 |
vlc_use_force() { |
264 |
use $1 && use !$2 && ewarn "USE=$1 requires $2, $2 will be enabled." |
265 |
} |
266 |
|
267 |
# Use when $2 depends strictly on $3 |
268 |
# if use $1 then enable $2 and $3, otherwise disable $2 |
269 |
vlc_use_enable_force() { |
270 |
if use $1 ; then |
271 |
echo "--enable-$2 --enable-$3" |
272 |
else |
273 |
echo "--disable-$2" |
274 |
fi |
275 |
} |
276 |
|
277 |
pkg_setup() { |
278 |
vlc_use_needs skins truetype |
279 |
vlc_use_force skins qt4 |
280 |
vlc_use_needs cddax cdio |
281 |
vlc_use_needs vcdx cdio |
282 |
vlc_use_needs vcdx vcdinfo |
283 |
vlc_use_needs vcdinfo cdio |
284 |
vlc_use_needs bidi truetype |
285 |
vlc_use_force remoteosd libgcrypt |
286 |
vlc_use_needs fontconfig truetype |
287 |
vlc_use_needs libv4l2 v4l2 |
288 |
use cddb && use !cdda && use !cddax && ewarn "USE=cddb requires either cdda or cddax, cddb will be disabled." |
289 |
if ( use qt4 || use skins ) ; then |
290 |
QT4_BUILT_WITH_USE_CHECK="png" qt4_pkg_setup |
291 |
else |
292 |
ewarn "You have disabled the qt4 useflag, ${PN} will not have any" |
293 |
ewarn "graphical interface. Maybe that is not what you want..." |
294 |
fi |
295 |
} |
296 |
|
297 |
src_unpack() { |
298 |
unpack ${A} |
299 |
if [ "${PV%9999}" != "${PV}" ] ; then |
300 |
git_src_unpack |
301 |
else |
302 |
cd "${S}" |
303 |
fi |
304 |
|
305 |
# Make it build with libtool 1.5 |
306 |
rm -f m4/lt* m4/libtool.m4 |
307 |
|
308 |
EPATCH_SUFFIX="patch" epatch "${WORKDIR}/patches" |
309 |
AT_M4DIR="m4 ${WORKDIR}/${PN}-m4" eautoreconf |
310 |
} |
311 |
|
312 |
src_compile () { |
313 |
|
314 |
# It would fail if -fforce-addr is used due to too few registers... |
315 |
use x86 && filter-flags -fforce-addr |
316 |
|
317 |
local MOZILLA_PC |
318 |
|
319 |
if use nsplugin; then |
320 |
if use seamonkey; then |
321 |
MOZILLA_PC=seamonkey-plugin |
322 |
else |
323 |
if has_version 'net-libs/xulrunner:1.9' ; then |
324 |
MOZILLA_PC=libxul |
325 |
else |
326 |
MOZILLA_PC=xulrunner-plugin |
327 |
fi |
328 |
fi |
329 |
fi |
330 |
|
331 |
econf \ |
332 |
$(use_enable a52) \ |
333 |
$(use_enable aalib aa) \ |
334 |
$(use_enable aac faad) \ |
335 |
$(use_enable alsa) \ |
336 |
$(use_enable altivec) \ |
337 |
$(use_enable arts) \ |
338 |
--disable-asademux \ |
339 |
$(use_enable atmo) \ |
340 |
$(use_enable avahi bonjour) \ |
341 |
$(use_enable bidi fribidi) \ |
342 |
$(use_enable cdda vcd) \ |
343 |
$(use_enable cddax)\ |
344 |
$(use_enable cddb libcddb) \ |
345 |
$(use_enable cdio libcdio) \ |
346 |
--disable-csri \ |
347 |
$(use_enable dbus) $(use_enable dbus dbus-control) \ |
348 |
$(use_enable dirac) \ |
349 |
$(use_enable directfb) \ |
350 |
$(use_enable dc1394) \ |
351 |
$(use_enable debug) \ |
352 |
$(use_enable dts dca) \ |
353 |
--disable-dv \ |
354 |
$(use_enable dvb) \ |
355 |
$(use_enable dvd dvdread) $(use_enable dvd dvdnav) \ |
356 |
$(use_enable esd) \ |
357 |
$(use_enable fbcon fb) \ |
358 |
$(use_enable ffmpeg avcodec) $(use_enable ffmpeg avformat) $(use_enable ffmpeg swscale) --disable-imgresample $(use_enable ffmpeg postproc) \ |
359 |
$(use_enable flac) \ |
360 |
$(use_enable fluidsynth) \ |
361 |
$(use_enable fontconfig) \ |
362 |
$(use_enable ggi) \ |
363 |
$(use_enable gnome gnomevfs) \ |
364 |
$(use_enable gnutls) \ |
365 |
$(use_enable hal) \ |
366 |
$(use_enable httpd) \ |
367 |
$(use_enable id3tag) \ |
368 |
$(use_enable jack) \ |
369 |
$(use_enable kate) \ |
370 |
$(use_enable libass) \ |
371 |
$(use_enable libcaca caca) \ |
372 |
$(use_enable libgcrypt) \ |
373 |
$(use_enable libnotify notify) \ |
374 |
--disable-libproxy \ |
375 |
--disable-libtar \ |
376 |
$(use_enable libsysfs) \ |
377 |
$(use_enable libv4l2) \ |
378 |
$(use_enable lirc) \ |
379 |
$(use_enable live live555) \ |
380 |
$(use_enable lua) \ |
381 |
$(use_enable matroska mkv) \ |
382 |
$(use_enable mmx) \ |
383 |
$(use_enable modplug mod) \ |
384 |
$(use_enable mp3 mad) \ |
385 |
$(use_enable mpeg libmpeg2) \ |
386 |
$(use_enable musepack mpc) \ |
387 |
$(use_enable ncurses) \ |
388 |
$(use_enable nsplugin mozilla) --with-mozilla-pkg="${MOZILLA_PC}" \ |
389 |
$(use_enable ogg) \ |
390 |
$(use_enable opengl glx) $(use_enable opengl) $(use_enable opengl galaktos) \ |
391 |
$(use_enable optimisememory optimize-memory) \ |
392 |
$(use_enable oss) \ |
393 |
$(use_enable pda) \ |
394 |
$(use_enable png) \ |
395 |
--disable-portaudio \ |
396 |
$(use_enable pulseaudio pulse) \ |
397 |
$(use_enable pvr) \ |
398 |
$(use_enable qt4) \ |
399 |
$(use_enable rtsp realrtsp) \ |
400 |
$(use_enable run-as-root) \ |
401 |
$(use_enable samba smb) \ |
402 |
$(use_enable schroedinger) \ |
403 |
$(use_enable sdl) \ |
404 |
$(use_enable sdl-image) \ |
405 |
$(use_enable shout) \ |
406 |
$(use_enable skins skins2) \ |
407 |
$(use_enable speex) \ |
408 |
$(use_enable sse) \ |
409 |
$(use_enable stream sout) \ |
410 |
$(use_enable svg) \ |
411 |
$(use_enable svga svgalib) \ |
412 |
$(use_enable taglib) \ |
413 |
$(use_enable theora) \ |
414 |
$(use_enable truetype freetype) \ |
415 |
$(use_enable twolame) \ |
416 |
$(use_enable upnp) \ |
417 |
$(use_enable v4l) \ |
418 |
$(use_enable v4l2) \ |
419 |
$(use_enable vcdinfo) \ |
420 |
$(use_enable vcdx) \ |
421 |
$(use_enable vorbis) \ |
422 |
$(use_enable win32codecs loader) \ |
423 |
$(use_enable X x11) $(use_enable X screen) \ |
424 |
$(use_enable x264) \ |
425 |
$(use_enable xinerama) \ |
426 |
$(use_enable xml libxml2) \ |
427 |
$(use_enable xosd) \ |
428 |
$(use_enable xv xvideo) \ |
429 |
--disable-xvmc \ |
430 |
$(use_enable zvbi) \ |
431 |
--disable-snapshot \ |
432 |
--disable-growl \ |
433 |
--disable-optimizations \ |
434 |
--enable-fast-install \ |
435 |
$(vlc_use_enable_force vlm vlm sout) \ |
436 |
$(vlc_use_enable_force skins skins2 qt4) \ |
437 |
$(vlc_use_enable_force remoteosd remoteosd libgcrypt) |
438 |
|
439 |
emake || die "make of VLC failed" |
440 |
} |
441 |
|
442 |
src_install() { |
443 |
emake DESTDIR="${D}" install || die "make install failed" |
444 |
|
445 |
dodoc AUTHORS MAINTAINERS HACKING THANKS NEWS README \ |
446 |
doc/fortunes.txt doc/intf-cdda.txt doc/intf-vcd.txt |
447 |
|
448 |
rm -rf "${D}/usr/share/doc/vlc" \ |
449 |
"${D}"/usr/share/vlc/vlc{16x16,32x32,48x48,128x128}.{png,xpm,ico} |
450 |
|
451 |
if use nsplugin; then |
452 |
dodir "/usr/$(get_libdir)/${PLUGINS_DIR}" |
453 |
mv "${D}"/usr/$(get_libdir)/mozilla/plugins/* \ |
454 |
"${D}/usr/$(get_libdir)/${PLUGINS_DIR}/" |
455 |
fi |
456 |
|
457 |
use skins || rm -rf "${D}/usr/share/vlc/skins2" |
458 |
|
459 |
for res in 16 32 48; do |
460 |
insinto /usr/share/icons/hicolor/${res}x${res}/apps/ |
461 |
newins "${S}"/share/vlc${res}x${res}.png vlc.png |
462 |
done |
463 |
} |
464 |
|
465 |
|
466 |
|
467 |
1.1 media-video/vlc/vlc-9999.ebuild |
468 |
|
469 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/vlc/vlc-9999.ebuild?rev=1.1&view=markup |
470 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/vlc/vlc-9999.ebuild?rev=1.1&content-type=text/plain |
471 |
|
472 |
Index: vlc-9999.ebuild |
473 |
=================================================================== |
474 |
# Copyright 1999-2009 Gentoo Foundation |
475 |
# Distributed under the terms of the GNU General Public License v2 |
476 |
# $Header: /var/cvsroot/gentoo-x86/media-video/vlc/vlc-9999.ebuild,v 1.1 2009/02/27 10:34:43 aballier Exp $ |
477 |
|
478 |
EAPI="1" |
479 |
|
480 |
WANT_AUTOMAKE=latest |
481 |
WANT_AUTOCONF=latest |
482 |
|
483 |
SCM="" |
484 |
if [ "${PV%9999}" != "${PV}" ] ; then |
485 |
SCM=git |
486 |
EGIT_REPO_URI="git://git.videolan.org/vlc.git" |
487 |
EGIT_BOOTSTRAP="bootstrap" |
488 |
if [ "${PV%.9999}" != "${PV}" ] ; then |
489 |
EGIT_BRANCH=${PV%.9999}-bugfix |
490 |
else |
491 |
EGIT_BRANCH=master |
492 |
fi |
493 |
fi |
494 |
|
495 |
inherit eutils multilib autotools toolchain-funcs gnome2 nsplugins qt4 flag-o-matic ${SCM} |
496 |
|
497 |
MY_PV="${PV/_/-}" |
498 |
MY_PV="${MY_PV/-beta/-test}" |
499 |
MY_P="${PN}-${MY_PV}" |
500 |
VLC_SNAPSHOT_TIME="0013" |
501 |
|
502 |
PATCHLEVEL="59" |
503 |
M4_TARBALL_VERSION="1" |
504 |
DESCRIPTION="VLC media player - Video player and streamer" |
505 |
HOMEPAGE="http://www.videolan.org/vlc/" |
506 |
if [ "${PV%9999}" != "${PV}" ] ; then # Live ebuild |
507 |
SRC_URI="" |
508 |
elif [[ "${P}" == *_alpha* ]]; then # Snapshots taken from nightlies.videolan.org |
509 |
SRC_URI="http://nightlies.videolan.org/build/source/trunk-${PV/*_alpha/}-${VLC_SNAPSHOT_TIME}/${PN}-snapshot-${PV/*_alpha/}.tar.bz2" |
510 |
MY_P="${P/_alpha*/}-git" |
511 |
elif [[ "${MY_P}" == "${P}" ]]; then |
512 |
SRC_URI="http://download.videolan.org/pub/videolan/${PN}/${PV}/${P}.tar.bz2" |
513 |
else |
514 |
SRC_URI="http://download.videolan.org/pub/videolan/testing/${MY_P}/${MY_P}.tar.bz2" |
515 |
fi |
516 |
|
517 |
SRC_URI="${SRC_URI} |
518 |
mirror://gentoo/${PN}-patches-${PATCHLEVEL}.tar.bz2 |
519 |
mirror://gentoo/${PN}-m4-${M4_TARBALL_VERSION}.tar.bz2" |
520 |
|
521 |
LICENSE="GPL-2" |
522 |
SLOT="0" |
523 |
|
524 |
KEYWORDS="" |
525 |
IUSE="a52 aac aalib alsa altivec atmo avahi bidi cdda cddax cddb cdio dbus dc1394 |
526 |
debug dirac directfb dts dvb dvd fbcon fluidsynth +ffmpeg flac fontconfig ggi gnome gnutls hal httpd |
527 |
id3tag jack kate libass libcaca +libgcrypt libnotify libsysfs libv4l2 lirc live lua matroska mmx modplug mp3 mpeg mtp |
528 |
musepack ncurses nsplugin ogg opengl optimisememory oss pda png pulseaudio pvr +qt4 |
529 |
remoteosd rtsp run-as-root samba schroedinger sdl sdl-image seamonkey shine shout skins speex sse stream svg svga taglib |
530 |
theora truetype twolame upnp v4l v4l2 vcdinfo vcdx vlm vorbis win32codecs wma-fixed |
531 |
X x264 xinerama xml xosd xv zvbi" |
532 |
|
533 |
RDEPEND=" |
534 |
sys-libs/zlib |
535 |
media-libs/libdvbpsi |
536 |
a52? ( >=media-libs/a52dec-0.7.4-r3 ) |
537 |
aalib? ( media-libs/aalib ) |
538 |
aac? ( >=media-libs/faad2-2.6.1 ) |
539 |
alsa? ( media-libs/alsa-lib ) |
540 |
avahi? ( >=net-dns/avahi-0.6 ) |
541 |
bidi? ( >=dev-libs/fribidi-0.10.4 ) |
542 |
cdda? ( cddb? ( >=media-libs/libcddb-1.2.0 ) ) |
543 |
cddax? ( cddb? ( >=media-libs/libcddb-1.2.0 ) ) |
544 |
cdio? ( >=dev-libs/libcdio-0.78.2 ) |
545 |
dbus? ( >=sys-apps/dbus-1.0.2 ) |
546 |
dc1394? ( sys-libs/libraw1394 |
547 |
<media-libs/libdc1394-1.9.99 ) |
548 |
dirac? ( >=media-video/dirac-0.10.0 ) |
549 |
directfb? ( dev-libs/DirectFB ) |
550 |
dts? ( media-libs/libdca ) |
551 |
dvd? ( media-libs/libdvdread |
552 |
media-libs/libdvdcss |
553 |
>=media-libs/libdvdnav-0.1.9 |
554 |
media-libs/libdvdplay ) |
555 |
ffmpeg? ( >=media-video/ffmpeg-0.4.9_p20090201 ) |
556 |
flac? ( media-libs/libogg |
557 |
>=media-libs/flac-1.1.2 ) |
558 |
fluidsynth? ( media-sound/fluidsynth ) |
559 |
fontconfig? ( media-libs/fontconfig ) |
560 |
ggi? ( media-libs/libggi ) |
561 |
gnome? ( gnome-base/gnome-vfs ) |
562 |
gnutls? ( >=net-libs/gnutls-1.3.3 ) |
563 |
hal? ( sys-apps/hal ) |
564 |
id3tag? ( media-libs/libid3tag |
565 |
sys-libs/zlib ) |
566 |
jack? ( >=media-sound/jack-audio-connection-kit-0.99.0-r1 ) |
567 |
kate? ( >=media-libs/libkate-0.1.1 ) |
568 |
libass? ( >=media-libs/libass-0.9.5 media-libs/fontconfig ) |
569 |
libcaca? ( media-libs/libcaca ) |
570 |
libgcrypt? ( >=dev-libs/libgcrypt-1.2.0 ) |
571 |
libnotify? ( x11-libs/libnotify ) |
572 |
libsysfs? ( sys-fs/sysfsutils ) |
573 |
lirc? ( app-misc/lirc ) |
574 |
live? ( >=media-plugins/live-2008.07.06 ) |
575 |
lua? ( >=dev-lang/lua-5.1 ) |
576 |
matroska? ( |
577 |
>=dev-libs/libebml-0.7.6 |
578 |
>=media-libs/libmatroska-0.8.0 ) |
579 |
modplug? ( media-libs/libmodplug ) |
580 |
mp3? ( media-libs/libmad ) |
581 |
mpeg? ( >=media-libs/libmpeg2-0.3.2 ) |
582 |
mtp? ( >=media-libs/libmtp-0.3.0 ) |
583 |
musepack? ( media-libs/libmpcdec ) |
584 |
ncurses? ( sys-libs/ncurses ) |
585 |
nsplugin? ( |
586 |
seamonkey? ( =www-client/seamonkey-1* ) |
587 |
!seamonkey? ( >=net-libs/xulrunner-1.8 ) |
588 |
) |
589 |
ogg? ( media-libs/libogg ) |
590 |
pda? ( x11-libs/gtk+:2 ) |
591 |
png? ( media-libs/libpng ) |
592 |
pulseaudio? ( >=media-sound/pulseaudio-0.9.8 ) |
593 |
qt4? ( || ( ( x11-libs/qt-gui x11-libs/qt-core ) =x11-libs/qt-4.3*:4 ) ) |
594 |
remoteosd? ( >=dev-libs/libgcrypt-1.2.0 ) |
595 |
samba? ( net-fs/samba ) |
596 |
schroedinger? ( >=media-libs/schroedinger-1.0 ) |
597 |
sdl? ( >=media-libs/libsdl-1.2.8 |
598 |
sdl-image? ( media-libs/sdl-image ) ) |
599 |
shout? ( media-libs/libshout ) |
600 |
skins? ( || ( ( x11-libs/qt-gui x11-libs/qt-core ) =x11-libs/qt-4.3*:4 ) ) |
601 |
speex? ( media-libs/speex ) |
602 |
svg? ( >=gnome-base/librsvg-2.9.0 ) |
603 |
svga? ( media-libs/svgalib ) |
604 |
taglib? ( media-libs/taglib ) |
605 |
theora? ( media-libs/libtheora ) |
606 |
truetype? ( media-libs/freetype |
607 |
media-fonts/ttf-bitstream-vera ) |
608 |
twolame? ( media-sound/twolame ) |
609 |
upnp? ( net-libs/libupnp ) |
610 |
v4l2? ( libv4l2? ( media-libs/libv4l ) ) |
611 |
vcdinfo? ( >=media-video/vcdimager-0.7.22 ) |
612 |
vorbis? ( media-libs/libvorbis ) |
613 |
win32codecs? ( media-libs/win32codecs ) |
614 |
X? ( |
615 |
x11-libs/libX11 |
616 |
x11-libs/libXext |
617 |
xv? ( x11-libs/libXv ) |
618 |
xinerama? ( x11-libs/libXinerama ) |
619 |
opengl? ( virtual/opengl ) |
620 |
) |
621 |
x264? ( media-libs/x264 ) |
622 |
xml? ( dev-libs/libxml2 ) |
623 |
xosd? ( x11-libs/xosd ) |
624 |
zvbi? ( >=media-libs/zvbi-0.2.25 ) |
625 |
" |
626 |
|
627 |
# Disabled features and reasons: |
628 |
# xvmc? ( x11-libs/libXvMC ) |
629 |
# Will probably compile only on x86 |
630 |
|
631 |
DEPEND="${RDEPEND} |
632 |
dvb? ( sys-kernel/linux-headers ) |
633 |
v4l? ( sys-kernel/linux-headers ) |
634 |
v4l2? ( sys-kernel/linux-headers ) |
635 |
X? ( xinerama? ( x11-proto/xineramaproto ) ) |
636 |
dev-util/pkgconfig" |
637 |
|
638 |
S="${WORKDIR}/${MY_P}" |
639 |
|
640 |
# Dispalys a warning if the first use flag is set but not the second |
641 |
vlc_use_needs() { |
642 |
use $1 && use !$2 && ewarn "USE=$1 requires $2, $1 will be disabled." |
643 |
} |
644 |
|
645 |
# Notify the user that some useflag have been forced on |
646 |
vlc_use_force() { |
647 |
use $1 && use !$2 && ewarn "USE=$1 requires $2, $2 will be enabled." |
648 |
} |
649 |
|
650 |
# Use when $2 depends strictly on $3 |
651 |
# if use $1 then enable $2 and $3, otherwise disable $2 |
652 |
vlc_use_enable_force() { |
653 |
if use $1 ; then |
654 |
echo "--enable-$2 --enable-$3" |
655 |
else |
656 |
echo "--disable-$2" |
657 |
fi |
658 |
} |
659 |
|
660 |
pkg_setup() { |
661 |
vlc_use_needs skins truetype |
662 |
vlc_use_force skins qt4 |
663 |
vlc_use_needs cddax cdio |
664 |
vlc_use_needs vcdx cdio |
665 |
vlc_use_needs vcdx vcdinfo |
666 |
vlc_use_needs vcdinfo cdio |
667 |
vlc_use_needs bidi truetype |
668 |
vlc_use_force remoteosd libgcrypt |
669 |
vlc_use_needs fontconfig truetype |
670 |
vlc_use_needs libv4l2 v4l2 |
671 |
use cddb && use !cdda && use !cddax && ewarn "USE=cddb requires either cdda or cddax, cddb will be disabled." |
672 |
if ( use qt4 || use skins ) ; then |
673 |
QT4_BUILT_WITH_USE_CHECK="png" qt4_pkg_setup |
674 |
else |
675 |
ewarn "You have disabled the qt4 useflag, ${PN} will not have any" |
676 |
ewarn "graphical interface. Maybe that is not what you want..." |
677 |
fi |
678 |
} |
679 |
|
680 |
src_unpack() { |
681 |
unpack ${A} |
682 |
if [ "${PV%9999}" != "${PV}" ] ; then |
683 |
git_src_unpack |
684 |
else |
685 |
cd "${S}" |
686 |
fi |
687 |
|
688 |
# Make it build with libtool 1.5 |
689 |
rm -f m4/lt* m4/libtool.m4 |
690 |
|
691 |
EPATCH_SUFFIX="patch" epatch "${WORKDIR}/patches" |
692 |
AT_M4DIR="m4 ${WORKDIR}/${PN}-m4" eautoreconf |
693 |
} |
694 |
|
695 |
src_compile () { |
696 |
|
697 |
# It would fail if -fforce-addr is used due to too few registers... |
698 |
use x86 && filter-flags -fforce-addr |
699 |
|
700 |
local MOZILLA_PC |
701 |
|
702 |
if use nsplugin; then |
703 |
if use seamonkey; then |
704 |
MOZILLA_PC=seamonkey-plugin |
705 |
else |
706 |
if has_version 'net-libs/xulrunner:1.9' ; then |
707 |
MOZILLA_PC=libxul |
708 |
else |
709 |
MOZILLA_PC=xulrunner-plugin |
710 |
fi |
711 |
fi |
712 |
fi |
713 |
|
714 |
econf \ |
715 |
$(use_enable a52) \ |
716 |
$(use_enable aalib aa) \ |
717 |
$(use_enable aac faad) \ |
718 |
$(use_enable alsa) \ |
719 |
$(use_enable altivec) \ |
720 |
--disable-asademux \ |
721 |
$(use_enable atmo) \ |
722 |
$(use_enable avahi bonjour) \ |
723 |
$(use_enable bidi fribidi) \ |
724 |
$(use_enable cdda vcd) \ |
725 |
$(use_enable cddax)\ |
726 |
$(use_enable cddb libcddb) \ |
727 |
$(use_enable cdio libcdio) \ |
728 |
--disable-csri \ |
729 |
$(use_enable dbus) $(use_enable dbus dbus-control) \ |
730 |
$(use_enable dirac) \ |
731 |
$(use_enable directfb) \ |
732 |
$(use_enable dc1394) \ |
733 |
$(use_enable debug) \ |
734 |
$(use_enable dts dca) \ |
735 |
--disable-dv \ |
736 |
$(use_enable dvb) \ |
737 |
$(use_enable dvd dvdread) $(use_enable dvd dvdnav) \ |
738 |
$(use_enable fbcon fb) \ |
739 |
$(use_enable ffmpeg avcodec) $(use_enable ffmpeg avformat) $(use_enable ffmpeg swscale) --disable-imgresample $(use_enable ffmpeg postproc) \ |
740 |
$(use_enable flac) \ |
741 |
$(use_enable fluidsynth) \ |
742 |
$(use_enable fontconfig) \ |
743 |
$(use_enable ggi) \ |
744 |
$(use_enable gnome gnomevfs) \ |
745 |
$(use_enable gnutls) \ |
746 |
$(use_enable hal) \ |
747 |
$(use_enable httpd) \ |
748 |
$(use_enable id3tag) \ |
749 |
$(use_enable jack) \ |
750 |
$(use_enable kate) \ |
751 |
$(use_enable libass) \ |
752 |
$(use_enable libcaca caca) \ |
753 |
$(use_enable libgcrypt) \ |
754 |
$(use_enable libnotify notify) \ |
755 |
--disable-libproxy \ |
756 |
--disable-libtar \ |
757 |
$(use_enable libsysfs) \ |
758 |
$(use_enable libv4l2) \ |
759 |
$(use_enable lirc) \ |
760 |
$(use_enable live live555) \ |
761 |
$(use_enable lua) \ |
762 |
$(use_enable matroska mkv) \ |
763 |
$(use_enable mmx) \ |
764 |
$(use_enable modplug mod) \ |
765 |
$(use_enable mp3 mad) \ |
766 |
$(use_enable mpeg libmpeg2) \ |
767 |
$(use_enable mtp) \ |
768 |
$(use_enable musepack mpc) \ |
769 |
$(use_enable ncurses) \ |
770 |
$(use_enable nsplugin mozilla) --with-mozilla-pkg="${MOZILLA_PC}" \ |
771 |
$(use_enable ogg) \ |
772 |
$(use_enable opengl glx) $(use_enable opengl) $(use_enable opengl galaktos) \ |
773 |
$(use_enable optimisememory optimize-memory) \ |
774 |
$(use_enable oss) \ |
775 |
$(use_enable pda) \ |
776 |
$(use_enable png) \ |
777 |
--disable-portaudio \ |
778 |
$(use_enable pulseaudio pulse) \ |
779 |
$(use_enable pvr) \ |
780 |
$(use_enable qt4) \ |
781 |
$(use_enable rtsp realrtsp) \ |
782 |
$(use_enable run-as-root) \ |
783 |
$(use_enable samba smb) \ |
784 |
$(use_enable schroedinger) \ |
785 |
$(use_enable sdl) \ |
786 |
$(use_enable sdl-image) \ |
787 |
$(use_enable shine) \ |
788 |
$(use_enable shout) \ |
789 |
$(use_enable skins skins2) \ |
790 |
$(use_enable speex) \ |
791 |
$(use_enable sse) \ |
792 |
$(use_enable stream sout) \ |
793 |
$(use_enable svg) \ |
794 |
$(use_enable svga svgalib) \ |
795 |
$(use_enable taglib) \ |
796 |
$(use_enable theora) \ |
797 |
$(use_enable truetype freetype) \ |
798 |
$(use_enable twolame) \ |
799 |
$(use_enable upnp) \ |
800 |
$(use_enable v4l) \ |
801 |
$(use_enable v4l2) \ |
802 |
$(use_enable vcdinfo) \ |
803 |
$(use_enable vcdx) \ |
804 |
$(use_enable vorbis) \ |
805 |
$(use_enable win32codecs loader) \ |
806 |
$(use_enable wma-fixed) \ |
807 |
$(use_enable X x11) $(use_enable X screen) \ |
808 |
$(use_enable x264) \ |
809 |
$(use_enable xinerama) \ |
810 |
$(use_enable xml libxml2) \ |
811 |
$(use_enable xosd) \ |
812 |
$(use_enable xv xvideo) \ |
813 |
--disable-xvmc \ |
814 |
$(use_enable zvbi) \ |
815 |
--disable-snapshot \ |
816 |
--disable-growl \ |
817 |
--disable-optimizations \ |
818 |
--enable-fast-install \ |
819 |
$(vlc_use_enable_force vlm vlm sout) \ |
820 |
$(vlc_use_enable_force skins skins2 qt4) \ |
821 |
$(vlc_use_enable_force remoteosd remoteosd libgcrypt) |
822 |
|
823 |
emake || die "make of VLC failed" |
824 |
} |
825 |
|
826 |
src_install() { |
827 |
emake DESTDIR="${D}" install || die "make install failed" |
828 |
|
829 |
dodoc AUTHORS MAINTAINERS HACKING THANKS NEWS README \ |
830 |
doc/fortunes.txt doc/intf-cdda.txt doc/intf-vcd.txt |
831 |
|
832 |
rm -rf "${D}/usr/share/doc/vlc" \ |
833 |
"${D}"/usr/share/vlc/vlc{16x16,32x32,48x48,128x128}.{png,xpm,ico} |
834 |
|
835 |
if use nsplugin; then |
836 |
dodir "/usr/$(get_libdir)/${PLUGINS_DIR}" |
837 |
mv "${D}"/usr/$(get_libdir)/mozilla/plugins/* \ |
838 |
"${D}/usr/$(get_libdir)/${PLUGINS_DIR}/" |
839 |
fi |
840 |
|
841 |
use skins || rm -rf "${D}/usr/share/vlc/skins2" |
842 |
|
843 |
for res in 16 32 48; do |
844 |
insinto /usr/share/icons/hicolor/${res}x${res}/apps/ |
845 |
newins "${S}"/share/vlc${res}x${res}.png vlc.png |
846 |
done |
847 |
} |