/[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.1 Revision 1.2
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.1 2011/05/28 12:04:21 radhermit Exp $ 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 $
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"
11fi 11fi
12 12
13inherit multilib toolchain-funcs ${V_ECLASS} 13inherit multilib toolchain-funcs ${V_ECLASS}
14 14
15if [ "${PV#9999}" = "${PV}" ] ; then 15if [ "${PV#9999}" = "${PV}" ] ; then
16 MY_P="x264-snapshot-$(get_version_component_range 3)-2245" 16 MY_P="x264-snapshot-$(get_version_component_range 3)-2245-stable"
17fi 17fi
18DESCRIPTION="A free commandline encoder for X264/AVC streams" 18DESCRIPTION="A free commandline encoder for X264/AVC streams"
19HOMEPAGE="http://www.videolan.org/developers/x264.html" 19HOMEPAGE="http://www.videolan.org/developers/x264.html"
20if [ "${PV#9999}" != "${PV}" ] ; then 20if [ "${PV#9999}" != "${PV}" ] ; then
21 EGIT_REPO_URI="git://git.videolan.org/x264.git" 21 EGIT_REPO_URI="git://git.videolan.org/x264.git"
22 SRC_URI="" 22 SRC_URI=""
23else 23else
24 SRC_URI="http://ftp.videolan.org/pub/videolan/x264/snapshots/${MY_P}.tar.bz2" 24 SRC_URI="http://download.videolan.org/pub/videolan/x264/snapshots/${MY_P}.tar.bz2"
25fi 25fi
26 26
27LICENSE="GPL-2" 27LICENSE="GPL-2"
28SLOT="0" 28SLOT="0"
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 mp4 +system-libx264 +threads" 34IUSE="debug ffmpeg ffmpegsource mp4 +system-libx264 +threads"
35
36REQUIRED_USE="ffmpegsource? ( ffmpeg )"
35 37
36RDEPEND=" 38RDEPEND="
37 ffmpeg? ( media-video/ffmpeg ) 39 ffmpeg? ( virtual/ffmpeg )
40 ffmpegsource? ( media-libs/ffmpegsource )
38 mp4? ( >=media-video/gpac-0.4.1_pre20060122 ) 41 mp4? ( >=media-video/gpac-0.4.1_pre20060122 )
39 system-libx264? ( ~media-libs/x264-${PV} ) 42 system-libx264? ( ~media-libs/x264-${PV} )
40" 43"
41ASM_DEP=">=dev-lang/yasm-0.6.2" 44ASM_DEP=">=dev-lang/yasm-0.6.2"
42DEPEND="${RDEPEND} 45DEPEND="${RDEPEND}
54 tc-export CC 57 tc-export CC
55 58
56 local myconf="" 59 local myconf=""
57 use debug && myconf+=" --enable-debug" 60 use debug && myconf+=" --enable-debug"
58 use ffmpeg || myconf+=" --disable-lavf --disable-swscale" 61 use ffmpeg || myconf+=" --disable-lavf --disable-swscale"
62 use ffmpegsource || myconf+=" --disable-ffms"
59 use mp4 || myconf+=" --disable-gpac" 63 use mp4 || myconf+=" --disable-gpac"
60 use system-libx264 && myconf+=" --system-libx264" 64 use system-libx264 && myconf+=" --system-libx264"
61 use threads || myconf+=" --disable-thread" 65 use threads || myconf+=" --disable-thread"
62 66
63 ./configure \ 67 ./configure \
64 --prefix="${EPREFIX}"/usr \ 68 --prefix="${EPREFIX}"/usr \
65 --libdir="${EPREFIX}"/usr/$(get_libdir) \ 69 --libdir="${EPREFIX}"/usr/$(get_libdir) \
66 --disable-avs \ 70 --disable-avs \
67 --disable-ffms \
68 --extra-asflags="${ASFLAGS}" \ 71 --extra-asflags="${ASFLAGS}" \
69 --extra-cflags="${CFLAGS}" \ 72 --extra-cflags="${CFLAGS}" \
70 --extra-ldflags="${LDFLAGS}" \ 73 --extra-ldflags="${LDFLAGS}" \
71 --host="${CHOST}" \ 74 --host="${CHOST}" \
72 ${myconf} \ 75 ${myconf} || die
73 || die
74} 76}

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

  ViewVC Help
Powered by ViewVC 1.1.20