/[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.226 Revision 1.231
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.226 2014/11/15 11:56:20 hwoarang Exp $ 3# $Header: /var/cvsroot/gentoo-x86/media-video/vlc/vlc-9999.ebuild,v 1.231 2015/01/30 05:25:45 mgorny 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
45 directfb directx dts dvb +dvbpsi dvd dxva2 elibc_glibc +encode faad fdk 45 directfb directx dts dvb +dvbpsi dvd dxva2 elibc_glibc +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 jack jpeg kate kde libass libcaca libnotify 47 growl httpd ieee1394 jack jpeg kate kde libass libcaca libnotify
48 libsamplerate libtiger linsys libtar lirc live lua 48 libsamplerate libtiger linsys libtar lirc live lua
49 macosx-dialog-provider macosx-eyetv macosx-quartztext macosx-qtkit 49 macosx-dialog-provider macosx-eyetv macosx-quartztext macosx-qtkit
50 matroska media-library mmx modplug mp3 mpeg 50 matroska media-library cpu_flags_x86_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 cpu_flags_x86_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 x265 +xcb xml xv zvbi" 55 vlm vnc vorbis vpx wma-fixed +X x264 x265 +xcb xml xv zvbi"
56 56
57RDEPEND=" 57RDEPEND="
58 !<media-video/ffmpeg-1.2:0 58 !<media-video/ffmpeg-1.2:0
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 ) )
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
345 $(use_enable macosx-dialog-provider) \ 349 $(use_enable macosx-dialog-provider) \
346 $(use_enable macosx-eyetv) \ 350 $(use_enable macosx-eyetv) \
347 $(use_enable macosx-qtkit) \ 351 $(use_enable macosx-qtkit) \
348 $(use_enable macosx-quartztext) \ 352 $(use_enable macosx-quartztext) \
349 $(use_enable matroska mkv) \ 353 $(use_enable matroska mkv) \
350 $(use_enable mmx) \ 354 $(use_enable cpu_flags_x86_mmx mmx) \
351 $(use_enable modplug mod) \ 355 $(use_enable modplug mod) \
352 $(use_enable mp3 mad) \ 356 $(use_enable mp3 mad) \
353 $(use_enable mpeg libmpeg2) \ 357 $(use_enable mpeg libmpeg2) \
354 $(use_enable mtp) \ 358 $(use_enable mtp) \
355 $(use_enable musepack mpc) \ 359 $(use_enable musepack mpc) \
377 $(use_enable sid) \ 381 $(use_enable sid) \
378 $(use_enable sftp) \ 382 $(use_enable sftp) \
379 $(use_enable shout) \ 383 $(use_enable shout) \
380 $(use_enable skins skins2) \ 384 $(use_enable skins skins2) \
381 $(use_enable speex) \ 385 $(use_enable speex) \
382 $(use_enable sse) \ 386 $(use_enable cpu_flags_x86_sse sse) \
383 $(use_enable svg) \ 387 $(use_enable svg) \
384 $(use_enable svg svgdec) \ 388 $(use_enable svg svgdec) \
385 $(use_enable swscale) \ 389 $(use_enable swscale) \
386 $(use_enable taglib) \ 390 $(use_enable taglib) \
387 $(use_enable theora) \ 391 $(use_enable theora) \
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.226  
changed lines
  Added in v.1.231

  ViewVC Help
Powered by ViewVC 1.1.20