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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sat May 5 08:58:56 2012 UTC (2 years, 6 months ago) by jdhore
Branch: MAIN
Changes since 1.3: +3 -3 lines
dev-util/pkgconfig -> virtual/pkgconfig

(Portage version: 2.2.0_alpha101/cvs/Linux i686)

1 # Copyright 1999-2012 Gentoo Foundation
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.3 2011/09/07 15:09:35 aballier Exp $
4
5 EAPI=4
6
7 if [ "${PV#9999}" != "${PV}" ] ; then
8 V_ECLASS="git-2"
9 else
10 V_ECLASS="versionator"
11 fi
12
13 inherit multilib toolchain-funcs ${V_ECLASS}
14
15 if [ "${PV#9999}" = "${PV}" ] ; then
16 MY_P="x264-snapshot-$(get_version_component_range 3)-2245-stable"
17 fi
18 DESCRIPTION="A free commandline encoder for X264/AVC streams"
19 HOMEPAGE="http://www.videolan.org/developers/x264.html"
20 if [ "${PV#9999}" != "${PV}" ] ; then
21 EGIT_REPO_URI="git://git.videolan.org/x264.git"
22 SRC_URI=""
23 else
24 SRC_URI="http://download.videolan.org/pub/videolan/x264/snapshots/${MY_P}.tar.bz2"
25 fi
26
27 LICENSE="GPL-2"
28 SLOT="0"
29 if [ "${PV#9999}" != "${PV}" ] ; then
30 KEYWORDS=""
31 else
32 KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
33 fi
34 IUSE="debug ffmpeg ffmpegsource mp4 +threads"
35
36 REQUIRED_USE="ffmpegsource? ( ffmpeg )"
37
38 RDEPEND="
39 ffmpeg? ( virtual/ffmpeg )
40 ffmpegsource? ( media-libs/ffmpegsource )
41 mp4? ( >=media-video/gpac-0.4.1_pre20060122 )
42 ~media-libs/x264-${PV}
43 "
44 ASM_DEP=">=dev-lang/yasm-0.6.2"
45 DEPEND="${RDEPEND}
46 amd64? ( ${ASM_DEP} )
47 x86? ( || ( ${ASM_DEP} dev-lang/nasm )
48 !<dev-lang/yasm-0.6.2 )
49 x86-fbsd? ( ${ASM_DEP} )
50 virtual/pkgconfig
51 "
52 if [ "${PV#9999}" = "${PV}" ] ; then
53 S=${WORKDIR}/${MY_P}
54 fi
55
56 src_configure() {
57 tc-export CC
58
59 local myconf=""
60 use debug && myconf+=" --enable-debug"
61 use ffmpeg || myconf+=" --disable-lavf --disable-swscale"
62 use ffmpegsource || myconf+=" --disable-ffms"
63 use mp4 || myconf+=" --disable-gpac"
64 use threads || myconf+=" --disable-thread"
65
66 ./configure \
67 --prefix="${EPREFIX}"/usr \
68 --libdir="${EPREFIX}"/usr/$(get_libdir) \
69 --disable-avs \
70 --extra-asflags="${ASFLAGS}" \
71 --extra-cflags="${CFLAGS}" \
72 --extra-ldflags="${LDFLAGS}" \
73 --host="${CHOST}" \
74 --system-libx264 \
75 ${myconf} || die
76 }

  ViewVC Help
Powered by ViewVC 1.1.20