/[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.227 Revision 1.230
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.227 2014/11/16 14:37:22 dlan Exp $ 3# $Header: /var/cvsroot/gentoo-x86/media-video/vlc/vlc-9999.ebuild,v 1.230 2015/01/26 13:53:45 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
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
253 250
254 eautoreconf 251 eautoreconf
255 252
256 # Disable automatic running of tests. 253 # Disable automatic running of tests.
257 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
258} 263}
259 264
260src_configure() { 265src_configure() {
261 # Compatibility fix for Samba 4. 266 # Compatibility fix for Samba 4.
262 use samba && append-cppflags "-I/usr/include/samba-4.0" 267 use samba && append-cppflags "-I/usr/include/samba-4.0"
429 --disable-vda \ 434 --disable-vda \
430 --disable-vsxu \ 435 --disable-vsxu \
431 --disable-wasapi 436 --disable-wasapi
432 437
433 # ^ 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
434} 444}
435 445
436src_test() { 446src_test() {
437 Xemake check-TESTS 447 Xemake check-TESTS
438} 448}

Legend:
Removed from v.1.227  
changed lines
  Added in v.1.230

  ViewVC Help
Powered by ViewVC 1.1.20