From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- media-libs/x264/Manifest | 8 ++++ media-libs/x264/metadata.xml | 13 +++++++ media-libs/x264/x264-0.0.20160712.ebuild | 63 ++++++++++++++++++++++++++++++++ media-libs/x264/x264-0.0.20170701.ebuild | 63 ++++++++++++++++++++++++++++++++ media-libs/x264/x264-9999.ebuild | 63 ++++++++++++++++++++++++++++++++ 5 files changed, 210 insertions(+) create mode 100644 media-libs/x264/Manifest create mode 100644 media-libs/x264/metadata.xml create mode 100644 media-libs/x264/x264-0.0.20160712.ebuild create mode 100644 media-libs/x264/x264-0.0.20170701.ebuild create mode 100644 media-libs/x264/x264-9999.ebuild (limited to 'media-libs/x264') diff --git a/media-libs/x264/Manifest b/media-libs/x264/Manifest new file mode 100644 index 000000000000..518debd17d02 --- /dev/null +++ b/media-libs/x264/Manifest @@ -0,0 +1,8 @@ +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 +EBUILD x264-0.0.20160712.ebuild 1994 SHA256 5e442ba8d84d7569fd82a8d08c0225f51506f5d7f5b08067fc11ce03d311850d SHA512 0ed5c74f6b098af45fd2d6b64a6fec93e9c4c240ab967f62d7921d6f48e9ff471d9236807ceff1ff3eb542417eba0fb455a3bb122f9289069eca500bfbceed1c WHIRLPOOL 0ed22985a5f96f1bff9da8cb8c71d48e5ef2cc45d249b5a27ddb2b47ec618d7bbce4bab23ef0abf263540c4e13238c6193830cecf454d5eb5544ba659722d2e0 +EBUILD x264-0.0.20170701.ebuild 2002 SHA256 16af01c05e7d156661406b7db0181f5096c95023f157b8445cd9afdf10020a0e SHA512 41240380abaa9bc93c500449c1bc2284addf18a536e878caeb52fc67d1722f18f3a34087c0bd036b4a162342abde2d21e63c8d18ee5ca366dba7d485f8653556 WHIRLPOOL 77fea387a0e997491424a16459cc4f3b62989dabfc9213566cc94cfc78b3b0069d1c213237e0b2652d2db01558303ff8b10a6514d89eb4731d54f8d7fbb9cbed +EBUILD x264-9999.ebuild 2002 SHA256 16af01c05e7d156661406b7db0181f5096c95023f157b8445cd9afdf10020a0e SHA512 41240380abaa9bc93c500449c1bc2284addf18a536e878caeb52fc67d1722f18f3a34087c0bd036b4a162342abde2d21e63c8d18ee5ca366dba7d485f8653556 WHIRLPOOL 77fea387a0e997491424a16459cc4f3b62989dabfc9213566cc94cfc78b3b0069d1c213237e0b2652d2db01558303ff8b10a6514d89eb4731d54f8d7fbb9cbed +MISC ChangeLog 5445 SHA256 a1f825a0814e7d600c45afcad80c0818a6f2c9447e7f3f63de6ad2ec3531ef3a SHA512 824f811c1fcbeac2f9e8ca10cf8752fd54952974370f87a09a34e36888d7371f41bce4180b73cf92d0ca260549388b1d903c31323034f6ab713f98bfd76fcda5 WHIRLPOOL 3c8e9df04011f50d2ced9177eb7f2409b6729d63f784b9ca1ece7559c0eb65f7478a97d1f182ea9559928ee33a30a08fcb1d90ce1a9359687056f6680d57701a +MISC ChangeLog-2015 17003 SHA256 51f1cda76f918517679e4a0735c2ee579a074d9374e9f462b31821941b2f4140 SHA512 f3948a2164f7da401f0518dd9f4fa506502969241cb1aec137424bc07acba4abd3a553b685e5b0f097a101cf3303b9c36d6a2c92dfb8b07d40e0e4ef482833ca WHIRLPOOL 3ffbffb3e008d57b0f0eb93acfa516c2ce46b7c9b118e847a8d8cdb827b0fbab7fb73c92dc2021b27353f0bb26dddc342ec54c6f6e9e8cee4cfc84e69855117c +MISC metadata.xml 600 SHA256 123122a9038074338014a640906e6b0bd5431e589f1978d2936e1962ac04c0df SHA512 eeb9f40cfa12a66b5e56b653c611941c1a74837fe41f00d36c26ed9d2e6a3c1748d49431642536bfa509fdbe1503b2e85c91c65a3a41e12b1f413f42406bce5a WHIRLPOOL 93c39679329975aecb1f68be71fe0e6671f5d63be1fdf7adace52ae75f26698c80bdce413b103f3aae8cfc377e57f52e47220c124a5db24f7e848825688549db diff --git a/media-libs/x264/metadata.xml b/media-libs/x264/metadata.xml new file mode 100644 index 000000000000..2088ea59fe46 --- /dev/null +++ b/media-libs/x264/metadata.xml @@ -0,0 +1,13 @@ + + + + + media-video@gentoo.org + + + Set output bit depth to 10, this may not be compatible with all decoders + enable interlaced encoding support, this can decrease encoding speed by up to 2% + Add support for OpenCL. + disable optimized assembly code that is not PIC friendly + + diff --git a/media-libs/x264/x264-0.0.20160712.ebuild b/media-libs/x264/x264-0.0.20160712.ebuild new file mode 100644 index 000000000000..9259709a64fc --- /dev/null +++ b/media-libs/x264/x264-0.0.20160712.ebuild @@ -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="https://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="https://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="148" +SLOT="0/${SONAME}" + +LICENSE="GPL-2" +IUSE="10bit altivec +interlaced opencl pic static-libs cpu_flags_x86_sse +threads" + +ASM_DEP=">=dev-lang/yasm-1.2.0" +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 +} diff --git a/media-libs/x264/x264-0.0.20170701.ebuild b/media-libs/x264/x264-0.0.20170701.ebuild new file mode 100644 index 000000000000..1038f8e87232 --- /dev/null +++ b/media-libs/x264/x264-0.0.20170701.ebuild @@ -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="https://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="https://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 +} diff --git a/media-libs/x264/x264-9999.ebuild b/media-libs/x264/x264-9999.ebuild new file mode 100644 index 000000000000..1038f8e87232 --- /dev/null +++ b/media-libs/x264/x264-9999.ebuild @@ -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="https://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="https://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 +} -- cgit v1.2.3