-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
Copy pathMakefile
41 lines (30 loc) · 1.53 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.2
SPK_REV = 21
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 to latest git hash 1.5.2 (aa67c95)<br/>2. Update to using ffmpeg5 version 5.1.5"
HOMEPAGE = https://acoustid.org/chromaprint
LICENSE = LGPL2.1+
# Reuse FFmpeg libraries
export FFMPEG_VERSION = 5
export FFMPEG_DIR = $(realpath $(shell pwd)/../ffmpeg$(FFMPEG_VERSION)/work-$(ARCH)-$(TCVERSION)/install/var/packages/ffmpeg$(subst 4,,$(FFMPEG_VERSION))/target)
ifneq ($(wildcard $(FFMPEG_DIR)),)
export ADDITIONAL_LDFLAGS = -Wl,--rpath-link,$(FFMPEG_DIR)/lib -Wl,--rpath,/var/packages/ffmpeg$(subst 4,,$(FFMPEG_VERSION))/target/lib
PRE_DEPEND_TARGET = chromaprint_pre_depend
SPK_DEPENDS := "ffmpeg$(subst 4,,$(FFMPEG_VERSION))>$(shell sed -n 's/^SPK_VERS = \(.*\)/\1/p' $(shell pwd)/../ffmpeg$(FFMPEG_VERSION)/Makefile | cut -c -3)"
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/ ;)