1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
8 DESCRIPTION="A client-side library that implements a custom algorithm for extracting fingerprints"
9 HOMEPAGE="http://acoustid.org/chromaprint"
10 SRC_URI="https://bitbucket.org/acoustid/${PN}/downloads/${P}.tar.gz"
14 KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~x86 ~amd64-fbsd"
15 IUSE="libav test tools"
17 # note: use ffmpeg or libav instead of fftw because it's recommended and required for tools
19 libav? ( >=media-video/libav-11:0=[${MULTILIB_USEDEP}] )
20 !libav? ( >=media-video/ffmpeg-2.6:0=[${MULTILIB_USEDEP}] )
24 dev-cpp/gtest[${MULTILIB_USEDEP}]
25 dev-libs/boost[${MULTILIB_USEDEP}]
28 DOCS="NEWS.txt README.md"
30 PATCHES=( "${FILESDIR}"/${PN}-1.1-gtest.patch )
32 multilib_src_configure() {
34 "-DBUILD_EXAMPLES=$(multilib_native_usex tools ON OFF)"
35 "-DBUILD_TESTS=$(usex test ON OFF)"
38 cmake-utils_src_configure