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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

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

1 jdhore 1.6 # Copyright 1999-2012 Gentoo Foundation
2 aballier 1.1 # Distributed under the terms of the GNU General Public License v2
3 jdhore 1.6 # $Header: /var/cvsroot/gentoo-x86/media-video/x264-encoder/x264-encoder-0.0.20110426.ebuild,v 1.5 2011/08/27 17:48:17 armin76 Exp $
4 aballier 1.1
5     EAPI=2
6     inherit eutils multilib toolchain-funcs versionator
7    
8     MY_P=x264-snapshot-$(get_version_component_range 3)-2245
9    
10     DESCRIPTION="A free commandline encoder for X264/AVC streams"
11     HOMEPAGE="http://www.videolan.org/developers/x264.html"
12     SRC_URI="http://ftp.videolan.org/pub/videolan/x264/snapshots/${MY_P}.tar.bz2"
13    
14     LICENSE="GPL-2"
15     SLOT="0"
16 armin76 1.5 KEYWORDS="alpha amd64 ppc ppc64 sparc x86 ~x86-fbsd"
17 aballier 1.1 IUSE="debug ffmpeg +mp4 +threads"
18    
19     RDEPEND="mp4? ( >=media-video/gpac-0.4.1_pre20060122 )
20     ~media-libs/x264-${PV}
21     ffmpeg? ( virtual/ffmpeg )"
22     DEPEND="${RDEPEND}
23     amd64? ( >=dev-lang/yasm-0.6.2 )
24     x86? ( || ( >=dev-lang/yasm-0.6.2 dev-lang/nasm )
25     !<dev-lang/yasm-0.6.2 )
26     x86-fbsd? ( >=dev-lang/yasm-0.6.2 )
27 jdhore 1.6 virtual/pkgconfig"
28 aballier 1.1
29     S="${WORKDIR}/${MY_P}"
30    
31     src_prepare() {
32     epatch "${FILESDIR}"/${PN}-nostrip.patch \
33     "${FILESDIR}"/${PN}-nolib-20110425.patch
34     }
35    
36     src_configure() {
37     tc-export CC
38    
39     local myconf=""
40     use debug && myconf="${myconf} --enable-debug"
41    
42     ./configure \
43     --prefix=/usr \
44     --libdir=/usr/$(get_libdir) \
45     --disable-avs \
46     $(use_enable ffmpeg lavf) \
47     $(use_enable ffmpeg swscale) \
48     $(use_enable mp4 gpac) \
49     $(use_enable threads thread) \
50     --extra-asflags="${ASFLAGS}" \
51     --extra-cflags="${CFLAGS}" \
52     --extra-ldflags="${LDFLAGS}" \
53     --host="${CHOST}" \
54     ${myconf} \
55     || die
56     }
57    
58     src_install() {
59     emake DESTDIR="${D}" install || die
60     }

  ViewVC Help
Powered by ViewVC 1.1.20