]> git.sesse.net Git - vlc/commitdiff
Contribs: add chromaprint
authorJean-Baptiste Kempf <jb@videolan.org>
Fri, 5 Apr 2013 15:26:39 +0000 (17:26 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Fri, 5 Apr 2013 15:27:05 +0000 (17:27 +0200)
contrib/src/chromaprint/SHA512SUMS [new file with mode: 0644]
contrib/src/chromaprint/avutil.patch [new file with mode: 0644]
contrib/src/chromaprint/rules.mak [new file with mode: 0644]

diff --git a/contrib/src/chromaprint/SHA512SUMS b/contrib/src/chromaprint/SHA512SUMS
new file mode 100644 (file)
index 0000000..1899478
--- /dev/null
@@ -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 (file)
index 0000000..4d687ed
--- /dev/null
@@ -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 (file)
index 0000000..a9a638d
--- /dev/null
@@ -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 $@