/[gentoo-x86]/media-video/vlc/vlc-9999.ebuild
Gentoo

Diff of /media-video/vlc/vlc-9999.ebuild

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.195 Revision 1.207
1# Copyright 1999-2013 Gentoo Foundation 1# Copyright 1999-2013 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/media-video/vlc/vlc-9999.ebuild,v 1.195 2013/10/26 06:24:22 tomwij Exp $ 3# $Header: /var/cvsroot/gentoo-x86/media-video/vlc/vlc-9999.ebuild,v 1.207 2013/12/15 23:07:19 tomwij Exp $
4 4
5EAPI="5" 5EAPI="5"
6 6
7SCM="" 7SCM=""
8if [ "${PV%9999}" != "${PV}" ] ; then 8if [ "${PV%9999}" != "${PV}" ] ; then
30else 30else
31 SRC_URI="http://download.videolan.org/pub/videolan/testing/${MY_P}/${MY_P}.tar.xz" 31 SRC_URI="http://download.videolan.org/pub/videolan/testing/${MY_P}/${MY_P}.tar.xz"
32fi 32fi
33 33
34LICENSE="LGPL-2.1 GPL-2" 34LICENSE="LGPL-2.1 GPL-2"
35SLOT="0" 35SLOT="0/5-7" # vlc - vlccore
36 36
37if [ "${PV%9999}" = "${PV}" ] ; then 37if [ "${PV%9999}" = "${PV}" ] ; then
38 KEYWORDS="~alpha ~amd64 ~arm ~ppc ~ppc64 -sparc ~x86 ~amd64-fbsd ~x86-fbsd" 38 KEYWORDS="~amd64 ~arm ~ppc -sparc ~x86 ~amd64-fbsd ~x86-fbsd"
39else 39else
40 KEYWORDS="" 40 KEYWORDS=""
41fi 41fi
42 42
43IUSE="a52 aac aalib alsa altivec atmo +audioqueue avahi +avcodec 43IUSE="a52 aalib alsa altivec atmo +audioqueue avahi +avcodec
44 +avformat bidi bluray cdda cddb chromaprint dbus dc1394 debug dirac 44 +avformat bidi bluray cdda cddb chromaprint dbus dc1394 debug dirac
45 directfb directx dts dvb +dvbpsi dvd dxva2 elibc_glibc egl +encode fdk 45 directfb directx dts dvb +dvbpsi dvd dxva2 elibc_glibc egl +encode faad fdk
46 fluidsynth +ffmpeg flac fontconfig +gcrypt gme gnome gnutls 46 fluidsynth +ffmpeg flac fontconfig +gcrypt gme gnome gnutls
47 growl httpd ieee1394 ios-vout jack kate kde libass libcaca libnotify 47 growl httpd ieee1394 ios-vout jack kate kde libass libcaca libnotify
48 libsamplerate libtiger linsys libtar lirc live lua +macosx 48 libsamplerate libtiger linsys libtar lirc live lua +macosx
49 +macosx-audio +macosx-dialog-provider +macosx-eyetv +macosx-quartztext 49 +macosx-audio +macosx-dialog-provider +macosx-eyetv +macosx-quartztext
50 +macosx-qtkit +macosx-vout matroska media-library mmx modplug mp3 mpeg 50 +macosx-qtkit +macosx-vout matroska media-library mmx modplug mp3 mpeg
51 mtp musepack ncurses neon ogg omxil opencv opengl optimisememory opus 51 mtp musepack ncurses neon ogg omxil opencv opengl optimisememory opus
52 png +postproc projectm pulseaudio +qt4 qt5 rdp rtsp run-as-root samba 52 png +postproc projectm pulseaudio +qt4 qt5 rdp rtsp run-as-root samba
53 schroedinger sdl sdl-image sftp shout sid skins speex sse svg +swscale 53 schroedinger sdl sdl-image sftp shout sid skins speex sse svg +swscale
54 taglib theora tremor truetype twolame udev upnp vaapi v4l vcdx vdpau 54 taglib theora tremor truetype twolame udev upnp vaapi v4l vcdx vdpau
55 vlm vnc vorbis vpx wma-fixed +X x264 +xcb xml xv zvbi" 55 vlm vnc vorbis vpx wma-fixed +X x264 +xcb xml xv zvbi"
56 56
57RDEPEND=" 57RDEPEND="
58 !<media-video/ffmpeg-1.2:0
58 dev-libs/libgpg-error:0 59 dev-libs/libgpg-error:0
59 net-dns/libidn:0 60 net-dns/libidn:0
60 >=sys-devel/gettext-0.18.3:0 61 >=sys-devel/gettext-0.18.3:0
61 >=sys-libs/zlib-1.2.5.1-r2:0[minizip] 62 >=sys-libs/zlib-1.2.5.1-r2:0[minizip]
62 a52? ( >=media-libs/a52dec-0.7.4-r3:0 ) 63 a52? ( >=media-libs/a52dec-0.7.4-r3:0 )
63 aalib? ( media-libs/aalib:0 ) 64 aalib? ( media-libs/aalib:0 )
64 aac? ( >=media-libs/faad2-2.6.1:0 )
65 alsa? ( >=media-libs/alsa-lib-1.0.23:0 ) 65 alsa? ( >=media-libs/alsa-lib-1.0.24:0 )
66 avahi? ( >=net-dns/avahi-0.6:0[dbus] ) 66 avahi? ( >=net-dns/avahi-0.6:0[dbus] )
67 avcodec? ( virtual/ffmpeg:0 ) 67 avcodec? ( virtual/ffmpeg:0 )
68 avformat? ( virtual/ffmpeg:0 ) 68 avformat? ( virtual/ffmpeg:0 )
69 bidi? ( >=dev-libs/fribidi-0.10.4:0 ) 69 bidi? ( >=dev-libs/fribidi-0.10.4:0 )
70 bluray? ( >=media-libs/libbluray-0.2.1:0 ) 70 bluray? ( >=media-libs/libbluray-0.2.1:0 )
71 cddb? ( >=media-libs/libcddb-1.2.0:0 ) 71 cddb? ( >=media-libs/libcddb-1.2.0:0 )
72 chromaprint? ( >=media-libs/chromaprint-0.6:0 ) 72 chromaprint? ( >=media-libs/chromaprint-0.6:0 )
73 dbus? ( >=sys-apps/dbus-1.0.2:0 ) 73 dbus? ( >=sys-apps/dbus-1.0.2:0 )
74 dc1394? ( >=sys-libs/libraw1394-2.0.1:0 >=media-libs/libdc1394-2.0.2:2 ) 74 dc1394? ( >=sys-libs/libraw1394-2.0.1:0 >=media-libs/libdc1394-2.1.0:2 )
75 dirac? ( >=media-video/dirac-0.10.0:0 ) 75 dirac? ( >=media-video/dirac-0.10.0:0 )
76 directfb? ( dev-libs/DirectFB:0 sys-libs/zlib:0 ) 76 directfb? ( dev-libs/DirectFB:0 sys-libs/zlib:0 )
77 dts? ( media-libs/libdca:0 ) 77 dts? ( media-libs/libdca:0 )
78 dvbpsi? ( >=media-libs/libdvbpsi-0.2.1:0 ) 78 dvbpsi? ( >=media-libs/libdvbpsi-0.2.1:0 )
79 dvd? ( media-libs/libdvdread:0 >=media-libs/libdvdnav-0.1.9:0 ) 79 dvd? ( media-libs/libdvdread:0 >=media-libs/libdvdnav-0.1.9:0 )
80 egl? ( virtual/opengl:0 ) 80 egl? ( virtual/opengl:0 )
81 elibc_glibc? ( >=sys-libs/glibc-2.8:2.2 ) 81 elibc_glibc? ( >=sys-libs/glibc-2.8:2.2 )
82 faad? ( >=media-libs/faad2-2.6.1:0 )
82 fdk? ( media-libs/fdk-aac:0 ) 83 fdk? ( media-libs/fdk-aac:0 )
83 flac? ( media-libs/libogg:0 >=media-libs/flac-1.1.2:0 ) 84 flac? ( media-libs/libogg:0 >=media-libs/flac-1.1.2:0 )
84 fluidsynth? ( >=media-sound/fluidsynth-1.1.0:0 ) 85 fluidsynth? ( >=media-sound/fluidsynth-1.1.2:0 )
85 fontconfig? ( media-libs/fontconfig:1.0 ) 86 fontconfig? ( media-libs/fontconfig:1.0 )
86 gcrypt? ( >=dev-libs/libgcrypt-1.2.0:0 ) 87 gcrypt? ( >=dev-libs/libgcrypt-1.2.0:0 )
87 gme? ( media-libs/game-music-emu:0 ) 88 gme? ( media-libs/game-music-emu:0 )
88 gnome? ( gnome-base/gnome-vfs:2 dev-libs/glib:2 ) 89 gnome? ( gnome-base/gnome-vfs:2 dev-libs/glib:2 )
89 gnutls? ( >=net-libs/gnutls-2.0.0:0 ) 90 gnutls? ( >=net-libs/gnutls-3.0.20:0 )
90 ieee1394? ( >=sys-libs/libraw1394-2.0.1:0 >=sys-libs/libavc1394-0.5.3:0 ) 91 ieee1394? ( >=sys-libs/libraw1394-2.0.1:0 >=sys-libs/libavc1394-0.5.3:0 )
91 ios-vout? ( virtual/opengl:0 ) 92 ios-vout? ( virtual/opengl:0 )
92 jack? ( >=media-sound/jack-audio-connection-kit-0.99.0-r1:0 ) 93 jack? ( >=media-sound/jack-audio-connection-kit-0.99.0-r1:0 )
93 kate? ( >=media-libs/libkate-0.1.1:0 ) 94 kate? ( >=media-libs/libkate-0.3.0:0 )
94 libass? ( >=media-libs/libass-0.9.8:0 media-libs/fontconfig:1.0 ) 95 libass? ( >=media-libs/libass-0.9.8:0 media-libs/fontconfig:1.0 )
95 libcaca? ( >=media-libs/libcaca-0.99_beta14:0 ) 96 libcaca? ( >=media-libs/libcaca-0.99_beta14:0 )
96 libnotify? ( x11-libs/libnotify:0 x11-libs/gtk+:2 x11-libs/gdk-pixbuf:2 dev-libs/glib:2 ) 97 libnotify? ( x11-libs/libnotify:0 x11-libs/gtk+:2 x11-libs/gdk-pixbuf:2 dev-libs/glib:2 )
97 libsamplerate? ( media-libs/libsamplerate:0 ) 98 libsamplerate? ( media-libs/libsamplerate:0 )
98 libtar? ( >=dev-libs/libtar-1.2.11-r3:0 ) 99 libtar? ( >=dev-libs/libtar-1.2.11-r3:0 )
99 libtiger? ( media-libs/libtiger:0 ) 100 libtiger? ( >=media-libs/libtiger-0.3.1:0 )
100 linsys? ( >=media-libs/zvbi-0.2.28:0 ) 101 linsys? ( >=media-libs/zvbi-0.2.28:0 )
101 lirc? ( app-misc/lirc:0 ) 102 lirc? ( app-misc/lirc:0 )
102 live? ( >=media-plugins/live-2011.12.23:0 ) 103 live? ( >=media-plugins/live-2011.12.23:0 )
103 lua? ( >=dev-lang/lua-5.1:0 ) 104 lua? ( >=dev-lang/lua-5.1:0 )
104 macosx-vout? ( virtual/opengl:0 ) 105 macosx-vout? ( virtual/opengl:0 )
108 mpeg? ( >=media-libs/libmpeg2-0.3.2:0 ) 109 mpeg? ( >=media-libs/libmpeg2-0.3.2:0 )
109 mtp? ( >=media-libs/libmtp-1.0.0:0 ) 110 mtp? ( >=media-libs/libmtp-1.0.0:0 )
110 musepack? ( >=media-sound/musepack-tools-444:0 ) 111 musepack? ( >=media-sound/musepack-tools-444:0 )
111 ncurses? ( sys-libs/ncurses:5[unicode] ) 112 ncurses? ( sys-libs/ncurses:5[unicode] )
112 ogg? ( media-libs/libogg:0 ) 113 ogg? ( media-libs/libogg:0 )
113 opencv? ( >=media-libs/opencv-2.0:0 ) 114 opencv? ( >media-libs/opencv-2.0:0 )
114 opengl? ( virtual/opengl:0 >=x11-libs/libX11-1.3.99.901:0 ) 115 opengl? ( virtual/opengl:0 >=x11-libs/libX11-1.3.99.901:0 )
115 opus? ( >=media-libs/opus-1.0.3:0 ) 116 opus? ( >=media-libs/opus-1.0.3:0 )
116 png? ( media-libs/libpng:0= sys-libs/zlib:0 ) 117 png? ( media-libs/libpng:0= sys-libs/zlib:0 )
117 postproc? ( || ( media-video/ffmpeg:0= media-libs/libpostproc:0 ) ) 118 postproc? ( || ( >=media-video/ffmpeg-1.2:0= media-libs/libpostproc:0 ) )
118 projectm? ( media-libs/libprojectm:0 media-fonts/dejavu:0 ) 119 projectm? ( media-libs/libprojectm:0 media-fonts/dejavu:0 )
119 pulseaudio? ( >=media-sound/pulseaudio-0.9.22:0 ) 120 pulseaudio? ( >=media-sound/pulseaudio-0.9.22:0 )
120 qt4? ( dev-qt/qtgui:4 dev-qt/qtcore:4 ) 121 qt4? ( >=dev-qt/qtgui-4.6.0:4 >=dev-qt/qtcore-4.6.0:4 )
121 qt5? ( dev-qt/qtgui:5 dev-qt/qtcore:5 ) 122 qt5? ( >=dev-qt/qtgui-5.1.0:5 >=dev-qt/qtcore-5.1.0:5 dev-qt/qtwidgets:5 )
122 rdp? ( net-misc/freerdp:0 ) 123 rdp? ( net-misc/freerdp:0= )
123 samba? ( >=net-fs/samba-3.4.6:0[smbclient] ) 124 samba? ( || ( >=net-fs/samba-3.4.6:0[smbclient] >=net-fs/samba-4.0.0:0[client] ) )
124 schroedinger? ( >=media-libs/schroedinger-1.0.10:0 ) 125 schroedinger? ( >=media-libs/schroedinger-1.0.10:0 )
125 sdl? ( >=media-libs/libsdl-1.2.8:0 126 sdl? ( >=media-libs/libsdl-1.2.10:0
126 sdl-image? ( media-libs/sdl-image:0 sys-libs/zlib:0 ) ) 127 sdl-image? ( >=media-libs/sdl-image-1.2.10:0 sys-libs/zlib:0 ) )
127 sftp? ( net-libs/libssh2:0 ) 128 sftp? ( net-libs/libssh2:0 )
128 shout? ( media-libs/libshout:0 ) 129 shout? ( media-libs/libshout:0 )
129 sid? ( media-libs/libsidplay:2 ) 130 sid? ( media-libs/libsidplay:2 )
130 skins? ( x11-libs/libXext:0 x11-libs/libXpm:0 x11-libs/libXinerama:0 ) 131 skins? ( x11-libs/libXext:0 x11-libs/libXpm:0 x11-libs/libXinerama:0 )
131 speex? ( media-libs/speex:0 ) 132 speex? ( media-libs/speex:0 )
132 svg? ( >=gnome-base/librsvg-2.9.0:2 ) 133 svg? ( >=gnome-base/librsvg-2.9.0:2 )
133 swscale? ( virtual/ffmpeg:0 ) 134 swscale? ( virtual/ffmpeg:0 )
134 taglib? ( >=media-libs/taglib-1.5:0 sys-libs/zlib:0 ) 135 taglib? ( >=media-libs/taglib-1.6.1:0 sys-libs/zlib:0 )
135 theora? ( >=media-libs/libtheora-1.0_beta3:0 ) 136 theora? ( >=media-libs/libtheora-1.0_beta3:0 )
136 tremor? ( media-libs/tremor:0 ) 137 tremor? ( media-libs/tremor:0 )
137 truetype? ( media-libs/freetype:2 virtual/ttf-fonts:0 138 truetype? ( media-libs/freetype:2 virtual/ttf-fonts:0
138 !fontconfig? ( media-fonts/dejavu:0 ) ) 139 !fontconfig? ( media-fonts/dejavu:0 ) )
139 twolame? ( media-sound/twolame:0 ) 140 twolame? ( media-sound/twolame:0 )
140 udev? ( virtual/udev:0 ) 141 udev? ( >=virtual/udev-142:0 )
141 upnp? ( net-libs/libupnp:0 ) 142 upnp? ( net-libs/libupnp:0 )
142 v4l? ( media-libs/libv4l:0 ) 143 v4l? ( media-libs/libv4l:0 )
143 vaapi? ( x11-libs/libva:0 ) 144 vaapi? ( x11-libs/libva:0 virtual/ffmpeg[vaapi] )
144 vcdx? ( >=dev-libs/libcdio-0.78.2:0 >=media-video/vcdimager-0.7.22:0 ) 145 vcdx? ( >=dev-libs/libcdio-0.78.2:0 >=media-video/vcdimager-0.7.22:0 )
145 vdpau? ( >=x11-libs/libvdpau-0.6:0 ) 146 vdpau? ( >=x11-libs/libvdpau-0.6:0 !<media-video/libav-9.11 )
146 vnc? ( >=net-libs/libvncserver-0.9.9:0 ) 147 vnc? ( >=net-libs/libvncserver-0.9.9:0 )
147 vorbis? ( media-libs/libvorbis:0 ) 148 vorbis? ( media-libs/libvorbis:0 )
148 vpx? ( media-libs/libvpx:0 ) 149 vpx? ( media-libs/libvpx:0 )
149 X? ( x11-libs/libX11:0 ) 150 X? ( x11-libs/libX11:0 )
150 x264? ( >=media-libs/x264-0.0.20090923:0= ) 151 x264? ( >=media-libs/x264-0.0.20090923:0= )
151 xcb? ( >=x11-libs/libxcb-1.6:0 >=x11-libs/xcb-util-0.3.4:0 x11-libs/xcb-util-keysyms:0 ) 152 xcb? ( >=x11-libs/libxcb-1.6:0 >=x11-libs/xcb-util-0.3.4:0 >=x11-libs/xcb-util-keysyms-0.3.4:0 )
152 xml? ( dev-libs/libxml2:2 ) 153 xml? ( dev-libs/libxml2:2 )
153 zvbi? ( >=media-libs/zvbi-0.2.25:0 ) 154 zvbi? ( >=media-libs/zvbi-0.2.25:0 )
154" 155"
155 156
156DEPEND="${RDEPEND} 157DEPEND="${RDEPEND}
231 rm -f m4/lt* m4/libtool.m4 || die 232 rm -f m4/lt* m4/libtool.m4 || die
232 233
233 # We are not in a real git checkout due to the absence of a .git directory. 234 # We are not in a real git checkout due to the absence of a .git directory.
234 touch src/revision.txt || die 235 touch src/revision.txt || die
235 236
236 # Fix mistakes. 237 # Fix build system mistake.
237 epatch "${FILESDIR}"/${PN}-2.1.0-fix-libtremor-libs.patch 238 epatch "${FILESDIR}"/${PN}-2.1.0-fix-libtremor-libs.patch
238 239
239 # Patch up incompatibilities and reconfigure autotools. 240 # Patch up incompatibilities and reconfigure autotools.
240 epatch "${FILESDIR}"/${PN}-2.1.0-newer-rdp.patch 241 epatch "${FILESDIR}"/${PN}-2.1.0-newer-rdp.patch
241 epatch "${FILESDIR}"/${PN}-2.1.0-libva-1.2.1-compat.patch 242 epatch "${FILESDIR}"/${PN}-2.1.0-libva-1.2.1-compat.patch
242 243
244 # Fix up broken audio when skipping using a fixed reversed bisected commit.
245 epatch "${FILESDIR}"/${PN}-2.1.0-TomWij-bisected-PA-broken-underflow.patch
246
247 # Disable avcodec checks when avcodec is not used.
248 sed -i 's/^#if LIBAVCODEC_VERSION_CHECK(.*)$/#if 0/' modules/codec/avcodec/fourcc.c || die
249
250 # Don't use --started-from-file when not using dbus.
251 if ! use dbus ; then
252 sed -i 's/ --started-from-file//' share/vlc.desktop.in || die
253 fi
254
243 eautoreconf 255 eautoreconf
244 256
245 # Disable automatic running of tests. 257 # Disable automatic running of tests.
246 find . -name 'Makefile.in' -exec sed -i 's/\(..*\)check-TESTS/\1/' {} \; || die 258 find . -name 'Makefile.in' -exec sed -i 's/\(..*\)check-TESTS/\1/' {} \; || die
247} 259}
248 260
249src_configure() { 261src_configure() {
262 # Compatibility fix for Samba 4.
263 use samba && append-cppflags "-I/usr/include/samba-4.0"
264
250 # Needs libresid-builder from libsidplay:2 which is in another directory... 265 # Needs libresid-builder from libsidplay:2 which is in another directory...
251 # FIXME! 266 # FIXME!
252 append-ldflags "-L/usr/$(get_libdir)/sidplay/builders/" 267 append-ldflags "-L/usr/$(get_libdir)/sidplay/builders/"
253 268
254 if use truetype || use projectm ; then 269 if use truetype || use projectm ; then
273 --disable-update-check \ 288 --disable-update-check \
274 --enable-fast-install \ 289 --enable-fast-install \
275 --enable-screen \ 290 --enable-screen \
276 $(use_enable a52) \ 291 $(use_enable a52) \
277 $(use_enable aalib aa) \ 292 $(use_enable aalib aa) \
278 $(use_enable aac faad) \
279 $(use_enable alsa) \ 293 $(use_enable alsa) \
280 $(use_enable altivec) \ 294 $(use_enable altivec) \
281 $(use_enable atmo) \ 295 $(use_enable atmo) \
282 $(use_enable audioqueue) \ 296 $(use_enable audioqueue) \
283 $(use_enable avahi bonjour) \ 297 $(use_enable avahi bonjour) \
298 $(use_enable dvbpsi) \ 312 $(use_enable dvbpsi) \
299 $(use_enable dvd dvdread) $(use_enable dvd dvdnav) \ 313 $(use_enable dvd dvdread) $(use_enable dvd dvdnav) \
300 $(use_enable dxva2) \ 314 $(use_enable dxva2) \
301 $(use_enable egl) \ 315 $(use_enable egl) \
302 $(use_enable encode sout) \ 316 $(use_enable encode sout) \
317 $(use_enable faad) \
303 $(use_enable fdk fdkaac) \ 318 $(use_enable fdk fdkaac) \
304 $(use_enable flac) \ 319 $(use_enable flac) \
305 $(use_enable fluidsynth) \ 320 $(use_enable fluidsynth) \
306 $(use_enable fontconfig) \ 321 $(use_enable fontconfig) \
307 $(use_enable gcrypt libgcrypt) \ 322 $(use_enable gcrypt libgcrypt) \

Legend:
Removed from v.1.195  
changed lines
  Added in v.1.207

  ViewVC Help
Powered by ViewVC 1.1.20