/[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.229
1# Copyright 1999-2014 Gentoo Foundation 1# Copyright 1999-2015 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.229 2015/01/26 13:45:35 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}
221 # http://gcc.gnu.org/c99status.html 221 # http://gcc.gnu.org/c99status.html
222 if [[ "$(tc-getCC)" == *"gcc"* ]] ; then 222 if [[ "$(tc-getCC)" == *"gcc"* ]] ; then
223 sed -i 's/ifndef __FAST_MATH__/if 0/g' configure.ac || die 223 sed -i 's/ifndef __FAST_MATH__/if 0/g' configure.ac || die
224 fi 224 fi
225 225
226 # _FORTIFY_SOURCE is set to 2 by default on Gentoo, remove redefine warnings.
227 sed -i '/_FORTIFY_SOURCE.*, 2,/d' configure.ac || die
228
229 # Bootstrap when we are on a git checkout. 226 # Bootstrap when we are on a git checkout.
230 if [[ "${PV%9999}" != "${PV}" ]] ; then 227 if [[ "${PV%9999}" != "${PV}" ]] ; then
231 ./bootstrap 228 ./bootstrap
232 fi 229 fi
233 230
244 epatch "${FILESDIR}"/${P}-libva-1.2.1-compat.patch 241 epatch "${FILESDIR}"/${P}-libva-1.2.1-compat.patch
245 242
246 # Fix up broken audio when skipping using a fixed reversed bisected commit. 243 # 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 244 epatch "${FILESDIR}"/${PN}-2.1.0-TomWij-bisected-PA-broken-underflow.patch
248 245
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. 246 # Don't use --started-from-file when not using dbus.
255 if ! use dbus ; then 247 if ! use dbus ; then
256 sed -i 's/ --started-from-file//' share/vlc.desktop.in || die 248 sed -i 's/ --started-from-file//' share/vlc.desktop.in || die
257 fi 249 fi
258 250
259 eautoreconf 251 eautoreconf
260 252
261 # Disable automatic running of tests. 253 # Disable automatic running of tests.
262 find . -name 'Makefile.in' -exec sed -i 's/\(..*\)check-TESTS/\1/' {} \; || die 254 find . -name 'Makefile.in' -exec sed -i 's/\(..*\)check-TESTS/\1/' {} \; || die
255
256 # If qtchooser is installed, it may break the build, because moc,rcc and uic binaries for wrong qt version may be used.
257 # Setting QT_SELECT environment variable will enforce correct binaries.
258 if use qt4; then
259 export QT_SELECT=qt4
260 elif use qt5; then
261 export QT_SELECT=qt5
262 fi
263} 263}
264 264
265src_configure() { 265src_configure() {
266 # Compatibility fix for Samba 4. 266 # Compatibility fix for Samba 4.
267 use samba && append-cppflags "-I/usr/include/samba-4.0" 267 use samba && append-cppflags "-I/usr/include/samba-4.0"
268
269 # We need to disable -fstack-check if use >=gcc 4.8.0.
270 # See bug #499996
271 use x86 && append-cflags $(test-flags-CC -fno-stack-check)
268 272
269 # Needs libresid-builder from libsidplay:2 which is in another directory... 273 # Needs libresid-builder from libsidplay:2 which is in another directory...
270 # FIXME! 274 # FIXME!
271 append-ldflags "-L/usr/$(get_libdir)/sidplay/builders/" 275 append-ldflags "-L/usr/$(get_libdir)/sidplay/builders/"
272 276
430 --disable-vda \ 434 --disable-vda \
431 --disable-vsxu \ 435 --disable-vsxu \
432 --disable-wasapi 436 --disable-wasapi
433 437
434 # ^ We don't have these disabled libraries in the Portage tree yet. 438 # ^ We don't have these disabled libraries in the Portage tree yet.
439
440 # _FORTIFY_SOURCE is set to 2 in config.h, which is also the default value on Gentoo.
441 # Other values of _FORTIFY_SOURCE may break the build (bug 523144), so definition should not be removed from config.h.
442 # To prevent redefinition warnings, we undefine _FORTIFY_SOURCE at the very start of config.h file
443 sed -i '1i#undef _FORTIFY_SOURCE' ${S}/config.h || die
435} 444}
436 445
437src_test() { 446src_test() {
438 Xemake check-TESTS 447 Xemake check-TESTS
439} 448}

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

  ViewVC Help
Powered by ViewVC 1.1.20