diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /media-libs/chromaprint |
reinit the tree, so we can have metadata
Diffstat (limited to 'media-libs/chromaprint')
-rw-r--r-- | media-libs/chromaprint/Manifest | 15 | ||||
-rw-r--r-- | media-libs/chromaprint/chromaprint-1.2-r1.ebuild | 42 | ||||
-rw-r--r-- | media-libs/chromaprint/chromaprint-1.2.ebuild | 47 | ||||
-rw-r--r-- | media-libs/chromaprint/chromaprint-1.3.2.ebuild | 42 | ||||
-rw-r--r-- | media-libs/chromaprint/chromaprint-1.4.1.ebuild | 46 | ||||
-rw-r--r-- | media-libs/chromaprint/chromaprint-1.4.2.ebuild | 46 | ||||
-rw-r--r-- | media-libs/chromaprint/files/chromaprint-1.1-gtest.patch | 104 | ||||
-rw-r--r-- | media-libs/chromaprint/files/chromaprint-1.2-ffmpeg29.patch | 48 | ||||
-rw-r--r-- | media-libs/chromaprint/metadata.xml | 15 |
9 files changed, 405 insertions, 0 deletions
diff --git a/media-libs/chromaprint/Manifest b/media-libs/chromaprint/Manifest new file mode 100644 index 000000000000..143d489af1a5 --- /dev/null +++ b/media-libs/chromaprint/Manifest @@ -0,0 +1,15 @@ +AUX chromaprint-1.1-gtest.patch 3954 SHA256 d8d6a0028f5e2ea3d3eb5eedc391a27398b4ab904d19c58a720d45c8900bd8a1 SHA512 adbbfd9a8456751b4071d78cad1a67c4d11dcbb0f74dfefcbf6e92505c6543f81df316b2e43b927ac98405b054b1dba74658610c226e40e26184d4e927099fa3 WHIRLPOOL cfc8d69aa81bb36467d002da1f5175011ca0408cae7458bdaf6861676e679e98292b1e64fdb43895dda5b67e05c010a92164aaaaeddae13f5b482511a37fc721 +AUX chromaprint-1.2-ffmpeg29.patch 1573 SHA256 e796788aa665bab4cf7f9f8726fa6c2383cf9a6cd713abcd09844c6d5c880626 SHA512 7366b9ebff706e67ebe3e0a57605607351076d071b62c9c1aa6e17f2721bbba315a0bde42b4a44f0a6d1921c410e224aac724017e8b4e33ec239b83675936579 WHIRLPOOL ab3db1c90008fc538419c02c708fe976cc052a738e19abd718cb168fedaa53a753d1e7c79e364662cd33d409b2ca129eff012fc6b5a40783444e9baa05db1c66 +DIST chromaprint-1.2.tar.gz 529646 SHA256 822b8949a322ac04c6f8a3ed78f5e689bcc493c6ca0972bf627c913c8430031a SHA512 dc61db8894a20df3d7e7317cd7cd97148c19be5854dd66409341cb8e47c045e1c632b254e14a869279983a5af2cc6f9effea21b77a63dff729511e6144439cbb WHIRLPOOL b2efb45c23e950b6a4d95c078bed15b03ef35e423b106428a7607034276b343b8c223ffa71e021846ed48f535663e062ae8042d281d769a04effc9afd8a600dd +DIST chromaprint-1.3.2.tar.gz 538395 SHA256 c3af900d8e7a42afd74315b51b79ebd2e43bc66630b4ba585a54bf3160439652 SHA512 7f89eb09f293a3691efcb01544da612cf674a00af1c188db3f1075db44fee0a8e0aeff3ca6eccd0731ae6bbff9eb0fd51b22128fa927fdbd21638e2832f76e95 WHIRLPOOL 8af59c57423168d44867e98345a48861132412b5d07357bacfe99d362b7e89a34b594eac6427bca6ed935ae87fffd7f91a1d2bddef5f75b9d93dbb85e4bcdad9 +DIST chromaprint-1.4.1.tar.gz 611014 SHA256 d94e171e0b3d60a8fefe6846a3c0ed3a9a939cb44a7d7113331fdbc140de6d34 SHA512 9d414ba01be87f973df877afc600c761bf338292680d2626baa2a483f0bb681b506d02baa8f9de297489459ba1ebae9005202bfe7ba661b7bd4d60d4a2463ede WHIRLPOOL 0280f9d398aa7abe3868535da8dc31d8f90235fdcc9c04bc5248ff319f0f3c0ffc5b7a47c3fa41110fe7ec38faadae9420637c693d6bbce4c6557b8b08d19dcb +DIST chromaprint-1.4.2.tar.gz 613367 SHA256 989609a7e841dd75b34ee793bd1d049ce99a8f0d444b3cea39d57c3e5d26b4d4 SHA512 69449adf1c95c1395a5545d36877afe95b409d045357cc675e9ac58aee2955b3a9a245f37805192804a9b7fddc792b9e9289bf6448fa3393131048d28e06d7e2 WHIRLPOOL 8ad63b91558caa78819d2c21b633cc85131094547b58d970089277b8e37e1ef9e9fd5987e9e42fe44f800ff8183c5bc0dc9ea626848ccc90871dfb04e2c55beb +DIST gtest-1.8.0.tar.gz 1281617 SHA256 58a6f4277ca2bc8565222b3bbd58a177609e9c488e8a72649359ba51450db7d8 SHA512 1dbece324473e53a83a60601b02c92c089f5d314761351974e097b2cf4d24af4296f9eb8653b6b03b1e363d9c5f793897acae1f0c7ac40149216035c4d395d9d WHIRLPOOL 7d95c06818332f9596dbda03d21416012c00e05c78be0814279ab9e7059b9d836060bab83ad46d013ccf1ba40973680c0793d78ac22f6016773fd93aa97b779b +EBUILD chromaprint-1.2-r1.ebuild 1130 SHA256 2e4f3a5a2f49258d7150753c1291c4ede34ff20b9c5817817f81dfb00f0d6987 SHA512 f9672834feac2dd1d6ec0d11d123b22cf50d0f5550ae702eeb641d3296190f90baa8a3805e1ec98ba8d060a93e8d6270f8c0d8799ab0aecc6e2c0bcbe3e545d4 WHIRLPOOL 340d70c1f92b4465f860a815e65065bdcee5effea91156a82ddad3157dc4bc2c2595784138dc1c062c66f9a27c875a62adfdb098b31bf39157bebc3ff711da5f +EBUILD chromaprint-1.2.ebuild 1076 SHA256 16a86abae34be60962e6489d2962ef0c1df6c8c7942781e6bac9e752ae5a5e50 SHA512 163e6bc812268032500c0ed1b97c277f97dc379bbaa6221dd8953b5797849a8f2af98c2eea52b518644ce6a99d5edae1462bb699fcb05a7116a3c0c492ccafcd WHIRLPOOL 05b50c66a1d37443a1d59a63ce91cd2b11c0398e78fbabc87545b9894455f70bac9276000bb9802ec7cb4f47446e018be1afc0301ad5d65e35b2dc1b20885976 +EBUILD chromaprint-1.3.2.ebuild 1098 SHA256 1fee16809cc2eb941ba91bf2cd34b4a8edee00f9b24e7a85af00d796830b26a1 SHA512 c15f598ff012bd91c312d26e25bd27c1981abf050fb76770a98cfe2f23d96faf50fa6a4e05dc4584d6fca5803a702c7f33bba328b5bcaf09c257509fceaa8da7 WHIRLPOOL bcd2a127773c91895bb26c5244bf9201c226d430def3d85e0b96e71c8122fac87c51052717969b7649d086636678673cc7a02c70529bde33718c9055325a3dad +EBUILD chromaprint-1.4.1.ebuild 1331 SHA256 939a4c777e097aa6029e1c2855955a4237c8c6c1f866b20e55317aaa167e0d72 SHA512 9ed09f55707ddedfdb536f8b2613a5118d96e05878d9c37eda15c1a25dfacb07e6add91ffcef71a98a0a4b5b6caa9925074af449ec0e1edc7c333ceea986a256 WHIRLPOOL 558ca664bd7b9aa0c5898e8b73b495a56f256b67d514673dee3890e1e150e49dd5cf851621196df882b45a6e3102b1f1b78e6408bbc24596223913184ba08855 +EBUILD chromaprint-1.4.2.ebuild 1347 SHA256 8175ef39ae2133d2dd569d0a9ca94bd6772954eff899fce082c3232289f4c8b5 SHA512 b09f76f6fc4839df6ee9704490a838a5d081c6c48676019b27f2efa910067444f476a39d66da7c5d2cab04fc10f71bfac9a5e6a8e026824f4693fa3f9a174a71 WHIRLPOOL 712a9e19ddfa84b27e0dc1dfa8c2602c09f2e6e36aeb641d8d9b1822acac6dadb2787711a985f95245b1dc4d776cfbffec21cca71941717fa3bb0a770dc19c67 +MISC ChangeLog 4841 SHA256 b8500f2c1b1f6f762146cdcb6cfd80d3a268ae0f202ffb4828a9a67c543454c5 SHA512 8b35cab3d18abce031ca3ad47a3f0eca41d1ec79989cc0e2fe077a76544a6e672cfd5470004669d6d832a91c0984f43f926c44887f000953f084dc822c0dd510 WHIRLPOOL 1eeb686c930786838ecbe85f1396d092630625dd18705c085dcc02fa39e333860234e29ac3cd6de65b93b798712f1f7147c3b6de2e6b6936192d80128c7e9d41 +MISC ChangeLog-2015 3651 SHA256 4371608cf1455b6680d7178e061bcd1053868725fc2aaa4de5ec0843ca206360 SHA512 e4b6cd2d103e20c8101cf1638653d3877dd316f836c4512e45dba24d147e04854faf8c074d88bbb8eeef45277b6fd2a19c85462024ccbf86c3aac8ed9aeaaf60 WHIRLPOOL 2cf7a9216aa2e296394599494f85a323757383324fedc485885ab3f847762815dd4d4322d4ffaa86d9af0eac79bd42b4e998abe5a44af8d5ffb9262f56e3851a +MISC metadata.xml 502 SHA256 bd16f565be3569970756fad5bc6bcde81d3ddc3e8ea5f1591c6a1507dd1889f9 SHA512 229e807429496e637ba289f269af83eca274c53eb2fc2d9dc5f304c39118eaf1d0ae9a5cca01ffa1958d110c55537f1792e26343bf3309ad72b1f0411af9dafe WHIRLPOOL 7e4e862f676e730806642723923907c651496e9a34989caa250f407d0b4a957dbded9322df10b67ec5b179d8bc3d24951de3b1177a92c29c914c0179cb4ee11e diff --git a/media-libs/chromaprint/chromaprint-1.2-r1.ebuild b/media-libs/chromaprint/chromaprint-1.2-r1.ebuild new file mode 100644 index 000000000000..e80da9186ad1 --- /dev/null +++ b/media-libs/chromaprint/chromaprint-1.2-r1.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit cmake-multilib + +DESCRIPTION="A client-side library that implements a custom algorithm for extracting fingerprints" +HOMEPAGE="http://acoustid.org/chromaprint" +SRC_URI="https://bitbucket.org/acoustid/${PN}/downloads/${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~x86 ~amd64-fbsd" +IUSE="libav test tools" + +# note: use ffmpeg or libav instead of fftw because it's recommended and required for tools +RDEPEND=" + libav? ( >=media-video/libav-11:0=[${MULTILIB_USEDEP}] ) + !libav? ( >=media-video/ffmpeg-2.6:0=[${MULTILIB_USEDEP}] ) +" +DEPEND="${RDEPEND} + test? ( + dev-cpp/gtest[${MULTILIB_USEDEP}] + dev-libs/boost[${MULTILIB_USEDEP}] + )" + +DOCS="NEWS.txt README.md" + +PATCHES=( "${FILESDIR}"/${PN}-1.1-gtest.patch "${FILESDIR}"/${P}-ffmpeg29.patch ) + +multilib_src_configure() { + local mycmakeargs=( + "-DBUILD_EXAMPLES=$(multilib_native_usex tools ON OFF)" + "-DBUILD_TESTS=$(usex test ON OFF)" + -DWITH_AVFFT=ON + ) + cmake-utils_src_configure +} + +multilib_src_test() { + emake check +} diff --git a/media-libs/chromaprint/chromaprint-1.2.ebuild b/media-libs/chromaprint/chromaprint-1.2.ebuild new file mode 100644 index 000000000000..36e8d79c1ba2 --- /dev/null +++ b/media-libs/chromaprint/chromaprint-1.2.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit cmake-utils + +DESCRIPTION="A client-side library that implements a custom algorithm for extracting fingerprints" +HOMEPAGE="http://acoustid.org/chromaprint" +SRC_URI="https://bitbucket.org/acoustid/${PN}/downloads/${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~alpha amd64 ~ppc ~ppc64 x86 ~amd64-fbsd" +IUSE="libav test tools" + +# note: use ffmpeg or libav instead of fftw because it's recommended and required for tools +RDEPEND=" + libav? ( media-video/libav:0= ) + !libav? ( >=media-video/ffmpeg-2.6:0= ) +" +DEPEND="${RDEPEND} + test? ( + dev-cpp/gtest + dev-libs/boost + )" + +DOCS="NEWS.txt README.md" + +PATCHES=( "${FILESDIR}"/${PN}-1.1-gtest.patch "${FILESDIR}"/${P}-ffmpeg29.patch ) + +src_configure() { + local mycmakeargs=( + $(cmake-utils_use_build tools EXAMPLES) + $(cmake-utils_use_build test TESTS) + -DWITH_AVFFT=ON + ) + cmake-utils_src_configure +} + +src_test() { + cd "${BUILD_DIR}" || die + emake check +} + +src_install() { + cmake-utils_src_install +} diff --git a/media-libs/chromaprint/chromaprint-1.3.2.ebuild b/media-libs/chromaprint/chromaprint-1.3.2.ebuild new file mode 100644 index 000000000000..5c20be212e86 --- /dev/null +++ b/media-libs/chromaprint/chromaprint-1.3.2.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit cmake-multilib + +DESCRIPTION="A client-side library that implements a custom algorithm for extracting fingerprints" +HOMEPAGE="http://acoustid.org/chromaprint" +SRC_URI="https://bitbucket.org/acoustid/${PN}/downloads/${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0/1" +KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~x86 ~amd64-fbsd" +IUSE="libav test tools" + +# note: use ffmpeg or libav instead of fftw because it's recommended and required for tools +RDEPEND=" + libav? ( >=media-video/libav-11:0=[${MULTILIB_USEDEP}] ) + !libav? ( >=media-video/ffmpeg-2.6:0=[${MULTILIB_USEDEP}] ) +" +DEPEND="${RDEPEND} + test? ( + dev-cpp/gtest[${MULTILIB_USEDEP}] + dev-libs/boost[${MULTILIB_USEDEP}] + )" + +DOCS="NEWS.txt README.md" + +PATCHES=( "${FILESDIR}"/${PN}-1.1-gtest.patch ) + +multilib_src_configure() { + local mycmakeargs=( + "-DBUILD_EXAMPLES=$(multilib_native_usex tools ON OFF)" + "-DBUILD_TESTS=$(usex test ON OFF)" + -DWITH_AVFFT=ON + ) + cmake-utils_src_configure +} + +multilib_src_test() { + emake check +} diff --git a/media-libs/chromaprint/chromaprint-1.4.1.ebuild b/media-libs/chromaprint/chromaprint-1.4.1.ebuild new file mode 100644 index 000000000000..ebf87b1edc8f --- /dev/null +++ b/media-libs/chromaprint/chromaprint-1.4.1.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit cmake-multilib + +GTEST_VERSION="1.8.0" + +DESCRIPTION="A client-side library that implements a custom algorithm for extracting fingerprints" +HOMEPAGE="http://acoustid.org/chromaprint" +SRC_URI="https://bitbucket.org/acoustid/${PN}/downloads/${P}.tar.gz + test? ( https://github.com/google/googletest/archive/release-${GTEST_VERSION}.tar.gz -> gtest-${GTEST_VERSION}.tar.gz ) +" + +LICENSE="LGPL-2.1" +SLOT="0/1" +KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~x86 ~amd64-fbsd" +IUSE="libav test tools" + +# note: use ffmpeg or libav instead of fftw because it's recommended and required for tools +RDEPEND=" + libav? ( >=media-video/libav-11:0=[${MULTILIB_USEDEP}] ) + !libav? ( >=media-video/ffmpeg-2.6:0=[${MULTILIB_USEDEP}] ) +" +DEPEND="${RDEPEND} + test? ( + dev-cpp/gtest[${MULTILIB_USEDEP}] + dev-libs/boost[${MULTILIB_USEDEP}] + )" + +DOCS="NEWS.txt README.md" + +multilib_src_configure() { + export GTEST_ROOT="${WORKDIR}/googletest-release-${GTEST_VERSION}/googletest/" + local mycmakeargs=( + "-DBUILD_TOOLS=$(multilib_native_usex tools ON OFF)" + "-DBUILD_TESTS=$(usex test ON OFF)" + -DFFT_LIB=avfft + -DAUDIO_PROCESSOR_LIB=$(usex libav avresample swresample) + ) + cmake-utils_src_configure +} + +multilib_src_test() { + emake check +} diff --git a/media-libs/chromaprint/chromaprint-1.4.2.ebuild b/media-libs/chromaprint/chromaprint-1.4.2.ebuild new file mode 100644 index 000000000000..98442fe31495 --- /dev/null +++ b/media-libs/chromaprint/chromaprint-1.4.2.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit cmake-multilib + +GTEST_VERSION="1.8.0" + +DESCRIPTION="A client-side library that implements a custom algorithm for extracting fingerprints" +HOMEPAGE="http://acoustid.org/chromaprint" +SRC_URI="https://bitbucket.org/acoustid/${PN}/downloads/${P}.tar.gz + test? ( https://github.com/google/googletest/archive/release-${GTEST_VERSION}.tar.gz -> gtest-${GTEST_VERSION}.tar.gz ) +" + +LICENSE="LGPL-2.1" +SLOT="0/1" +KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ppc ppc64 x86 ~amd64-fbsd" +IUSE="libav test tools" + +# note: use ffmpeg or libav instead of fftw because it's recommended and required for tools +RDEPEND=" + libav? ( >=media-video/libav-11:0=[${MULTILIB_USEDEP}] ) + !libav? ( >=media-video/ffmpeg-2.6:0=[${MULTILIB_USEDEP}] ) +" +DEPEND="${RDEPEND} + test? ( + dev-cpp/gtest[${MULTILIB_USEDEP}] + dev-libs/boost[${MULTILIB_USEDEP}] + )" + +DOCS="NEWS.txt README.md" + +multilib_src_configure() { + export GTEST_ROOT="${WORKDIR}/googletest-release-${GTEST_VERSION}/googletest/" + local mycmakeargs=( + "-DBUILD_TOOLS=$(multilib_native_usex tools ON OFF)" + "-DBUILD_TESTS=$(usex test ON OFF)" + -DFFT_LIB=avfft + -DAUDIO_PROCESSOR_LIB=$(usex libav avresample swresample) + ) + cmake-utils_src_configure +} + +multilib_src_test() { + emake check +} diff --git a/media-libs/chromaprint/files/chromaprint-1.1-gtest.patch b/media-libs/chromaprint/files/chromaprint-1.1-gtest.patch new file mode 100644 index 000000000000..8305ae7c1af0 --- /dev/null +++ b/media-libs/chromaprint/files/chromaprint-1.1-gtest.patch @@ -0,0 +1,104 @@ + cmake/modules/FindGTest.cmake | 82 ------------------------------------------- + tests/CMakeLists.txt | 1 - + 2 files changed, 83 deletions(-) + +diff --git a/cmake/modules/FindGTest.cmake b/cmake/modules/FindGTest.cmake +deleted file mode 100644 +index 21dc2f5..0000000 +--- a/cmake/modules/FindGTest.cmake ++++ /dev/null +@@ -1,82 +0,0 @@ +-# Locate the Google C++ Testing Framework source directory. +-# +-# Defines the following variables: +-# +-# GTEST_FOUND - Found the Google Testing framework sources +-# GTEST_INCLUDE_DIRS - Include directories +-# GTEST_SOURCE_DIR - Source code directory +-# GTEST_LIBRARIES - libgtest +-# GTEST_MAIN_LIBRARIES - libgtest-main +-# GTEST_BOTH_LIBRARIES - libgtest & libgtest-main +-# +-# Accepts the following variables as input: +-# +-# GTEST_ROOT - (as CMake or environment variable) +-# The root directory of the gtest install prefix +-# +-# Example usage: +-# +-# find_package(GTest REQUIRED) +-# include_directories(${GTEST_INCLUDE_DIRS}) +-# add_subdirectory(${GTEST_SOURCE_DIR} +-# ${CMAKE_CURRENT_BINARY_DIR}/gtest_build) +-# +-# add_executable(foo foo.cc) +-# target_link_libraries(foo ${GTEST_BOTH_LIBRARIES}) +-# +-# enable_testing(true) +-# add_test(AllTestsInFoo foo) +-# +-# ========================================================= +-# +-# Copyright (C) 2012 Lukas Lalinsky <lalinsky@gmail.com> +-# +-# Redistribution and use in source and binary forms, with or without +-# modification, are permitted provided that the following conditions are +-# met: +-# +-# * Redistributions of source code must retain the above copyright notice, +-# this list of conditions and the following disclaimer. +-# +-# * Redistributions in binary form must reproduce the above copyright notice, +-# this list of conditions and the following disclaimer in the documentation +-# and/or other materials provided with the distribution. +-# +-# * The names of Kitware, Inc., the Insight Consortium, or the names of +-# any consortium members, or of any contributors, may not be used to +-# endorse or promote products derived from this software without +-# specific prior written permission. +-# +-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS ``AS IS'' +-# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +-# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +-# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE FOR +-# ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +-# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +-# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +-# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +-# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +- +- +-find_path(GTEST_SOURCE_DIR +- NAMES src/gtest-all.cc CMakeLists.txt +- HINTS $ENV{GTEST_ROOT} ${GTEST_ROOT} /usr/src/gtest +-) +-mark_as_advanced(GTEST_SOURCE_DIR) +- +-find_path(GTEST_INCLUDE_DIR +- NAMES gtest/gtest.h +- HINTS $ENV{GTEST_ROOT}/include ${GTEST_ROOT}/include +-) +-mark_as_advanced(GTEST_INCLUDE_DIR) +- +-include(FindPackageHandleStandardArgs) +-find_package_handle_standard_args(GTest DEFAULT_MSG GTEST_SOURCE_DIR GTEST_INCLUDE_DIR) +- +-if(GTEST_FOUND) +- set(GTEST_INCLUDE_DIRS ${GTEST_INCLUDE_DIR}) +- set(GTEST_LIBRARIES gtest) +- set(GTEST_MAIN_LIBRARIES gtest_main) +- set(GTEST_BOTH_LIBRARIES ${GTEST_LIBRARIES} ${GTEST_MAIN_LIBRARIES}) +-endif() +diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt +index 791cd96..9115391 100644 +--- a/tests/CMakeLists.txt ++++ b/tests/CMakeLists.txt +@@ -3,7 +3,6 @@ include_directories( + ${Boost_INCLUDE_DIRS} + ${CMAKE_CURRENT_SOURCE_DIR}/../src + ) +-add_subdirectory(${GTEST_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}/gtest_build) + + set(tests_SOURCES + main.cpp diff --git a/media-libs/chromaprint/files/chromaprint-1.2-ffmpeg29.patch b/media-libs/chromaprint/files/chromaprint-1.2-ffmpeg29.patch new file mode 100644 index 000000000000..6910f243b2e0 --- /dev/null +++ b/media-libs/chromaprint/files/chromaprint-1.2-ffmpeg29.patch @@ -0,0 +1,48 @@ +commit 37092d380a28abcc63fa120499030a0f2b7df80f +Author: Rodger Combs <rodger.combs@gmail.com> +Date: Fri Oct 2 14:48:01 2015 -0500 + + fpcalc: remove uses of deprecated lavc APIs + +Index: chromaprint-1.2/examples/fpcalc.c +=================================================================== +--- chromaprint-1.2.orig/examples/fpcalc.c ++++ chromaprint-1.2/examples/fpcalc.c +@@ -17,10 +17,6 @@ + #define MAX(a, b) ((a) > (b) ? (a) : (b)) + #define MIN(a, b) ((a) < (b) ? (a) : (b)) + +-#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(54, 28, 0) +-#define avcodec_free_frame av_freep +-#endif +- + int decode_audio_file(ChromaprintContext *chromaprint_ctx, const char *file_name, int max_length, int *duration) + { + int ok = 0, remaining, length, consumed, codec_ctx_opened = 0, got_frame, stream_index; +@@ -131,7 +127,7 @@ int decode_audio_file(ChromaprintContext + remaining = max_length * codec_ctx->channels * codec_ctx->sample_rate; + chromaprint_start(chromaprint_ctx, codec_ctx->sample_rate, codec_ctx->channels); + +- frame = avcodec_alloc_frame(); ++ frame = av_frame_alloc(); + + while (1) { + if (av_read_frame(format_ctx, &packet) < 0) { +@@ -139,7 +135,7 @@ int decode_audio_file(ChromaprintContext + } + + if (packet.stream_index == stream_index) { +- avcodec_get_frame_defaults(frame); ++ av_frame_unref(frame); + + got_frame = 0; + consumed = avcodec_decode_audio4(codec_ctx, frame, &got_frame, &packet); +@@ -196,7 +192,7 @@ finish: + + done: + if (frame) { +- avcodec_free_frame(&frame); ++ av_frame_free(&frame); + } + if (dst_data[0]) { + av_freep(&dst_data[0]); diff --git a/media-libs/chromaprint/metadata.xml b/media-libs/chromaprint/metadata.xml new file mode 100644 index 000000000000..3856e662d7a7 --- /dev/null +++ b/media-libs/chromaprint/metadata.xml @@ -0,0 +1,15 @@ +<?xml version='1.0' encoding='UTF-8'?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>sound@gentoo.org</email> + <name>Gentoo Sound project</name> + </maintainer> + <use> + <flag name="tools">Build and install fpcalc and fpcollect tools</flag> + </use> + <upstream> + <remote-id type="bitbucket">acoustid/chromaprint</remote-id> + <remote-id type="github">google/googletest</remote-id> + </upstream> +</pkgmetadata> |