[vlc-commits] Contribs: add chromaprint

Jean-Baptiste Kempf git at videolan.org
Fri Apr 5 17:27:06 CEST 2013


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Fri Apr  5 17:26:39 2013 +0200| [ea2d79c65cb97b051d5f1bb76ee7888e1754b10c] | committer: Jean-Baptiste Kempf

Contribs: add chromaprint

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ea2d79c65cb97b051d5f1bb76ee7888e1754b10c
---

 contrib/src/chromaprint/SHA512SUMS   |    1 +
 contrib/src/chromaprint/avutil.patch |   10 ++++++++++
 contrib/src/chromaprint/rules.mak    |   24 ++++++++++++++++++++++++
 3 files changed, 35 insertions(+)

diff --git a/contrib/src/chromaprint/SHA512SUMS b/contrib/src/chromaprint/SHA512SUMS
new file mode 100644
index 0000000..1899478
--- /dev/null
+++ b/contrib/src/chromaprint/SHA512SUMS
@@ -0,0 +1 @@
+2ac03f80888d6c12dd05c20adc82e0f2c9e6bf5edc099d7c7b719b8cb353151fb04b78f5c7bca672d5fe8357a791e86fdea7b6952a0d64c346c079548ebfcd38  chromaprint-0.7.tar.gz
diff --git a/contrib/src/chromaprint/avutil.patch b/contrib/src/chromaprint/avutil.patch
new file mode 100644
index 0000000..4d687ed
--- /dev/null
+++ b/contrib/src/chromaprint/avutil.patch
@@ -0,0 +1,10 @@
+--- chromaprint/src/fft_lib_avfft.h	2012-09-05 20:05:36.000000000 +0200
++++ chromaprint.new/src/fft_lib_avfft.h	2013-04-05 17:21:56.830255210 +0200
+@@ -23,6 +23,7 @@
+ 
+ #include <math.h>
+ extern "C" {
++#include <libavutil/mem.h>
+ #include <libavcodec/avcodec.h>
+ #include <libavcodec/avfft.h>
+ }
diff --git a/contrib/src/chromaprint/rules.mak b/contrib/src/chromaprint/rules.mak
new file mode 100644
index 0000000..a9a638d
--- /dev/null
+++ b/contrib/src/chromaprint/rules.mak
@@ -0,0 +1,24 @@
+# chromaprint
+
+CHROMAPRINT_VERSION := 0.7
+CHROMAPRINT_URL := https://bitbucket.org/acoustid/chromaprint/downloads/chromaprint-$(CHROMAPRINT_VERSION).tar.gz
+
+PKGS += chromaprint
+ifeq ($(call need_pkg,"libchromaprint"),)
+PKGS_FOUND += chromaprint
+endif
+
+$(TARBALLS)/chromaprint-$(CHROMAPRINT_VERSION).tar.gz:
+	$(call download,$(CHROMAPRINT_URL))
+
+.sum-chromaprint: chromaprint-$(CHROMAPRINT_VERSION).tar.gz
+
+chromaprint: chromaprint-$(CHROMAPRINT_VERSION).tar.gz .sum-chromaprint
+	$(UNPACK)
+	$(APPLY) $(SRC)/chromaprint/avutil.patch
+	$(MOVE)
+
+.chromaprint: chromaprint toolchain.cmake
+	cd $< && $(HOSTVARS_PIC) $(CMAKE) -DBUILD_SHARED_LIBS:BOOL=OFF
+	cd $< && $(MAKE) install
+	touch $@



More information about the vlc-commits mailing list