-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
Copy pathMakefile
45 lines (34 loc) · 1.18 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
42
43
44
SPK_NAME = chromaprint
SPK_VERS = 1.1
SPK_REV = 1
SPK_ICON = src/chromaprint.png
DEPENDS = cross/$(SPK_NAME)
RELOAD_UI = yes
STARTABLE = no
BETA = 1
MAINTAINER = cytec
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
HOMEPAGE = http://acoustid.org/chromaprint
LICENSE = LGPL2.1+
INSTALLER_SCRIPT = src/installer.sh
SSS_SCRIPT = src/dsm-control.sh
INSTALL_PREFIX = /usr/local/$(SPK_NAME)
POST_STRIP_TARGET = chromaprint_extra_install
include ../../mk/spksrc.spk.mk
.PHONY: chromaprint_extra_install
chromaprint_extra_install:
install -m 755 -d $(STAGING_DIR)/app
install -m 755 -d $(STAGING_DIR)/app/images
for size in 16 24 32 48 72; do \
convert $(SPK_ICON) -thumbnail $${size}x$${size} \
$(STAGING_DIR)/app/images/$(SPK_NAME)-$${size}.png ; \
done
#delete unneeded stuff
rm -f $(STAGING_DIR)/bin/ffmpeg
rm -f $(STAGING_DIR)/bin/ffprobe
rm -f $(STAGING_DIR)/bin/ffserver
rm -rf $(STAGING_DIR)/share/
rm -f $(STAGING_DIR)/bin/lame
rm -f $(STAGING_DIR)/bin/x264
rm -rf $(STAGING_DIR)/include