diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2012-07-08 17:27:19 +0000 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2012-07-08 17:27:19 +0000 |
commit | 45d151090a9d07f1c40e42c5d4fae9f9337f4519 (patch) | |
tree | 7290cbdbc30c0798076fc64f473d1f12cd4f1050 /media-libs | |
parent | ia64/m68k/s390/sh/sparc stable wrt #384483 (diff) | |
download | gentoo-2-45d151090a9d07f1c40e42c5d4fae9f9337f4519.tar.gz gentoo-2-45d151090a9d07f1c40e42c5d4fae9f9337f4519.tar.bz2 gentoo-2-45d151090a9d07f1c40e42c5d4fae9f9337f4519.zip |
version bump
(Portage version: 2.2.0_alpha116/cvs/Linux x86_64)
Diffstat (limited to 'media-libs')
-rw-r--r-- | media-libs/x264/ChangeLog | 7 | ||||
-rw-r--r-- | media-libs/x264/x264-0.0.20120707.ebuild | 88 |
2 files changed, 94 insertions, 1 deletions
diff --git a/media-libs/x264/ChangeLog b/media-libs/x264/ChangeLog index 8961f41328f9..7d88e23bd36a 100644 --- a/media-libs/x264/ChangeLog +++ b/media-libs/x264/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for media-libs/x264 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-libs/x264/ChangeLog,v 1.73 2012/05/15 13:12:19 aballier Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-libs/x264/ChangeLog,v 1.74 2012/07/08 17:27:19 lu_zero Exp $ + +*x264-0.0.20120707 (08 Jul 2012) + + 08 Jul 2012; Luca Barbato <lu_zero@gentoo.org> +x264-0.0.20120707.ebuild: + version bump 15 May 2012; Alexis Ballier <aballier@gentoo.org> x264-0.0.20120327.ebuild, x264-9999.ebuild: diff --git a/media-libs/x264/x264-0.0.20120707.ebuild b/media-libs/x264/x264-0.0.20120707.ebuild new file mode 100644 index 000000000000..4b0794b9a1af --- /dev/null +++ b/media-libs/x264/x264-0.0.20120707.ebuild @@ -0,0 +1,88 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/x264/x264-0.0.20120707.ebuild,v 1.1 2012/07/08 17:27:19 lu_zero Exp $ + +EAPI=4 + +if [ "${PV#9999}" != "${PV}" ] ; then + V_ECLASS="git-2" +else + V_ECLASS="versionator" +fi + +inherit multilib toolchain-funcs flag-o-matic ${V_ECLASS} + +if [ "${PV#9999}" = "${PV}" ]; then + MY_P="x264-snapshot-$(get_version_component_range 3)-2245" +fi +DESCRIPTION="A free library for encoding X264/AVC streams" +HOMEPAGE="http://www.videolan.org/developers/x264.html" +if [ "${PV#9999}" != "${PV}" ] ; then + EGIT_REPO_URI="git://git.videolan.org/x264.git" + SRC_URI="" +else + SRC_URI="http://download.videolan.org/pub/videolan/x264/snapshots/${MY_P}.tar.bz2" +fi + +LICENSE="GPL-2" +SLOT="0" +if [ "${PV#9999}" != "${PV}" ]; then + KEYWORDS="" +else + KEYWORDS="~alpha ~amd64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" +fi +IUSE="10bit custom-cflags debug +interlaced pic static-libs +threads" + +RDEPEND="" +DEPEND="amd64? ( >=dev-lang/yasm-1 ) + x86? ( >=dev-lang/yasm-1 ) + x86-fbsd? ( >=dev-lang/yasm-1 )" + +if [ "${PV#9999}" = "${PV}" ]; then + S="${WORKDIR}/${MY_P}" +fi + +DOCS="AUTHORS doc/*.txt" + +src_configure() { + tc-export CC + + local myconf="" + use 10bit && myconf+=" --bit-depth=10" + use debug && myconf+=" --enable-debug" + use interlaced || myconf+=" --disable-interlaced" + use static-libs && myconf+=" --enable-static" + use threads || myconf+=" --disable-thread" + + # let upstream pick the optimization level by default + use custom-cflags || filter-flags -O? + + if use x86 && use pic; then + myconf+=" --disable-asm" + fi + + ./configure \ + --prefix="${EPREFIX}"/usr \ + --libdir="${EPREFIX}"/usr/$(get_libdir) \ + --disable-cli \ + --disable-avs \ + --disable-lavf \ + --disable-swscale \ + --disable-ffms \ + --disable-gpac \ + --enable-pic \ + --enable-shared \ + --host="${CHOST}" \ + ${myconf} || die + + # this is a nasty workaround for bug #376925 as upstream doesn't like us + # fiddling with their CFLAGS + if use custom-cflags; then + local cflags + cflags="$(grep "^CFLAGS=" config.mak | sed 's/CFLAGS=//')" + cflags="${cflags//$(get-flag O)/}" + cflags="${cflags//-O? /$(get-flag O) }" + cflags="${cflags//-g /}" + sed -i "s:^CFLAGS=.*:CFLAGS=${cflags//:/\\:}:" config.mak + fi +} |