/[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.3 - (hide annotations) (download)
Fri Aug 19 16:37:27 2011 UTC (3 years, 1 month ago) by xarthisius
Branch: MAIN
Changes since 1.2: +2 -2 lines
ppc/ppc64 stable wrt #378801

(Portage version: 2.2.0_alpha51/cvs/Linux x86_64)

1 aballier 1.1 # Copyright 1999-2011 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 xarthisius 1.3 # $Header: /var/cvsroot/gentoo-x86/media-video/x264-encoder/x264-encoder-0.0.20110426.ebuild,v 1.2 2011/08/19 15:57:32 tomka 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 xarthisius 1.3 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     dev-util/pkgconfig"
28    
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