/[gentoo-x86]/media-video/x264-encoder/x264-encoder-9999.ebuild
Gentoo

Diff of /media-video/x264-encoder/x264-encoder-9999.ebuild

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

Revision 1.2 Revision 1.3
1# Copyright 1999-2011 Gentoo Foundation 1# Copyright 1999-2011 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/x264-encoder/x264-encoder-9999.ebuild,v 1.2 2011/09/03 18:30:29 maksbotan Exp $ 3# $Header: /var/cvsroot/gentoo-x86/media-video/x264-encoder/x264-encoder-9999.ebuild,v 1.3 2011/09/07 15:09:35 aballier 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"
29if [ "${PV#9999}" != "${PV}" ] ; then 29if [ "${PV#9999}" != "${PV}" ] ; then
30 KEYWORDS="" 30 KEYWORDS=""
31else 31else
32 KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" 32 KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
33fi 33fi
34IUSE="debug ffmpeg ffmpegsource mp4 +system-libx264 +threads" 34IUSE="debug ffmpeg ffmpegsource mp4 +threads"
35 35
36REQUIRED_USE="ffmpegsource? ( ffmpeg )" 36REQUIRED_USE="ffmpegsource? ( ffmpeg )"
37 37
38RDEPEND=" 38RDEPEND="
39 ffmpeg? ( virtual/ffmpeg ) 39 ffmpeg? ( virtual/ffmpeg )
40 ffmpegsource? ( media-libs/ffmpegsource ) 40 ffmpegsource? ( media-libs/ffmpegsource )
41 mp4? ( >=media-video/gpac-0.4.1_pre20060122 ) 41 mp4? ( >=media-video/gpac-0.4.1_pre20060122 )
42 system-libx264? ( ~media-libs/x264-${PV} ) 42 ~media-libs/x264-${PV}
43" 43"
44ASM_DEP=">=dev-lang/yasm-0.6.2" 44ASM_DEP=">=dev-lang/yasm-0.6.2"
45DEPEND="${RDEPEND} 45DEPEND="${RDEPEND}
46 amd64? ( ${ASM_DEP} ) 46 amd64? ( ${ASM_DEP} )
47 x86? ( || ( ${ASM_DEP} dev-lang/nasm ) 47 x86? ( || ( ${ASM_DEP} dev-lang/nasm )
59 local myconf="" 59 local myconf=""
60 use debug && myconf+=" --enable-debug" 60 use debug && myconf+=" --enable-debug"
61 use ffmpeg || myconf+=" --disable-lavf --disable-swscale" 61 use ffmpeg || myconf+=" --disable-lavf --disable-swscale"
62 use ffmpegsource || myconf+=" --disable-ffms" 62 use ffmpegsource || myconf+=" --disable-ffms"
63 use mp4 || myconf+=" --disable-gpac" 63 use mp4 || myconf+=" --disable-gpac"
64 use system-libx264 && myconf+=" --system-libx264"
65 use threads || myconf+=" --disable-thread" 64 use threads || myconf+=" --disable-thread"
66 65
67 ./configure \ 66 ./configure \
68 --prefix="${EPREFIX}"/usr \ 67 --prefix="${EPREFIX}"/usr \
69 --libdir="${EPREFIX}"/usr/$(get_libdir) \ 68 --libdir="${EPREFIX}"/usr/$(get_libdir) \
70 --disable-avs \ 69 --disable-avs \
71 --extra-asflags="${ASFLAGS}" \ 70 --extra-asflags="${ASFLAGS}" \
72 --extra-cflags="${CFLAGS}" \ 71 --extra-cflags="${CFLAGS}" \
73 --extra-ldflags="${LDFLAGS}" \ 72 --extra-ldflags="${LDFLAGS}" \
74 --host="${CHOST}" \ 73 --host="${CHOST}" \
74 --system-libx264 \
75 ${myconf} || die 75 ${myconf} || die
76} 76}

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

  ViewVC Help
Powered by ViewVC 1.1.20