contribs: chromaprint: more fixes for .pc file.
[vlc.git] / contrib / src / chromaprint / rules.mak
1 # chromaprint
2
3 CHROMAPRINT_VERSION := 1.4.2
4 CHROMAPRINT_URL := $(GITHUB)/acoustid/chromaprint/releases/download/v$(CHROMAPRINT_VERSION)/chromaprint-$(CHROMAPRINT_VERSION).tar.gz
5
6 PKGS += chromaprint
7 ifeq ($(call need_pkg,"libchromaprint"),)
8 PKGS_FOUND += chromaprint
9 endif
10
11 $(TARBALLS)/chromaprint-$(CHROMAPRINT_VERSION).tar.gz:
12         $(call download_pkg,$(CHROMAPRINT_URL),chromaprint)
13
14 .sum-chromaprint: chromaprint-$(CHROMAPRINT_VERSION).tar.gz
15
16 chromaprint: chromaprint-$(CHROMAPRINT_VERSION).tar.gz .sum-chromaprint
17         $(UNPACK)
18         $(APPLY) $(SRC)/chromaprint/linklibs.patch
19         $(MOVE)
20
21 DEPS_chromaprint = ffmpeg $(DEPS_ffmpeg)
22
23 .chromaprint: chromaprint .ffmpeg toolchain.cmake
24         cd $< && $(HOSTVARS_PIC) $(CMAKE) -DBUILD_SHARED_LIBS:BOOL=OFF
25         cd $< && $(MAKE) install
26         touch $@