-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
Copy pathMakefile
41 lines (29 loc) · 1.21 KB
/
Makefile
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
SPK_NAME = chromaprint
SPK_VERS = 1.5.0
SPK_REV = 12
SPK_ICON = src/chromaprint.png
DEPENDS = cross/$(SPK_NAME)
STARTABLE = no
MAINTAINER = ymartin59
DESCRIPTION = Chromaprint is the core component of the AcoustID project. It\'s a client-side library that implements a custom algorithm for extracting fingerprints from any audio source.
DISPLAY_NAME = Chromaprint
CHANGELOG = "1. Update version 1.5.0<br/>2. Update to ffmpeg 4.2.4<br/>3. Fix shared library build"
HOMEPAGE = http://acoustid.org/chromaprint
LICENSE = LGPL2.1+
include ../../mk/spksrc.common.mk
# Reuse FFmpeg libraries
export FFMPEG_DIR = $(shell pwd)/../ffmpeg/work-$(ARCH)-$(TCVERSION)/install/var/packages/ffmpeg/target
ifneq ($(wildcard $(FFMPEG_DIR)),)
PRE_DEPEND_TARGET = chromaprint_pre_depend
SPK_DEPENDS = "ffmpeg>4.2"
endif
SPK_COMMANDS = bin/fpcalc
include ../../mk/spksrc.spk.mk
.PHONY: chromaprint_pre_depend
# From library detection at cmake/modules/FindFFmpeg.cmake
FFMPEG_LIBS = libavcodec.pc
FFMPEG_LIBS += libavformat.pc
FFMPEG_LIBS += libavutil.pc
chromaprint_pre_depend:
mkdir -p $(STAGING_INSTALL_PREFIX)/lib/pkgconfig/
$(foreach lib,$(FFMPEG_LIBS),ln -sf $(FFMPEG_DIR)/lib/pkgconfig/$(lib) $(STAGING_INSTALL_PREFIX)/lib/pkgconfig/ ;)