Gentoo Archives: gentoo-commits

From: "Tom Wijsman (tomwij)" <tomwij@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-video/vlc: metadata.xml ChangeLog vlc-2.1.9999.ebuild vlc-2.0.9999.ebuild
Date: Sat, 26 Oct 2013 05:53:51
Message-Id: 20131026055346.6982920047@flycatcher.gentoo.org
1 tomwij 13/10/26 05:53:46
2
3 Modified: metadata.xml ChangeLog vlc-2.0.9999.ebuild
4 Added: vlc-2.1.9999.ebuild
5 Log:
6 Updated 2.0.9999 and added 2.1.9999 by backporting fixes from 9999; adapted 2.0.9999 to work for the 2.0 branch, disabled opencv support because it breaks against current ~ versions of opencv and requires multiple commits to be backported.
7
8 (Portage version: HEAD/cvs/Linux x86_64, signed Manifest commit with key 6D34E57D)
9
10 Revision Changes Path
11 1.71 media-video/vlc/metadata.xml
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/vlc/metadata.xml?rev=1.71&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/vlc/metadata.xml?rev=1.71&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/vlc/metadata.xml?r1=1.70&r2=1.71
16
17 Index: metadata.xml
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/media-video/vlc/metadata.xml,v
20 retrieving revision 1.70
21 retrieving revision 1.71
22 diff -u -r1.70 -r1.71
23 --- metadata.xml 21 Oct 2013 19:15:29 -0000 1.70
24 +++ metadata.xml 26 Oct 2013 05:53:46 -0000 1.71
25 @@ -70,6 +70,7 @@
26 <flag name="upnp">Enables support for Intel UPnP stack.</flag>
27 <flag name="vaapi">Enables VAAPI (Video Acceleration API) for hardware decoding</flag>
28 <flag name="vcdx">Enables VCD with navigation via libvcdinfo (depends on cdio)</flag>
29 + <flag name="visual">Enables a libvisual based visualization plugin.</flag>
30 <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>
31 <flag name="vpx">Enables the decoder(s) from the WebM VP8 / VP9 Codec SDK.</flag>
32 <flag name="waveout">Enable win32 waveOut plugin.</flag>
33
34
35
36 1.858 media-video/vlc/ChangeLog
37
38 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/vlc/ChangeLog?rev=1.858&view=markup
39 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/vlc/ChangeLog?rev=1.858&content-type=text/plain
40 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/vlc/ChangeLog?r1=1.857&r2=1.858
41
42 Index: ChangeLog
43 ===================================================================
44 RCS file: /var/cvsroot/gentoo-x86/media-video/vlc/ChangeLog,v
45 retrieving revision 1.857
46 retrieving revision 1.858
47 diff -u -r1.857 -r1.858
48 --- ChangeLog 24 Oct 2013 23:40:49 -0000 1.857
49 +++ ChangeLog 26 Oct 2013 05:53:46 -0000 1.858
50 @@ -1,6 +1,16 @@
51 # ChangeLog for media-video/vlc
52 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
53 -# $Header: /var/cvsroot/gentoo-x86/media-video/vlc/ChangeLog,v 1.857 2013/10/24 23:40:49 tomwij Exp $
54 +# $Header: /var/cvsroot/gentoo-x86/media-video/vlc/ChangeLog,v 1.858 2013/10/26 05:53:46 tomwij Exp $
55 +
56 +*vlc-2.1.9999 (26 Oct 2013)
57 +
58 + 26 Oct 2013; Tom Wijsman <TomWij@g.o>
59 + +files/vlc-2.0.8-freetype-proper-default-font.patch, +vlc-2.1.9999.ebuild,
60 + metadata.xml, vlc-2.0.9999.ebuild:
61 + Updated 2.0.9999 and added 2.1.9999 by backporting fixes from 9999; adapted
62 + 2.0.9999 to work for the 2.0 branch, disabled opencv support because it breaks
63 + against current ~ versions of opencv and requires multiple commits to be
64 + backported.
65
66 24 Oct 2013; Tom Wijsman <TomWij@g.o>
67 +files/vlc-2.1.0-fix-libtremor-libs.patch, vlc-9999.ebuild:
68
69
70
71 1.26 media-video/vlc/vlc-2.0.9999.ebuild
72
73 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/vlc/vlc-2.0.9999.ebuild?rev=1.26&view=markup
74 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/vlc/vlc-2.0.9999.ebuild?rev=1.26&content-type=text/plain
75 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/vlc/vlc-2.0.9999.ebuild?r1=1.25&r2=1.26
76
77 Index: vlc-2.0.9999.ebuild
78 ===================================================================
79 RCS file: /var/cvsroot/gentoo-x86/media-video/vlc/vlc-2.0.9999.ebuild,v
80 retrieving revision 1.25
81 retrieving revision 1.26
82 diff -u -r1.25 -r1.26
83 --- vlc-2.0.9999.ebuild 11 Aug 2013 22:57:34 -0000 1.25
84 +++ vlc-2.0.9999.ebuild 26 Oct 2013 05:53:46 -0000 1.26
85 @@ -1,13 +1,13 @@
86 # Copyright 1999-2013 Gentoo Foundation
87 # Distributed under the terms of the GNU General Public License v2
88 -# $Header: /var/cvsroot/gentoo-x86/media-video/vlc/vlc-2.0.9999.ebuild,v 1.25 2013/08/11 22:57:34 aballier Exp $
89 +# $Header: /var/cvsroot/gentoo-x86/media-video/vlc/vlc-2.0.9999.ebuild,v 1.26 2013/10/26 05:53:46 tomwij Exp $
90
91 EAPI="5"
92
93 SCM=""
94 if [ "${PV%9999}" != "${PV}" ] ; then
95 - SCM=git-2
96 - EGIT_BOOTSTRAP="bootstrap"
97 + SCM="git-r3"
98 +
99 if [ "${PV%.9999}" != "${PV}" ] ; then
100 EGIT_REPO_URI="git://git.videolan.org/vlc/vlc-${PV%.9999}.git"
101 else
102 @@ -39,6 +39,7 @@
103 else
104 KEYWORDS=""
105 fi
106 +
107 IUSE="a52 aac aalib alsa altivec atmo +audioqueue avahi +avcodec
108 +avformat bidi bluray cdda cddb dbus dc1394 debug dirac direct2d
109 directfb directx dshow dts dvb +dvbpsi dvd dxva2 elibc_glibc egl +encode
110 @@ -47,107 +48,116 @@
111 libproxy libsamplerate libtiger linsys libtar lirc live lua +macosx
112 +macosx-audio +macosx-dialog-provider +macosx-eyetv +macosx-quartztext
113 +macosx-qtkit +macosx-vout matroska media-library mmx modplug mp3 mpeg
114 - mtp musepack ncurses neon ogg omxil opengl optimisememory oss png portaudio
115 - +postproc projectm pulseaudio pvr +qt4 rtsp run-as-root samba schroedinger
116 - sdl sdl-image shine shout sid skins speex sqlite sse svg +swscale switcher
117 - taglib theora truetype twolame udev upnp vaapi v4l vcdx vlm vorbis waveout
118 - wingdi wma-fixed +X x264 +xcb xml xosd xv zvbi"
119 + mtp musepack ncurses neon ogg omxil opengl optimisememory opus oss
120 + png portaudio +postproc projectm pulseaudio pvr qt4 rtsp run-as-root samba
121 + schroedinger sdl sdl-image sftp shine shout sid skins speex sqlite sse svg
122 + +swscale switcher taglib theora tremor truetype twolame udev upnp vaapi v4l
123 + vcdx visual vlm vorbis waveout wingdi wma-fixed +X x264 +xcb xml xosd xv
124 + zvbi"
125
126 RDEPEND="
127 - >=sys-libs/zlib-1.2.5.1-r2[minizip]
128 - a52? ( >=media-libs/a52dec-0.7.4-r3 )
129 - aalib? ( media-libs/aalib )
130 - aac? ( >=media-libs/faad2-2.6.1 )
131 - alsa? ( >=media-libs/alsa-lib-1.0.23 )
132 - avahi? ( >=net-dns/avahi-0.6[dbus] )
133 - avcodec? ( virtual/ffmpeg )
134 - avformat? ( virtual/ffmpeg )
135 - bidi? ( >=dev-libs/fribidi-0.10.4 )
136 - bluray? ( >=media-libs/libbluray-0.2.1 )
137 - cddb? ( >=media-libs/libcddb-1.2.0 )
138 - dbus? ( >=sys-apps/dbus-1.0.2 )
139 - dc1394? ( >=sys-libs/libraw1394-2.0.1 >=media-libs/libdc1394-2.0.2 )
140 - dirac? ( >=media-video/dirac-0.10.0 )
141 - directfb? ( dev-libs/DirectFB sys-libs/zlib )
142 - dts? ( media-libs/libdca )
143 - dvbpsi? ( >=media-libs/libdvbpsi-0.2.1 )
144 - dvd? ( media-libs/libdvdread >=media-libs/libdvdnav-0.1.9 )
145 - egl? ( virtual/opengl )
146 - elibc_glibc? ( >=sys-libs/glibc-2.8 )
147 - flac? ( media-libs/libogg >=media-libs/flac-1.1.2 )
148 - fluidsynth? ( media-sound/fluidsynth )
149 - fontconfig? ( media-libs/fontconfig )
150 - gcrypt? ( >=dev-libs/libgcrypt-1.2.0 )
151 - gme? ( media-libs/game-music-emu )
152 - gnome? ( gnome-base/gnome-vfs )
153 - gnutls? ( >=net-libs/gnutls-2.0.0 )
154 - ieee1394? ( >=sys-libs/libraw1394-2.0.1 >=sys-libs/libavc1394-0.5.3 )
155 - ios-vout? ( virtual/opengl )
156 - jack? ( >=media-sound/jack-audio-connection-kit-0.99.0-r1 )
157 - kate? ( >=media-libs/libkate-0.1.1 )
158 - libass? ( >=media-libs/libass-0.9.8 media-libs/fontconfig )
159 - libcaca? ( >=media-libs/libcaca-0.99_beta14 )
160 - libnotify? ( x11-libs/libnotify x11-libs/gtk+:2 )
161 - libproxy? ( net-libs/libproxy )
162 - libsamplerate? ( media-libs/libsamplerate )
163 - libtar? ( >=dev-libs/libtar-1.2.11-r3 )
164 - libtiger? ( media-libs/libtiger )
165 - linsys? ( >=media-libs/zvbi-0.2.28 )
166 - lirc? ( app-misc/lirc )
167 - live? ( >=media-plugins/live-2011.12.23 )
168 - lua? ( >=dev-lang/lua-5.1 )
169 - macosx-vout? ( virtual/opengl )
170 - matroska? ( >=dev-libs/libebml-1.0.0 >=media-libs/libmatroska-1.0.0 )
171 - modplug? ( >=media-libs/libmodplug-0.8.8.1 )
172 - mp3? ( media-libs/libmad )
173 - mpeg? ( >=media-libs/libmpeg2-0.3.2 )
174 - mtp? ( >=media-libs/libmtp-1.0.0 )
175 - musepack? ( >=media-sound/musepack-tools-444 )
176 - ncurses? ( sys-libs/ncurses[unicode] )
177 - ogg? ( media-libs/libogg )
178 - opengl? ( virtual/opengl >=x11-libs/libX11-1.3.99.901 )
179 - png? ( media-libs/libpng sys-libs/zlib )
180 - portaudio? ( >=media-libs/portaudio-19_pre )
181 - postproc? ( || ( media-video/ffmpeg:0 media-libs/libpostproc ) )
182 - projectm? ( media-libs/libprojectm )
183 - pulseaudio? ( >=media-sound/pulseaudio-0.9.22 )
184 + dev-libs/libgpg-error:0
185 + net-dns/libidn:0
186 + net-misc/freerdp:0
187 + >=sys-devel/gettext-0.18.3:0
188 + >=sys-libs/zlib-1.2.5.1-r2:0[minizip]
189 + a52? ( >=media-libs/a52dec-0.7.4-r3:0 )
190 + aalib? ( media-libs/aalib:0 )
191 + aac? ( >=media-libs/faad2-2.6.1:0 )
192 + alsa? ( >=media-libs/alsa-lib-1.0.23:0 )
193 + avahi? ( >=net-dns/avahi-0.6:0[dbus] )
194 + avcodec? ( virtual/ffmpeg:0 )
195 + avformat? ( virtual/ffmpeg:0 )
196 + bidi? ( >=dev-libs/fribidi-0.10.4:0 )
197 + bluray? ( >=media-libs/libbluray-0.2.1:0 )
198 + cddb? ( >=media-libs/libcddb-1.2.0:0 )
199 + dbus? ( >=sys-apps/dbus-1.0.2:0 )
200 + dc1394? ( >=sys-libs/libraw1394-2.0.1:0 >=media-libs/libdc1394-2.0.2:2 )
201 + dirac? ( >=media-video/dirac-0.10.0:0 )
202 + directfb? ( dev-libs/DirectFB:0 sys-libs/zlib:0 )
203 + dts? ( media-libs/libdca:0 )
204 + dvbpsi? ( >=media-libs/libdvbpsi-0.2.1:0 )
205 + dvd? ( media-libs/libdvdread:0 >=media-libs/libdvdnav-0.1.9:0 )
206 + egl? ( virtual/opengl:0 )
207 + elibc_glibc? ( >=sys-libs/glibc-2.8:2.2 )
208 + flac? ( media-libs/libogg:0 >=media-libs/flac-1.1.2:0 )
209 + fluidsynth? ( media-sound/fluidsynth:0 )
210 + fontconfig? ( media-libs/fontconfig:1.0 )
211 + gcrypt? ( >=dev-libs/libgcrypt-1.2.0:0 )
212 + gme? ( media-libs/game-music-emu:0 )
213 + gnome? ( gnome-base/gnome-vfs:2 dev-libs/glib:2 )
214 + gnutls? ( >=net-libs/gnutls-2.0.0:0 )
215 + ieee1394? ( >=sys-libs/libraw1394-2.0.1:0 >=sys-libs/libavc1394-0.5.3:0 )
216 + ios-vout? ( virtual/opengl:0 )
217 + jack? ( >=media-sound/jack-audio-connection-kit-0.99.0-r1:0 )
218 + kate? ( >=media-libs/libkate-0.1.1:0 )
219 + libass? ( >=media-libs/libass-0.9.8:0 media-libs/fontconfig:1.0 )
220 + libcaca? ( >=media-libs/libcaca-0.99_beta14:0 )
221 + libnotify? ( x11-libs/libnotify:0 x11-libs/gtk+:2 x11-libs/gdk-pixbuf:2 dev-libs/glib:2 )
222 + libproxy? ( net-libs/libproxy:0 )
223 + libsamplerate? ( media-libs/libsamplerate:0 )
224 + libtar? ( >=dev-libs/libtar-1.2.11-r3:0 )
225 + libtiger? ( media-libs/libtiger:0 )
226 + linsys? ( >=media-libs/zvbi-0.2.28:0 )
227 + lirc? ( app-misc/lirc:0 )
228 + live? ( >=media-plugins/live-2011.12.23:0 )
229 + lua? ( >=dev-lang/lua-5.1:0 )
230 + macosx-vout? ( virtual/opengl:0 )
231 + matroska? ( >=dev-libs/libebml-1.0.0:0= >=media-libs/libmatroska-1.0.0:0= )
232 + modplug? ( >=media-libs/libmodplug-0.8.8.1:0 )
233 + mp3? ( media-libs/libmad:0 )
234 + mpeg? ( >=media-libs/libmpeg2-0.3.2:0 )
235 + mtp? ( >=media-libs/libmtp-1.0.0:0 )
236 + musepack? ( >=media-sound/musepack-tools-444:0 )
237 + ncurses? ( sys-libs/ncurses:5[unicode] )
238 + ogg? ( media-libs/libogg:0 )
239 + opengl? ( virtual/opengl:0 >=x11-libs/libX11-1.3.99.901:0 )
240 + opus? ( >=media-libs/opus-1.0.3:0 )
241 + png? ( media-libs/libpng:0= sys-libs/zlib:0 )
242 + portaudio? ( >=media-libs/portaudio-19_pre:0 )
243 + postproc? ( || ( media-video/ffmpeg:0= media-libs/libpostproc:0 ) )
244 + projectm? ( media-libs/libprojectm:0 media-fonts/dejavu:0 )
245 + pulseaudio? ( >=media-sound/pulseaudio-0.9.22:0 )
246 qt4? ( dev-qt/qtgui:4 dev-qt/qtcore:4 )
247 - samba? ( >=net-fs/samba-3.4.6[smbclient] )
248 - schroedinger? ( >=media-libs/schroedinger-1.0.10 )
249 - sdl? ( >=media-libs/libsdl-1.2.8
250 - sdl-image? ( media-libs/sdl-image sys-libs/zlib ) )
251 - shout? ( media-libs/libshout )
252 + samba? ( >=net-fs/samba-3.4.6:0[smbclient] )
253 + schroedinger? ( >=media-libs/schroedinger-1.0.10:0 )
254 + sdl? ( >=media-libs/libsdl-1.2.8:0
255 + sdl-image? ( media-libs/sdl-image:0 sys-libs/zlib:0 ) )
256 + sftp? ( net-libs/libssh2:0 )
257 + shout? ( media-libs/libshout:0 )
258 sid? ( media-libs/libsidplay:2 )
259 - skins? ( x11-libs/libXext x11-libs/libXpm x11-libs/libXinerama )
260 - speex? ( media-libs/speex )
261 + skins? ( x11-libs/libXext:0 x11-libs/libXpm:0 x11-libs/libXinerama:0 )
262 + speex? ( media-libs/speex:0 )
263 sqlite? ( >=dev-db/sqlite-3.6.0:3 )
264 - svg? ( >=gnome-base/librsvg-2.9.0 )
265 - swscale? ( virtual/ffmpeg )
266 - taglib? ( >=media-libs/taglib-1.5 sys-libs/zlib )
267 - theora? ( >=media-libs/libtheora-1.0_beta3 )
268 - truetype? ( media-libs/freetype virtual/ttf-fonts
269 - !fontconfig? ( media-fonts/dejavu ) )
270 - twolame? ( media-sound/twolame )
271 - udev? ( virtual/udev )
272 - upnp? ( net-libs/libupnp )
273 - v4l? ( media-libs/libv4l )
274 - vaapi? ( x11-libs/libva )
275 - vcdx? ( >=dev-libs/libcdio-0.78.2 >=media-video/vcdimager-0.7.22 )
276 - vorbis? ( media-libs/libvorbis )
277 - X? ( x11-libs/libX11 )
278 - x264? ( >=media-libs/x264-0.0.20090923:= )
279 - xcb? ( >=x11-libs/libxcb-1.6 >=x11-libs/xcb-util-0.3.4 )
280 - xml? ( dev-libs/libxml2 )
281 - xosd? ( x11-libs/xosd )
282 - zvbi? ( >=media-libs/zvbi-0.2.25 )
283 - "
284 + svg? ( >=gnome-base/librsvg-2.9.0:2 )
285 + swscale? ( virtual/ffmpeg:0 )
286 + taglib? ( >=media-libs/taglib-1.5:0 sys-libs/zlib:0 )
287 + theora? ( >=media-libs/libtheora-1.0_beta3:0 )
288 + tremor? ( media-libs/tremor:0 )
289 + truetype? ( media-libs/freetype:2 virtual/ttf-fonts:0
290 + !fontconfig? ( media-fonts/dejavu:0 ) )
291 + twolame? ( media-sound/twolame:0 )
292 + udev? ( virtual/udev:0 )
293 + upnp? ( net-libs/libupnp:0 )
294 + v4l? ( media-libs/libv4l:0 )
295 + vaapi? ( x11-libs/libva:0 )
296 + vcdx? ( >=dev-libs/libcdio-0.78.2:0 >=media-video/vcdimager-0.7.22:0 )
297 + visual? ( media-libs/libvisual:0.4 )
298 + vorbis? ( media-libs/libvorbis:0 )
299 + X? ( x11-libs/libX11:0 )
300 + x264? ( >=media-libs/x264-0.0.20090923:0= )
301 + xcb? ( >=x11-libs/libxcb-1.6:0 >=x11-libs/xcb-util-0.3.4:0 x11-libs/xcb-util-keysyms:0 )
302 + xml? ( dev-libs/libxml2:2 )
303 + xosd? ( x11-libs/xosd:0 )
304 + zvbi? ( >=media-libs/zvbi-0.2.25:0 )
305 +"
306
307 DEPEND="${RDEPEND}
308 - fbosd? ( sys-kernel/linux-headers )
309 - kde? ( >=kde-base/kdelibs-4 )
310 - xcb? ( x11-proto/xproto )
311 - app-arch/xz-utils
312 - virtual/pkgconfig"
313 + fbosd? ( sys-kernel/linux-headers:0 )
314 + kde? ( >=kde-base/kdelibs-4:4 )
315 + xcb? ( x11-proto/xproto:0 )
316 + app-arch/xz-utils:0
317 + virtual/pkgconfig:0"
318
319 REQUIRED_USE="
320 aalib? ( X )
321 @@ -178,24 +188,61 @@
322
323 src_unpack() {
324 if [ "${PV%9999}" != "${PV}" ] ; then
325 - git-2_src_unpack
326 + git-r3_src_unpack
327 + else
328 + unpack ${A}
329 fi
330 }
331
332 src_prepare() {
333 + # Remove unnecessary warnings about unimplemented pragmas on gcc for now.
334 + # Need to recheck this with gcc 4.9 and every subsequent minor bump of gcc.
335 + #
336 + # config.h:792: warning: ignoring #pragma STDC FENV_ACCESS [-Wunknown-pragmas]
337 + # config.h:793: warning: ignoring #pragma STDC FP_CONTRACT [-Wunknown-pragmas]
338 + #
339 + # http://gcc.gnu.org/c99status.html
340 + if [[ "$(tc-getCC)" == *"gcc"* ]] ; then
341 + sed -i 's/ifndef __FAST_MATH__/if 0/g' configure.ac || die
342 + fi
343 +
344 + # _FORTIFY_SOURCE is set to 2 by default on Gentoo, remove redefine warnings.
345 + sed -i '/_FORTIFY_SOURCE.*, 2,/d' configure.ac || die
346 +
347 + # Bootstrap when we are on a git checkout.
348 + if [[ "${PV%9999}" != "${PV}" ]] ; then
349 + ./bootstrap
350 + fi
351 +
352 # Make it build with libtool 1.5
353 - rm -f m4/lt* m4/libtool.m4
354 + rm -f m4/lt* m4/libtool.m4 || die
355 +
356 + # Fix mistakes.
357 + if use truetype || use projectm ; then
358 + epatch "${FILESDIR}"/${PN}-2.0.8-freetype-proper-default-font.patch
359 + fi
360 +
361 + # We are not in a real git checkout due to the absence of a .git directory.
362 + touch src/revision.txt || die
363
364 eautoreconf
365 }
366
367 src_configure() {
368 - # needs libresid-builder from libsidplay:2 which is in another directory...
369 + # Needs libresid-builder from libsidplay:2 which is in another directory...
370 # FIXME!
371 - use sid && append-ldflags "-L/usr/$(get_libdir)/sidplay/builders/"
372 + append-ldflags "-L/usr/$(get_libdir)/sidplay/builders/"
373
374 econf \
375 + ${myconf} \
376 + --enable-vlc \
377 --docdir=/usr/share/doc/${PF} \
378 + --disable-dependency-tracking \
379 + --disable-loader \
380 + --disable-optimizations \
381 + --disable-update-check \
382 + --enable-fast-install \
383 + --enable-screen \
384 $(use_enable a52) \
385 $(use_enable aalib aa) \
386 $(use_enable aac faad) \
387 @@ -269,6 +316,7 @@
388 $(use_enable ogg) $(use_enable ogg mux_ogg) \
389 $(use_enable omxil) \
390 $(use_enable opengl glx) \
391 + $(use_enable opus) \
392 $(use_enable optimisememory optimize-memory) \
393 $(use_enable oss) \
394 $(use_enable png) \
395 @@ -284,6 +332,7 @@
396 $(use_enable schroedinger) \
397 $(use_enable sdl) \
398 $(use_enable sdl-image) \
399 + $(use_enable sftp) \
400 $(use_enable shine) \
401 $(use_enable sid) \
402 $(use_enable shout) \
403 @@ -296,6 +345,7 @@
404 $(use_enable swscale) \
405 $(use_enable taglib) \
406 $(use_enable theora) \
407 + $(use_enable tremor) \
408 $(use_enable truetype freetype) \
409 $(use_enable twolame) \
410 $(use_enable udev) \
411 @@ -303,6 +353,7 @@
412 $(use_enable v4l v4l2) \
413 $(use_enable vaapi libva) \
414 $(use_enable vcdx) \
415 + $(use_enable visual) \
416 $(use_enable vlm) \
417 $(use_enable vorbis) \
418 $(use_enable waveout) \
419 @@ -315,17 +366,22 @@
420 $(use_enable xosd) \
421 $(use_enable xv xvideo) \
422 $(use_enable zvbi) $(use_enable !zvbi telx) \
423 - --disable-loader \
424 - --disable-optimizations \
425 - --without-tuning \
426 - --enable-fast-install
427 + --disable-crystalhd \
428 + --disable-decklink \
429 + --disable-goom \
430 + --disable-hildon \
431 + --disable-iomx \
432 + --disable-kai \
433 + --disable-kva \
434 + --disable-opencv
435 +
436 + # ^ We don't have these disables libraries in the Portage tree yet.
437 }
438
439 -src_install() {
440 - emake DESTDIR="${D}" install || die "make install failed"
441 +DOCS="AUTHORS THANKS NEWS README doc/fortunes.txt doc/intf-vcd.txt"
442
443 - dodoc AUTHORS THANKS NEWS README \
444 - doc/fortunes.txt doc/intf-vcd.txt
445 +src_install() {
446 + default
447
448 # Punt useless libtool's .la files
449 find "${D}" -name '*.la' -delete
450
451
452
453 1.1 media-video/vlc/vlc-2.1.9999.ebuild
454
455 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/vlc/vlc-2.1.9999.ebuild?rev=1.1&view=markup
456 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/vlc/vlc-2.1.9999.ebuild?rev=1.1&content-type=text/plain
457
458 Index: vlc-2.1.9999.ebuild
459 ===================================================================
460 # Copyright 1999-2013 Gentoo Foundation
461 # Distributed under the terms of the GNU General Public License v2
462 # $Header: /var/cvsroot/gentoo-x86/media-video/vlc/vlc-2.1.9999.ebuild,v 1.1 2013/10/26 05:53:46 tomwij Exp $
463
464 EAPI="5"
465
466 SCM=""
467 if [ "${PV%9999}" != "${PV}" ] ; then
468 SCM="git-r3"
469
470 if [ "${PV%.9999}" != "${PV}" ] ; then
471 EGIT_REPO_URI="git://git.videolan.org/vlc/vlc-${PV%.9999}.git"
472 else
473 EGIT_REPO_URI="git://git.videolan.org/vlc.git"
474 fi
475 fi
476
477 inherit eutils multilib autotools toolchain-funcs flag-o-matic virtualx ${SCM}
478
479 MY_PV="${PV/_/-}"
480 MY_PV="${MY_PV/-beta/-test}"
481 MY_P="${PN}-${MY_PV}"
482
483 DESCRIPTION="VLC media player - Video player and streamer"
484 HOMEPAGE="http://www.videolan.org/vlc/"
485 if [ "${PV%9999}" != "${PV}" ] ; then # Live ebuild
486 SRC_URI=""
487 elif [[ "${MY_P}" == "${P}" ]]; then
488 SRC_URI="http://download.videolan.org/pub/videolan/${PN}/${PV}/${P}.tar.xz"
489 else
490 SRC_URI="http://download.videolan.org/pub/videolan/testing/${MY_P}/${MY_P}.tar.xz"
491 fi
492
493 LICENSE="LGPL-2.1 GPL-2"
494 SLOT="0"
495
496 if [ "${PV%9999}" = "${PV}" ] ; then
497 KEYWORDS="~alpha ~amd64 ~arm ~ppc ~ppc64 -sparc ~x86 ~amd64-fbsd ~x86-fbsd"
498 else
499 KEYWORDS=""
500 fi
501
502 IUSE="a52 aac aalib alsa altivec atmo +audioqueue avahi +avcodec
503 +avformat bidi bluray cdda cddb chromaprint dbus dc1394 debug dirac
504 directfb directx dts dvb +dvbpsi dvd dxva2 elibc_glibc egl +encode fdk
505 fluidsynth +ffmpeg flac fontconfig +gcrypt gme gnome gnutls
506 growl httpd ieee1394 ios-vout jack kate kde libass libcaca libnotify
507 libsamplerate libtiger linsys libtar lirc live lua +macosx
508 +macosx-audio +macosx-dialog-provider +macosx-eyetv +macosx-quartztext
509 +macosx-qtkit +macosx-vout matroska media-library mmx modplug mp3 mpeg
510 mtp musepack ncurses neon ogg omxil opencv opengl optimisememory opus
511 png +postproc projectm pulseaudio +qt4 qt5 rtsp run-as-root samba
512 schroedinger sdl sdl-image sftp shout sid skins speex sse svg +swscale
513 taglib theora tremor truetype twolame udev upnp vaapi v4l vcdx vdpau
514 vlm vorbis wma-fixed +X x264 +xcb xml xv zvbi"
515
516 RDEPEND="
517 dev-libs/libgpg-error:0
518 net-dns/libidn:0
519 net-misc/freerdp:0
520 >=sys-devel/gettext-0.18.3:0
521 >=sys-libs/zlib-1.2.5.1-r2:0[minizip]
522 a52? ( >=media-libs/a52dec-0.7.4-r3:0 )
523 aalib? ( media-libs/aalib:0 )
524 aac? ( >=media-libs/faad2-2.6.1:0 )
525 alsa? ( >=media-libs/alsa-lib-1.0.23:0 )
526 avahi? ( >=net-dns/avahi-0.6:0[dbus] )
527 avcodec? ( virtual/ffmpeg:0 )
528 avformat? ( virtual/ffmpeg:0 )
529 bidi? ( >=dev-libs/fribidi-0.10.4:0 )
530 bluray? ( >=media-libs/libbluray-0.2.1:0 )
531 cddb? ( >=media-libs/libcddb-1.2.0:0 )
532 chromaprint? ( >=media-libs/chromaprint-0.6:0 )
533 dbus? ( >=sys-apps/dbus-1.0.2:0 )
534 dc1394? ( >=sys-libs/libraw1394-2.0.1:0 >=media-libs/libdc1394-2.0.2:2 )
535 dirac? ( >=media-video/dirac-0.10.0:0 )
536 directfb? ( dev-libs/DirectFB:0 sys-libs/zlib:0 )
537 dts? ( media-libs/libdca:0 )
538 dvbpsi? ( >=media-libs/libdvbpsi-0.2.1:0 )
539 dvd? ( media-libs/libdvdread:0 >=media-libs/libdvdnav-0.1.9:0 )
540 egl? ( virtual/opengl:0 )
541 elibc_glibc? ( >=sys-libs/glibc-2.8:2.2 )
542 fdk? ( media-libs/fdk-aac:0 )
543 flac? ( media-libs/libogg:0 >=media-libs/flac-1.1.2:0 )
544 fluidsynth? ( >=media-sound/fluidsynth-1.1.0:0 )
545 fontconfig? ( media-libs/fontconfig:1.0 )
546 gcrypt? ( >=dev-libs/libgcrypt-1.2.0:0 )
547 gme? ( media-libs/game-music-emu:0 )
548 gnome? ( gnome-base/gnome-vfs:2 dev-libs/glib:2 )
549 gnutls? ( >=net-libs/gnutls-2.0.0:0 )
550 ieee1394? ( >=sys-libs/libraw1394-2.0.1:0 >=sys-libs/libavc1394-0.5.3:0 )
551 ios-vout? ( virtual/opengl:0 )
552 jack? ( >=media-sound/jack-audio-connection-kit-0.99.0-r1:0 )
553 kate? ( >=media-libs/libkate-0.1.1:0 )
554 libass? ( >=media-libs/libass-0.9.8:0 media-libs/fontconfig:1.0 )
555 libcaca? ( >=media-libs/libcaca-0.99_beta14:0 )
556 libnotify? ( x11-libs/libnotify:0 x11-libs/gtk+:2 x11-libs/gdk-pixbuf:2 dev-libs/glib:2 )
557 libsamplerate? ( media-libs/libsamplerate:0 )
558 libtar? ( >=dev-libs/libtar-1.2.11-r3:0 )
559 libtiger? ( media-libs/libtiger:0 )
560 linsys? ( >=media-libs/zvbi-0.2.28:0 )
561 lirc? ( app-misc/lirc:0 )
562 live? ( >=media-plugins/live-2011.12.23:0 )
563 lua? ( >=dev-lang/lua-5.1:0 )
564 macosx-vout? ( virtual/opengl:0 )
565 matroska? ( >=dev-libs/libebml-1.0.0:0= >=media-libs/libmatroska-1.0.0:0= )
566 modplug? ( >=media-libs/libmodplug-0.8.8.1:0 )
567 mp3? ( media-libs/libmad:0 )
568 mpeg? ( >=media-libs/libmpeg2-0.3.2:0 )
569 mtp? ( >=media-libs/libmtp-1.0.0:0 )
570 musepack? ( >=media-sound/musepack-tools-444:0 )
571 ncurses? ( sys-libs/ncurses:5[unicode] )
572 ogg? ( media-libs/libogg:0 )
573 opencv? ( >=media-libs/opencv-2.0:0 )
574 opengl? ( virtual/opengl:0 >=x11-libs/libX11-1.3.99.901:0 )
575 opus? ( >=media-libs/opus-1.0.3:0 )
576 png? ( media-libs/libpng:0= sys-libs/zlib:0 )
577 postproc? ( || ( media-video/ffmpeg:0= media-libs/libpostproc:0 ) )
578 projectm? ( media-libs/libprojectm:0 media-fonts/dejavu:0 )
579 pulseaudio? ( >=media-sound/pulseaudio-0.9.22:0 )
580 qt4? ( dev-qt/qtgui:4 dev-qt/qtcore:4 )
581 qt5? ( dev-qt/qtgui:5 dev-qt/qtcore:5 )
582 samba? ( >=net-fs/samba-3.4.6:0[smbclient] )
583 schroedinger? ( >=media-libs/schroedinger-1.0.10:0 )
584 sdl? ( >=media-libs/libsdl-1.2.8:0
585 sdl-image? ( media-libs/sdl-image:0 sys-libs/zlib:0 ) )
586 sftp? ( net-libs/libssh2:0 )
587 shout? ( media-libs/libshout:0 )
588 sid? ( media-libs/libsidplay:2 )
589 skins? ( x11-libs/libXext:0 x11-libs/libXpm:0 x11-libs/libXinerama:0 )
590 speex? ( media-libs/speex:0 )
591 svg? ( >=gnome-base/librsvg-2.9.0:2 )
592 swscale? ( virtual/ffmpeg:0 )
593 taglib? ( >=media-libs/taglib-1.5:0 sys-libs/zlib:0 )
594 theora? ( >=media-libs/libtheora-1.0_beta3:0 )
595 tremor? ( media-libs/tremor:0 )
596 truetype? ( media-libs/freetype:2 virtual/ttf-fonts:0
597 !fontconfig? ( media-fonts/dejavu:0 ) )
598 twolame? ( media-sound/twolame:0 )
599 udev? ( virtual/udev:0 )
600 upnp? ( net-libs/libupnp:0 )
601 v4l? ( media-libs/libv4l:0 )
602 vaapi? ( x11-libs/libva:0 )
603 vcdx? ( >=dev-libs/libcdio-0.78.2:0 >=media-video/vcdimager-0.7.22:0 )
604 vdpau? ( >=x11-libs/libvdpau-0.6:0 )
605 vorbis? ( media-libs/libvorbis:0 )
606 X? ( x11-libs/libX11:0 )
607 x264? ( >=media-libs/x264-0.0.20090923:0= )
608 xcb? ( >=x11-libs/libxcb-1.6:0 >=x11-libs/xcb-util-0.3.4:0 x11-libs/xcb-util-keysyms:0 )
609 xml? ( dev-libs/libxml2:2 )
610 zvbi? ( >=media-libs/zvbi-0.2.25:0 )
611 "
612
613 DEPEND="${RDEPEND}
614 kde? ( >=kde-base/kdelibs-4:4 )
615 xcb? ( x11-proto/xproto:0 )
616 app-arch/xz-utils:0
617 virtual/pkgconfig:0
618 "
619
620 REQUIRED_USE="
621 aalib? ( X )
622 bidi? ( truetype )
623 cddb? ( cdda )
624 dvb? ( dvbpsi )
625 dxva2? ( avcodec )
626 egl? ( X )
627 ffmpeg? ( avcodec avformat swscale postproc )
628 fontconfig? ( truetype )
629 gnutls? ( gcrypt )
630 httpd? ( lua )
631 libcaca? ( X )
632 libtar? ( skins )
633 libtiger? ( kate )
634 qt4? ( X !qt5 )
635 qt5? ( X !qt4 )
636 sdl? ( X )
637 skins? ( truetype X ^^ ( qt4 qt5 ) )
638 vaapi? ( avcodec X )
639 vlm? ( encode )
640 xv? ( xcb )
641 "
642
643 S="${WORKDIR}/${MY_P}"
644
645 src_unpack() {
646 if [ "${PV%9999}" != "${PV}" ] ; then
647 git-r3_src_unpack
648 else
649 unpack ${A}
650 fi
651 }
652
653 src_prepare() {
654 # Support for Qt5.
655 if use qt5 ; then
656 export UIC="/usr/lib64/qt5/bin/uic"
657 export MOC="/usr/lib64/qt5/bin/moc"
658 fi
659
660 # Remove unnecessary warnings about unimplemented pragmas on gcc for now.
661 # Need to recheck this with gcc 4.9 and every subsequent minor bump of gcc.
662 #
663 # config.h:792: warning: ignoring #pragma STDC FENV_ACCESS [-Wunknown-pragmas]
664 # config.h:793: warning: ignoring #pragma STDC FP_CONTRACT [-Wunknown-pragmas]
665 #
666 # http://gcc.gnu.org/c99status.html
667 if [[ "$(tc-getCC)" == *"gcc"* ]] ; then
668 sed -i 's/ifndef __FAST_MATH__/if 0/g' configure.ac || die
669 fi
670
671 # _FORTIFY_SOURCE is set to 2 by default on Gentoo, remove redefine warnings.
672 sed -i '/_FORTIFY_SOURCE.*, 2,/d' configure.ac || die
673
674 # Bootstrap when we are on a git checkout.
675 if [[ "${PV%9999}" != "${PV}" ]] ; then
676 ./bootstrap
677 fi
678
679 # Make it build with libtool 1.5
680 rm -f m4/lt* m4/libtool.m4 || die
681
682 # We are not in a real git checkout due to the absence of a .git directory.
683 touch src/revision.txt || die
684
685 # Patch up incompatibilities and reconfigure autotools.
686 epatch "${FILESDIR}"/${PN}-2.1.0-newer-rdp.patch
687 epatch "${FILESDIR}"/${PN}-2.1.0-libva-1.2.1-compat.patch
688
689 eautoreconf
690
691 # Disable automatic running of tests.
692 find . -name 'Makefile.in' -exec sed -i 's/\(..*\)check-TESTS/\1/' {} \; || die
693 }
694
695 src_configure() {
696 # Needs libresid-builder from libsidplay:2 which is in another directory...
697 # FIXME!
698 append-ldflags "-L/usr/$(get_libdir)/sidplay/builders/"
699
700 if use truetype || use projectm ; then
701 local dejavu="/usr/share/fonts/dejavu/"
702 myconf="--with-default-font=${dejavu}/DejaVuSans.ttf \
703 --with-default-font-family=Sans \
704 --with-default-monospace-font=${dejavu}/DejaVuSansMono.ttf
705 --with-default-monospace-font-family=Monospace"
706 fi
707
708 local qt_flag=""
709 if use qt4 || use qt5 ; then
710 qt_flag="--enable-qt"
711 fi
712
713 econf \
714 ${myconf} \
715 --enable-vlc \
716 --docdir=/usr/share/doc/${PF} \
717 --disable-dependency-tracking \
718 --disable-optimizations \
719 --disable-update-check \
720 --enable-fast-install \
721 --enable-screen \
722 $(use_enable a52) \
723 $(use_enable aalib aa) \
724 $(use_enable aac faad) \
725 $(use_enable alsa) \
726 $(use_enable altivec) \
727 $(use_enable atmo) \
728 $(use_enable audioqueue) \
729 $(use_enable avahi bonjour) \
730 $(use_enable avcodec) \
731 $(use_enable avformat) \
732 $(use_enable bidi fribidi) \
733 $(use_enable bluray) \
734 $(use_enable cdda vcd) \
735 $(use_enable cddb libcddb) \
736 $(use_enable chromaprint) \
737 $(use_enable dbus) \
738 $(use_enable dirac) \
739 $(use_enable directfb) \
740 $(use_enable directx) \
741 $(use_enable dc1394) \
742 $(use_enable debug) \
743 $(use_enable dts dca) \
744 $(use_enable dvbpsi) \
745 $(use_enable dvd dvdread) $(use_enable dvd dvdnav) \
746 $(use_enable dxva2) \
747 $(use_enable egl) \
748 $(use_enable encode sout) \
749 $(use_enable fdk fdkaac) \
750 $(use_enable flac) \
751 $(use_enable fluidsynth) \
752 $(use_enable fontconfig) \
753 $(use_enable gcrypt libgcrypt) \
754 $(use_enable gme) \
755 $(use_enable gnome gnomevfs) \
756 $(use_enable gnutls) \
757 $(use_enable growl) \
758 $(use_enable httpd) \
759 $(use_enable ieee1394 dv1394) \
760 $(use_enable ios-vout) \
761 $(use_enable jack) \
762 $(use_enable kate) \
763 $(use_with kde kde-solid) \
764 $(use_enable libass) \
765 $(use_enable libcaca caca) \
766 $(use_enable libnotify notify) \
767 $(use_enable libsamplerate samplerate) \
768 $(use_enable libtar) \
769 $(use_enable libtiger tiger) \
770 $(use_enable linsys) \
771 $(use_enable lirc) \
772 $(use_enable live live555) \
773 $(use_enable lua) \
774 $(use_enable macosx-audio) \
775 $(use_enable macosx-dialog-provider) \
776 $(use_enable macosx-eyetv) \
777 $(use_enable macosx-qtkit) \
778 $(use_enable macosx-quartztext) \
779 $(use_enable macosx-vout) \
780 $(use_enable matroska mkv) \
781 $(use_enable mmx) \
782 $(use_enable modplug mod) \
783 $(use_enable mp3 mad) \
784 $(use_enable mpeg libmpeg2) \
785 $(use_enable mtp) \
786 $(use_enable musepack mpc) \
787 $(use_enable ncurses) \
788 $(use_enable neon) \
789 $(use_enable ogg) $(use_enable ogg mux_ogg) \
790 $(use_enable omxil) \
791 $(use_enable opencv) \
792 $(use_enable opengl glx) \
793 $(use_enable opus) \
794 $(use_enable optimisememory optimize-memory) \
795 $(use_enable png) \
796 $(use_enable postproc) \
797 $(use_enable projectm) \
798 $(use_enable pulseaudio pulse) \
799 ${qt_flag} \
800 $(use_enable rtsp realrtsp) \
801 $(use_enable run-as-root) \
802 $(use_enable samba smbclient) \
803 $(use_enable schroedinger) \
804 $(use_enable sdl) \
805 $(use_enable sdl-image) \
806 $(use_enable sid) \
807 $(use_enable sftp) \
808 $(use_enable shout) \
809 $(use_enable skins skins2) \
810 $(use_enable speex) \
811 $(use_enable sse) \
812 $(use_enable svg) \
813 $(use_enable swscale) \
814 $(use_enable taglib) \
815 $(use_enable theora) \
816 $(use_enable tremor) \
817 $(use_enable truetype freetype) \
818 $(use_enable twolame) \
819 $(use_enable udev) \
820 $(use_enable upnp) \
821 $(use_enable v4l v4l2) \
822 $(use_enable vaapi libva) \
823 $(use_enable vcdx) \
824 $(use_enable vdpau) \
825 $(use_enable vlm) \
826 $(use_enable vorbis) \
827 $(use_enable wma-fixed) \
828 $(use_with X x) \
829 $(use_enable x264) \
830 $(use_enable xcb) \
831 $(use_enable xml libxml2) \
832 $(use_enable xv xvideo) \
833 $(use_enable zvbi) $(use_enable !zvbi telx) \
834 --disable-crystalhd \
835 --disable-decklink \
836 --disable-goom \
837 --disable-kai \
838 --disable-kva \
839 --disable-oss \
840 --disable-quicksync \
841 --disable-shine \
842 --disable-sndio \
843 --disable-vda \
844 --disable-vsxu
845
846 # ^ We don't have these disables libraries in the Portage tree yet.
847 }
848
849 src_test() {
850 Xemake check-TESTS
851 }
852
853 DOCS="AUTHORS THANKS NEWS README doc/fortunes.txt doc/intf-vcd.txt"
854
855 src_install() {
856 default
857
858 # Punt useless libtool's .la files
859 find "${D}" -name '*.la' -delete
860 }
861
862 pkg_postinst() {
863 if [ "$ROOT" = "/" ] && [ -x "/usr/$(get_libdir)/vlc/vlc-cache-gen" ] ; then
864 einfo "Running /usr/$(get_libdir)/vlc/vlc-cache-gen on /usr/$(get_libdir)/vlc/plugins/"
865 "/usr/$(get_libdir)/vlc/vlc-cache-gen" -f "/usr/$(get_libdir)/vlc/plugins/"
866 else
867 ewarn "We cannot run vlc-cache-gen (most likely ROOT!=/)"
868 ewarn "Please run /usr/$(get_libdir)/vlc/vlc-cache-gen manually"
869 ewarn "If you do not do it, vlc will take a long time to load."
870 fi
871 }