summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-libs/chromaprint/chromaprint-0.6.ebuild')
-rw-r--r--media-libs/chromaprint/chromaprint-0.6.ebuild45
1 files changed, 45 insertions, 0 deletions
diff --git a/media-libs/chromaprint/chromaprint-0.6.ebuild b/media-libs/chromaprint/chromaprint-0.6.ebuild
new file mode 100644
index 000000000000..1399c0cc13ca
--- /dev/null
+++ b/media-libs/chromaprint/chromaprint-0.6.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+inherit cmake-utils
+
+DESCRIPTION="A client-side library that implements a custom algorithm for extracting fingerprints"
+HOMEPAGE="http://acoustid.org/chromaprint"
+SRC_URI="mirror://github/lalinsky/${PN}/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="test tools"
+
+# note: use ffmpeg instead of fftw because it's recommended and required for tools
+RDEPEND=">=virtual/ffmpeg-0.6
+ tools? ( >=media-libs/taglib-1.6 )"
+DEPEND="${RDEPEND}
+ test? ( dev-cpp/gtest )
+ tools? ( dev-libs/boost )"
+
+DOCS="NEWS.txt README.txt"
+
+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 "${CMAKE_BUILD_DIR}" || die
+ emake check
+}
+
+src_install() {
+ cmake-utils_src_install
+ use tools && dobin "${CMAKE_BUILD_DIR}"/tools/fpcollect
+}