/[gentoo-x86]/media-libs/x264/x264-0.0.20120707.ebuild
Gentoo

Diff of /media-libs/x264/x264-0.0.20120707.ebuild

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

Revision 1.2 Revision 1.3
1# Copyright 1999-2012 Gentoo Foundation 1# Copyright 1999-2012 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-libs/x264/x264-0.0.20120707.ebuild,v 1.2 2012/09/01 10:21:10 lu_zero Exp $ 3# $Header: /var/cvsroot/gentoo-x86/media-libs/x264/x264-0.0.20120707.ebuild,v 1.3 2012/09/25 03:11:57 vapier Exp $
4 4
5EAPI=4 5EAPI=4
6 6
7if [ "${PV#9999}" != "${PV}" ] ; then 7if [ "${PV#9999}" != "${PV}" ] ; then
8 V_ECLASS="git-2" 8 V_ECLASS="git-2"
55 if [[ ${CHOST} == sparc*-solaris* ]] ; then 55 if [[ ${CHOST} == sparc*-solaris* ]] ; then
56 sed -i -e 's:-DPIC::g' configure || die 56 sed -i -e 's:-DPIC::g' configure || die
57 fi 57 fi
58 # for OSX 58 # for OSX
59 sed -i -e "s|-arch x86_64||g" configure || die 59 sed -i -e "s|-arch x86_64||g" configure || die
60 epatch "${FILESDIR}"/x264-x32.patch #420241
60} 61}
61 62
62src_configure() { 63src_configure() {
63 tc-export CC 64 tc-export CC
64 65
70 use threads || myconf+=" --disable-thread" 71 use threads || myconf+=" --disable-thread"
71 72
72 # let upstream pick the optimization level by default 73 # let upstream pick the optimization level by default
73 use custom-cflags || filter-flags -O? 74 use custom-cflags || filter-flags -O?
74 75
75 if use x86 && use pic; then 76 if use x86 && use pic || [[ ${ABI} == "x32" ]] ; then
76 myconf+=" --disable-asm" 77 myconf+=" --disable-asm"
77 fi 78 fi
78 79
79 ./configure \ 80 ./configure \
80 --prefix="${EPREFIX}"/usr \ 81 --prefix="${EPREFIX}"/usr \

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.13