media-libs/x264: bump a new snapshot
authorAlexis Ballier <aballier@gentoo.org>
Sun, 2 Jul 2017 09:41:24 +0000 (11:41 +0200)
committerAlexis Ballier <aballier@gentoo.org>
Sun, 2 Jul 2017 10:04:40 +0000 (12:04 +0200)
Package-Manager: Portage-2.3.6, Repoman-2.3.2

media-libs/x264/Manifest
media-libs/x264/x264-0.0.20170701.ebuild [new file with mode: 0644]
media-libs/x264/x264-9999.ebuild

index a8c41735ff357190783a1f44fc2744eae29ba9f6..5343ed75b11a4b8a4aee2640ae4225bdfc8760f9 100644 (file)
@@ -1 +1,2 @@
 DIST x264-snapshot-20160712-2245.tar.bz2 730644 SHA256 d5033882bbc7e2908f74970931c7dc2044191cc9fa7c7435dc85ad334f23078e SHA512 ac97730611e6194701a891a7e73c739696664de2411a7937ab0c36a3ce843f22bf2bd2defe053c2506d95652842b99a905b6f16a2f016a9d73059c2c75b71963 WHIRLPOOL d42459a93e8ff1b69d16f7adecaf3486d102e6fe4ee0d8dd991cdbb7a233bb9975faabc79ff7d2dfd2f67fa1f69a729e617ae868ee127cc0306dfc897db7053b
+DIST x264-snapshot-20170701-2245.tar.bz2 750527 SHA256 6ca4863cda3c7c24923ebd2c062c001a05283d50922292ee55dfda7811782380 SHA512 28fc9850c36ac385fced6dec9a0f68a5605a68805e1ef7b8cedcd78917eaa1ad6e47e57fe5a74fee0a6e482f3a33de6011f675e6c77b5db94c8fe01d5c5f3e9f WHIRLPOOL 063c0d3685d961b96101c98110345d1b283dbfe2b2098be51b4cb55f9d0551e80d01d449a2622ebba457a5a8374f5c2783351e2e1f0bfabf150be27dbcc07965
diff --git a/media-libs/x264/x264-0.0.20170701.ebuild b/media-libs/x264/x264-0.0.20170701.ebuild
new file mode 100644 (file)
index 0000000..53f651b
--- /dev/null
@@ -0,0 +1,63 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit flag-o-matic multilib toolchain-funcs eutils multilib-minimal
+
+DESCRIPTION="A free library for encoding X264/AVC streams"
+HOMEPAGE="http://www.videolan.org/developers/x264.html"
+if [[ ${PV} == 9999 ]]; then
+       inherit git-2
+       EGIT_REPO_URI="git://git.videolan.org/x264.git"
+else
+       inherit versionator
+       MY_P="x264-snapshot-$(get_version_component_range 3)-2245"
+       SRC_URI="http://download.videolan.org/pub/videolan/x264/snapshots/${MY_P}.tar.bz2"
+       KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
+       S="${WORKDIR}/${MY_P}"
+fi
+
+SONAME="152"
+SLOT="0/${SONAME}"
+
+LICENSE="GPL-2"
+IUSE="10bit altivec +interlaced opencl pic static-libs cpu_flags_x86_sse +threads"
+
+ASM_DEP=">=dev-lang/nasm-2.13"
+DEPEND="abi_x86_32? ( ${ASM_DEP} )
+       abi_x86_64? ( ${ASM_DEP} )
+       opencl? ( dev-lang/perl )"
+RDEPEND="opencl? ( >=virtual/opencl-0-r3[${MULTILIB_USEDEP}] )
+       abi_x86_32? ( !<=app-emulation/emul-linux-x86-medialibs-20130224-r7
+               !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)] )"
+
+DOCS="AUTHORS doc/*.txt"
+
+multilib_src_configure() {
+       tc-export CC
+       local asm_conf=""
+
+       if [[ ${ABI} == x86* ]] && { use pic || use !cpu_flags_x86_sse ; } || [[ ${ABI} == "x32" ]] || [[ ${CHOST} == armv5* ]] || [[ ${ABI} == ppc* ]] && { use !altivec ; }; then
+               asm_conf=" --disable-asm"
+       fi
+
+       "${S}/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}" \
+               $(usex 10bit "--bit-depth=10" "") \
+               $(usex interlaced "" "--disable-interlaced") \
+               $(usex opencl "" "--disable-opencl") \
+               $(usex static-libs "--enable-static" "") \
+               $(usex threads "" "--disable-thread") \
+               ${asm_conf} || die
+}
index 5e83eac43d2fd979f570c07d2f301db13eb4aef3..53f651b1ade27b290e5371fba1c5b9e409fe0fa1 100644 (file)
@@ -14,7 +14,7 @@ else
        inherit versionator
        MY_P="x264-snapshot-$(get_version_component_range 3)-2245"
        SRC_URI="http://download.videolan.org/pub/videolan/x264/snapshots/${MY_P}.tar.bz2"
-       KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
+       KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
        S="${WORKDIR}/${MY_P}"
 fi