blob: 34a77ce2525bc1e8703faa9e0bff19e33e164550 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/chromaprint/chromaprint-1.1.ebuild,v 1.5 2014/03/04 20:17:40 ago Exp $
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="amd64 ~ppc x86 ~amd64-fbsd"
IUSE="test tools"
# note: use ffmpeg instead of fftw because it's recommended and required for tools
RDEPEND="
>=virtual/ffmpeg-0.10
tools? ( >=media-libs/taglib-1.6 )"
DEPEND="${RDEPEND}
test? (
dev-cpp/gtest
dev-libs/boost
)
tools? ( dev-libs/boost )"
DOCS="NEWS.txt README.txt"
PATCHES=(
"${FILESDIR}"/${PN}-0.7-ffmpeg.patch
"${FILESDIR}"/${P}-gtest.patch
"${FILESDIR}"/${P}-ffmpeg2.patch
"${FILESDIR}"/${P}-libav_build_fix_for_tools.patch
)
src_configure() {
local mycmakeargs=(
$(cmake-utils_use_build tools EXAMPLES)
$(cmake-utils_use_build test TESTS)
$(cmake-utils_use_build tools)
-DWITH_AVFFT=ON
)
cmake-utils_src_configure
}
src_test() {
cd "${BUILD_DIR}" || die
emake check
}
src_install() {
cmake-utils_src_install
use tools && dobin "${BUILD_DIR}"/tools/fpcollect
}
|