diff options
Diffstat (limited to 'media-libs/kvazaar')
-rw-r--r-- | media-libs/kvazaar/Manifest | 10 | ||||
-rw-r--r-- | media-libs/kvazaar/files/gcc7.patch | 46 | ||||
-rw-r--r-- | media-libs/kvazaar/files/multilib.patch | 15 | ||||
-rw-r--r-- | media-libs/kvazaar/kvazaar-1.0.0.ebuild | 59 | ||||
-rw-r--r-- | media-libs/kvazaar/kvazaar-1.1.0.ebuild | 60 | ||||
-rw-r--r-- | media-libs/kvazaar/kvazaar-9999.ebuild | 59 | ||||
-rw-r--r-- | media-libs/kvazaar/metadata.xml | 10 |
7 files changed, 259 insertions, 0 deletions
diff --git a/media-libs/kvazaar/Manifest b/media-libs/kvazaar/Manifest new file mode 100644 index 000000000000..d690826d6e16 --- /dev/null +++ b/media-libs/kvazaar/Manifest @@ -0,0 +1,10 @@ +AUX gcc7.patch 2152 SHA256 bcf0fd61f1153e6641e77cb3c68d125cf85e7a2331708f733dccb7a00663ba75 SHA512 a8e4403a3759417e305bc88dbababbb146ef74a2eda61d8f2fc169ce808e8b3e940a00bf305e88586fa97f3afc0be9e6def9662cd310f846a91211bfe20f8fd1 WHIRLPOOL 27298ada6c06de34cfedf22d6ccf1068552657727ce4ca04ed235d06a4146e9a47a239d8571f302d71b4e0e8376539b4fa21764c4661250d47a3af9cbefbcb38 +AUX multilib.patch 754 SHA256 806028db9b13fb8eb1260b0d5af8da03110cfddba2967aa7df7a4d67f44e5c19 SHA512 96c91da5b6de0945477089777fe8aabdab778fe49fba93d71ebf24934f060d9eaaaeaf229cdfd2a20179dc0ee869d81d65c7ca73f4c42aee133c0297248d8c95 WHIRLPOOL 7d54a5fb0ed78f3cd11ae16e10f8a109b554cf37bcbf354041840f518d4ed6db8f70e09e45d0777d8df0e9a04b537c7dff21a2047c57576eff4b0a9185881f42 +DIST greatest-1.2.1.tar.gz 19792 SHA256 e3c1211ec5dfea61092833bca56c6a14620ac23aa0d53940d99943587cbe1677 SHA512 c17162fa222c84fef7826ba5202aae573d516a71bc2c59c8991db2a76f7069ed53d00aaab1b792e0c7e4243fae38183764c2e7ae0a61faf2ff13e78b29ccc211 WHIRLPOOL b4e01659539e02224d5396609ba73715eca1391e9da165ac22cf28f25c13cf89a9c4059cfe3f88e1d88d06e35153f7d1d3e012433b9b4f4deaa2a464e6d6b7ca +DIST kvazaar-1.0.0.tar.gz 473495 SHA256 40eb7b4b23897299e99050f0c011e9380cf898b25615dd143f018b278b972a46 SHA512 94939e9560e82543c0f3a8de6f45e228156544b56cc3ce813385e24d52f5a7b65950f6f752344930951440255ca96c06e93e87ff9e721d7c63d82a7a5714c340 WHIRLPOOL ed0c6332c5a1efa88b569845f2cb5436881c3866e381369d770a3393d61e37605ad5c114dcbdae424035f451ceea5ab1ee0787769c9bf44fc44bbd2815e87ed7 +DIST kvazaar-1.1.0.tar.gz 484601 SHA256 8e382738a51004bfcfca4c832e8b41fe6a17f889f3c39151dc1c1a37261a3a6d SHA512 72cee44e32c76c0a94acf33347457145d3f88d644fb4703588d0db6bff1c7064c9b623034efe4ba39219150767012544e4f45141b6a6183d41e4a29c6cb258b9 WHIRLPOOL c37df11389c237af2c31cfcdbb6244c7e87f4d95f5550ee46e5f27c6eca39dd0328aaa81fbef3d555fc869072ac2226efb71566b7ca7ddda11bab3508d1f2caf +EBUILD kvazaar-1.0.0.ebuild 1452 SHA256 4b45ab58a9856664281a3b35a8e5e07929107c2d91db1e9b95f3cbf491e21d39 SHA512 ab038716fe616b6ab9297b5629762c0800940876ec9ce338a59b8b61a2b8e5a4c350c8bd9e6bbf2e586fc5f5a2acb2c8798befc2e72556e25b1e2360304216d1 WHIRLPOOL eca1d161340e09af7b006b052a6da0b54130158efcc4372d94d301e5ac1dec0838ac793e127a421bc38ab2bd5c40c6b5b5216393a6f438949784dffe4f35a6d5 +EBUILD kvazaar-1.1.0.ebuild 1507 SHA256 82980f188a3573bf8ec7a0044b6a99e65a0f83ccd1c894e6a3ac3a8ceb28bbcc SHA512 f43f5b1d47f87dd81e83eef5a106ef10faa9304ae0acb01251683e6ed6f62d95beee626f79f42d08a4a510791c668a91f98f70e3055786275547ba4a0afbe80b WHIRLPOOL d9ef2276b2eda47b31544e9245ff38f58adc480c125d7b9f20e84584bea2df2ec3a6255a0aa246d08c146bfa77ed6b2f03ed97026986f4f9a66667ff2905bfdc +EBUILD kvazaar-9999.ebuild 1475 SHA256 fabf05551a897da8439fa7f8460901f9f48d5690aab4267e603b539ff0896fdb SHA512 e689c70a837c71a24d483df59c828984b9039be75a8f144d72b308358afcc2228d31fa9d78b93c052acbb9afe66bb9fc20548b9b7444a86d48b706b1c44cc1ee WHIRLPOOL 5418cf32353fa7e5420a3611688908117a6ef103584da710ec620f0ee9c5b9975605ad993e38cbf1f492f7fda3e614b9f8617cf70df6f507c5fc9dc3325db22a +MISC ChangeLog 3856 SHA256 fac36b4b266ae591ee15787e3aac5630d3e2da6fb1e13aaf87bc1947a3fad24c SHA512 519420dc48b80a5ed185ae697b1e715b07792f403bc959af0932d44cfe5841f09fcc884a77209282ae54175945604848121394cf20dcb7faf69273f77156737c WHIRLPOOL c8ffc4795898971c3a358b1b1cd03a2cbc08a37387160fd7db69583ee3124afe43eacf8e9f5d7f0eb60779ea4a770efb76e66a248fdb9264845c2135c790f6c2 +MISC metadata.xml 314 SHA256 362fff799a5a70b3302225710522c69ae9ad0992306dd7f291a785e7efde2aec SHA512 3cf0527dc69a26ad9b7f33b2d5df536712fb19df9bac7cc0f067eac31d2b420ddf22dd744d643bf053caf27615f133478c1fd0d601e553546e73a0bd5e5897f2 WHIRLPOOL 52995fbe273e688393aaef8f7d03085cbaa0ec3f813ab38c4333d41618926f1af0ccf0da4685c66d0ed64e23be382a32f7f181cff91f33d13f990f1083912d54 diff --git a/media-libs/kvazaar/files/gcc7.patch b/media-libs/kvazaar/files/gcc7.patch new file mode 100644 index 000000000000..12ff8ad00ff7 --- /dev/null +++ b/media-libs/kvazaar/files/gcc7.patch @@ -0,0 +1,46 @@ +commit 47a9f0de049e77e866ea5bdd4bc7c795ea6dd641 +Author: Ari Lemmetti <ari.lemmetti@gmail.com> +Date: Tue Apr 11 12:57:22 2017 +0300 + + Modify and use FILL_ARRAY macro to prevent warning on GCC 7 + + Following warning was given and is false positive + + error: 'memset' used with length equal to number of elements without multiplication by element size [-Werror=memset-elt-size] + +diff --git a/src/global.h b/src/global.h +index bedcd49..5181674 100644 +--- a/src/global.h ++++ b/src/global.h +@@ -219,7 +219,11 @@ typedef int16_t coeff_t; + // Fill a structure or a static array with val bytes. + #define FILL(var, val) memset(&(var), (val), sizeof(var)) + // Fill a number of elements in an array with val bytes. +-#define FILL_ARRAY(ar, val, size) memset((ar), (val), (size) * sizeof(*(ar))) ++#define FILL_ARRAY(ar, val, size) \ ++{\ ++ void *temp_ptr = (void*)(ar);\ ++ memset((temp_ptr), (val), (size) * sizeof(*(ar)));\ ++} + + #define FREE_POINTER(pointer) { free((void*)pointer); pointer = NULL; } + #define MOVE_POINTER(dst_pointer,src_pointer) { dst_pointer = src_pointer; src_pointer = NULL; } +diff --git a/src/rdo.c b/src/rdo.c +index 52305fd..2579f28 100644 +--- a/src/rdo.c ++++ b/src/rdo.c +@@ -558,10 +558,10 @@ void kvz_rdoq(encoder_state_t * const state, coeff_t *coef, coeff_t *dest_coeff, + // Explicitly tell the only possible numbers of elements to be zeroed. + // Hope the compiler is able to utilize this information. + switch (cg_num) { +- case 1: memset(sig_coeffgroup_flag, 0, 1 * sizeof(sig_coeffgroup_flag[0])); break; +- case 4: memset(sig_coeffgroup_flag, 0, 4 * sizeof(sig_coeffgroup_flag[0])); break; +- case 16: memset(sig_coeffgroup_flag, 0, 16 * sizeof(sig_coeffgroup_flag[0])); break; +- case 64: memset(sig_coeffgroup_flag, 0, 64 * sizeof(sig_coeffgroup_flag[0])); break; ++ case 1: FILL_ARRAY(sig_coeffgroup_flag, 0, 1); break; ++ case 4: FILL_ARRAY(sig_coeffgroup_flag, 0, 4); break; ++ case 16: FILL_ARRAY(sig_coeffgroup_flag, 0, 16); break; ++ case 64: FILL_ARRAY(sig_coeffgroup_flag, 0, 64); break; + default: assert(0 && "There should be 1, 4, 16 or 64 coefficient groups"); + } + diff --git a/media-libs/kvazaar/files/multilib.patch b/media-libs/kvazaar/files/multilib.patch new file mode 100644 index 000000000000..fb0711dac994 --- /dev/null +++ b/media-libs/kvazaar/files/multilib.patch @@ -0,0 +1,15 @@ +https://github.com/ultravideo/kvazaar/pull/141 + +Index: kvazaar-1.0.0/src/global.h +=================================================================== +--- kvazaar-1.0.0.orig/src/global.h ++++ kvazaar-1.0.0/src/global.h +@@ -253,7 +253,7 @@ typedef enum { COLOR_Y = 0, COLOR_U, COL + + + // Hardware data (abstraction of defines). Extend for other compilers +-#if defined(_M_IX86) || defined(__i586__) || defined(__i686__) || defined(_M_X64) || defined(_M_AMD64) || defined(__amd64__) || defined(__x86_64__) ++#if defined(_M_IX86) || defined(__i386__) || defined(__i486__) || defined(__i586__) || defined(__i686__) || defined(_M_X64) || defined(_M_AMD64) || defined(__amd64__) || defined(__x86_64__) + # define COMPILE_INTEL 1 + #else + # define COMPILE_INTEL 0 diff --git a/media-libs/kvazaar/kvazaar-1.0.0.ebuild b/media-libs/kvazaar/kvazaar-1.0.0.ebuild new file mode 100644 index 000000000000..adab92844c3c --- /dev/null +++ b/media-libs/kvazaar/kvazaar-1.0.0.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +SCM="" + +GREATEST_PV="1.2.1" + +if [ "${PV#9999}" != "${PV}" ] ; then + SCM="git-r3" + EGIT_REPO_URI="https://github.com/ultravideo/kvazaar" +fi + +inherit eutils multilib autotools multilib-minimal toolchain-funcs ${SCM} + +DESCRIPTION="An open-source HEVC encoder" +HOMEPAGE="http://ultravideo.cs.tut.fi/ https://github.com/ultravideo/kvazaar" + +if [ "${PV#9999}" = "${PV}" ] ; then + SRC_URI="https://github.com/ultravideo/kvazaar/archive/v${PV}.tar.gz -> ${P}.tar.gz + test? ( https://github.com/silentbicycle/greatest/archive/v${GREATEST_PV}.tar.gz -> greatest-${GREATEST_PV}.tar.gz )" + KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 x86" +fi + +LICENSE="LGPL-2.1" +# subslot = libkvazaar major +SLOT="0/3" +IUSE="static-libs test" +REQUIRED_USE="test? ( static-libs )" + +DEPEND="" +RDEPEND="${DEPEND}" + +ASM_DEP=">=dev-lang/yasm-1.2.0" +DEPEND="${DEPEND} + abi_x86_32? ( ${ASM_DEP} ) + abi_x86_64? ( ${ASM_DEP} )" + +src_prepare() { + epatch "${FILESDIR}/multilib.patch" + eautoreconf + if use test ; then + # https://bugs.gentoo.org/show_bug.cgi?id=595932 + rmdir "${S}/greatest" || die + mv "${WORKDIR}/greatest-${GREATEST_PV}" "${S}/greatest" || die + fi +} + +multilib_src_configure() { + ECONF_SOURCE="${S}" \ + econf \ + --docdir "/usr/share/doc/${PF}" \ + $(use_enable static-libs static) +} + +multilib_src_install_all() { + find "${ED}" -name '*.la' -delete +} diff --git a/media-libs/kvazaar/kvazaar-1.1.0.ebuild b/media-libs/kvazaar/kvazaar-1.1.0.ebuild new file mode 100644 index 000000000000..b63535dde827 --- /dev/null +++ b/media-libs/kvazaar/kvazaar-1.1.0.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +SCM="" + +GREATEST_PV="1.2.1" + +if [ "${PV#9999}" != "${PV}" ] ; then + SCM="git-r3" + EGIT_REPO_URI="https://github.com/ultravideo/kvazaar" +fi + +inherit eutils multilib autotools multilib-minimal toolchain-funcs ${SCM} + +DESCRIPTION="An open-source HEVC encoder" +HOMEPAGE="http://ultravideo.cs.tut.fi/ https://github.com/ultravideo/kvazaar" + +if [ "${PV#9999}" = "${PV}" ] ; then + SRC_URI="https://github.com/ultravideo/kvazaar/archive/v${PV}.tar.gz -> ${P}.tar.gz + test? ( https://github.com/silentbicycle/greatest/archive/v${GREATEST_PV}.tar.gz -> greatest-${GREATEST_PV}.tar.gz )" + KEYWORDS="alpha amd64 arm ~arm64 ~hppa ia64 ppc ppc64 x86" +fi + +LICENSE="LGPL-2.1" +# subslot = libkvazaar major +SLOT="0/3" +IUSE="static-libs test" + +DEPEND="" +RDEPEND="${DEPEND}" +REQUIRED_USE="test? ( static-libs )" + +ASM_DEP=">=dev-lang/yasm-1.2.0" +DEPEND="${DEPEND} + abi_x86_32? ( ${ASM_DEP} ) + abi_x86_64? ( ${ASM_DEP} )" + +src_prepare() { + epatch "${FILESDIR}/gcc7.patch" + eautoreconf + if use test && [ "${PV#9999}" = "${PV}" ]; then + # https://bugs.gentoo.org/show_bug.cgi?id=595932 + rmdir "${S}/greatest" || die + mv "${WORKDIR}/greatest-${GREATEST_PV}" "${S}/greatest" || die + fi +} + +multilib_src_configure() { + ECONF_SOURCE="${S}" \ + econf \ + --disable-werror \ + --docdir "/usr/share/doc/${PF}" \ + $(use_enable static-libs static) +} + +multilib_src_install_all() { + find "${ED}" -name '*.la' -delete +} diff --git a/media-libs/kvazaar/kvazaar-9999.ebuild b/media-libs/kvazaar/kvazaar-9999.ebuild new file mode 100644 index 000000000000..f3331d04cace --- /dev/null +++ b/media-libs/kvazaar/kvazaar-9999.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +SCM="" + +GREATEST_PV="1.2.1" + +if [ "${PV#9999}" != "${PV}" ] ; then + SCM="git-r3" + EGIT_REPO_URI="https://github.com/ultravideo/kvazaar" +fi + +inherit eutils multilib autotools multilib-minimal toolchain-funcs ${SCM} + +DESCRIPTION="An open-source HEVC encoder" +HOMEPAGE="http://ultravideo.cs.tut.fi/ https://github.com/ultravideo/kvazaar" + +if [ "${PV#9999}" = "${PV}" ] ; then + SRC_URI="https://github.com/ultravideo/kvazaar/archive/v${PV}.tar.gz -> ${P}.tar.gz + test? ( https://github.com/silentbicycle/greatest/archive/v${GREATEST_PV}.tar.gz -> greatest-${GREATEST_PV}.tar.gz )" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86" +fi + +LICENSE="LGPL-2.1" +# subslot = libkvazaar major +SLOT="0/3" +IUSE="static-libs test" + +DEPEND="" +RDEPEND="${DEPEND}" +REQUIRED_USE="test? ( static-libs )" + +ASM_DEP=">=dev-lang/yasm-1.2.0" +DEPEND="${DEPEND} + abi_x86_32? ( ${ASM_DEP} ) + abi_x86_64? ( ${ASM_DEP} )" + +src_prepare() { + eautoreconf + if use test && [ "${PV#9999}" = "${PV}" ]; then + # https://bugs.gentoo.org/show_bug.cgi?id=595932 + rmdir "${S}/greatest" || die + mv "${WORKDIR}/greatest-${GREATEST_PV}" "${S}/greatest" || die + fi +} + +multilib_src_configure() { + ECONF_SOURCE="${S}" \ + econf \ + --disable-werror \ + --docdir "/usr/share/doc/${PF}" \ + $(use_enable static-libs static) +} + +multilib_src_install_all() { + find "${ED}" -name '*.la' -delete +} diff --git a/media-libs/kvazaar/metadata.xml b/media-libs/kvazaar/metadata.xml new file mode 100644 index 000000000000..ed9e985a7369 --- /dev/null +++ b/media-libs/kvazaar/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>media-video@gentoo.org</email> + </maintainer> + <upstream> + <remote-id type="github">ultravideo/kvazaar</remote-id> + </upstream> +</pkgmetadata> |