/[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.225 Revision 1.228
1# Copyright 1999-2014 Gentoo Foundation 1# Copyright 1999-2014 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.225 2014/11/10 08:42:52 dlan Exp $ 3# $Header: /var/cvsroot/gentoo-x86/media-video/vlc/vlc-9999.ebuild,v 1.228 2014/12/15 05:50:48 dlan Exp $
4 4
5EAPI="5" 5EAPI="5"
6 6
7SCM="" 7SCM=""
8if [ "${PV%9999}" != "${PV}" ] ; then 8if [ "${PV%9999}" != "${PV}" ] ; then
33 33
34LICENSE="LGPL-2.1 GPL-2" 34LICENSE="LGPL-2.1 GPL-2"
35SLOT="0/5-7" # vlc - vlccore 35SLOT="0/5-7" # vlc - vlccore
36 36
37if [ "${PV%9999}" = "${PV}" ] ; then 37if [ "${PV%9999}" = "${PV}" ] ; then
38 KEYWORDS="~amd64 ~arm ~ppc -sparc ~x86 ~amd64-fbsd ~x86-fbsd" 38 KEYWORDS="~amd64 ~arm ~ppc -sparc ~x86 ~x86-fbsd"
39else 39else
40 KEYWORDS="" 40 KEYWORDS=""
41fi 41fi
42 42
43IUSE="a52 aalib alsa altivec atmo +audioqueue avahi +avcodec 43IUSE="a52 aalib alsa altivec atmo +audioqueue avahi +avcodec
114 png? ( media-libs/libpng:0= sys-libs/zlib:0 ) 114 png? ( media-libs/libpng:0= sys-libs/zlib:0 )
115 postproc? ( || ( >=media-video/ffmpeg-1.2:0 media-libs/libpostproc:0 ) ) 115 postproc? ( || ( >=media-video/ffmpeg-1.2:0 media-libs/libpostproc:0 ) )
116 projectm? ( media-libs/libprojectm:0 media-fonts/dejavu:0 ) 116 projectm? ( media-libs/libprojectm:0 media-fonts/dejavu:0 )
117 pulseaudio? ( >=media-sound/pulseaudio-1:0 ) 117 pulseaudio? ( >=media-sound/pulseaudio-1:0 )
118 qt4? ( >=dev-qt/qtgui-4.6:4 >=dev-qt/qtcore-4.6:4 ) 118 qt4? ( >=dev-qt/qtgui-4.6:4 >=dev-qt/qtcore-4.6:4 )
119 qt5? ( >=dev-qt/qtgui-5.1:5 >=dev-qt/qtcore-5.1:5 dev-qt/qtwidgets:5 ) 119 qt5? ( >=dev-qt/qtgui-5.1:5 >=dev-qt/qtcore-5.1:5 >=dev-qt/qtwidgets-5.1:5 >=dev-qt/qtx11extras-5.1:5 )
120 rdp? ( >=net-misc/freerdp-1.0.1:0= ) 120 rdp? ( >=net-misc/freerdp-1.0.1:0= )
121 samba? ( || ( >=net-fs/samba-3.4.6:0[smbclient] >=net-fs/samba-4:0[client] ) ) 121 samba? ( || ( >=net-fs/samba-3.4.6:0[smbclient] >=net-fs/samba-4:0[client] ) )
122 schroedinger? ( >=media-libs/schroedinger-1.0.10:0 ) 122 schroedinger? ( >=media-libs/schroedinger-1.0.10:0 )
123 sdl? ( >=media-libs/libsdl-1.2.10:0 123 sdl? ( >=media-libs/libsdl-1.2.10:0
124 sdl-image? ( >=media-libs/sdl-image-1.2.10:0 sys-libs/zlib:0 ) ) 124 sdl-image? ( >=media-libs/sdl-image-1.2.10:0 sys-libs/zlib:0 ) )
136 !fontconfig? ( media-fonts/dejavu:0 ) ) 136 !fontconfig? ( media-fonts/dejavu:0 ) )
137 twolame? ( media-sound/twolame:0 ) 137 twolame? ( media-sound/twolame:0 )
138 udev? ( >=virtual/udev-142:0 ) 138 udev? ( >=virtual/udev-142:0 )
139 upnp? ( net-libs/libupnp:0 ) 139 upnp? ( net-libs/libupnp:0 )
140 v4l? ( media-libs/libv4l:0 ) 140 v4l? ( media-libs/libv4l:0 )
141 vaapi? ( x11-libs/libva:0 virtual/ffmpeg[vaapi] ) 141 vaapi? ( x11-libs/libva:0[X,drm] virtual/ffmpeg[vaapi] )
142 vcdx? ( >=dev-libs/libcdio-0.78.2:0 >=media-video/vcdimager-0.7.22:0 )" 142 vcdx? ( >=dev-libs/libcdio-0.78.2:0 >=media-video/vcdimager-0.7.22:0 )"
143 143
144# Temporarily block non-live FFMPEG versions as they break vdpau, 9999 works; 144# Temporarily block non-live FFMPEG versions as they break vdpau, 9999 works;
145# thus we'll have to wait for a new release there. 145# thus we'll have to wait for a new release there.
146RDEPEND="${RDEPEND} 146RDEPEND="${RDEPEND}
244 epatch "${FILESDIR}"/${P}-libva-1.2.1-compat.patch 244 epatch "${FILESDIR}"/${P}-libva-1.2.1-compat.patch
245 245
246 # Fix up broken audio when skipping using a fixed reversed bisected commit. 246 # Fix up broken audio when skipping using a fixed reversed bisected commit.
247 epatch "${FILESDIR}"/${PN}-2.1.0-TomWij-bisected-PA-broken-underflow.patch 247 epatch "${FILESDIR}"/${PN}-2.1.0-TomWij-bisected-PA-broken-underflow.patch
248 248
249 # Disable avcodec checks when avcodec is not used.
250 if ! use avcodec; then
251 sed -i 's/^#if LIBAVCODEC_VERSION_CHECK(.*)$/#if 0/' modules/codec/avcodec/fourcc.c || die
252 fi
253
254 # Don't use --started-from-file when not using dbus. 249 # Don't use --started-from-file when not using dbus.
255 if ! use dbus ; then 250 if ! use dbus ; then
256 sed -i 's/ --started-from-file//' share/vlc.desktop.in || die 251 sed -i 's/ --started-from-file//' share/vlc.desktop.in || die
257 fi 252 fi
258 253
259 eautoreconf 254 eautoreconf
260 255
261 # Disable automatic running of tests. 256 # Disable automatic running of tests.
262 find . -name 'Makefile.in' -exec sed -i 's/\(..*\)check-TESTS/\1/' {} \; || die 257 find . -name 'Makefile.in' -exec sed -i 's/\(..*\)check-TESTS/\1/' {} \; || die
258
259 # If qtchooser is installed, it may break the build, because moc,rcc and uic binaries for wrong qt version may be used.
260 # Setting QT_SELECT environment variable will enforce correct binaries.
261 if use qt4; then
262 export QT_SELECT=qt4
263 elif use qt5; then
264 export QT_SELECT=qt5
265 fi
263} 266}
264 267
265src_configure() { 268src_configure() {
266 # Compatibility fix for Samba 4. 269 # Compatibility fix for Samba 4.
267 use samba && append-cppflags "-I/usr/include/samba-4.0" 270 use samba && append-cppflags "-I/usr/include/samba-4.0"
271
272 # We need to disable -fstack-check if use >=gcc 4.8.0.
273 # See bug #499996
274 use x86 && append-cflags $(test-flags-CC -fno-stack-check)
268 275
269 # Needs libresid-builder from libsidplay:2 which is in another directory... 276 # Needs libresid-builder from libsidplay:2 which is in another directory...
270 # FIXME! 277 # FIXME!
271 append-ldflags "-L/usr/$(get_libdir)/sidplay/builders/" 278 append-ldflags "-L/usr/$(get_libdir)/sidplay/builders/"
272 279

Legend:
Removed from v.1.225  
changed lines
  Added in v.1.228

  ViewVC Help
Powered by ViewVC 1.1.20