blob: 8dd3b0eb3e7a65478cb89a007ee2e38ab3a8b693 (
plain)
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
45
|
PORTNAME= FluidPlug
PORTVERSION= g20181209
PORTREVISION= 2
CATEGORIES= audio
PKGNAMESUFFIX= -lv2
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= yuri@FreeBSD.org
COMMENT= SoundFonts as LV2 plugins via FluidSynth
LICENSE= LGPL20
BUILD_DEPENDS= 7z:archivers/p7zip \
lv2>0:audio/lv2
LIB_DEPENDS= libfluidsynth.so:audio/fluidsynth
USES= gmake pkgconfig
USE_GITHUB= yes
GH_ACCOUNT= falkTX
GH_TAGNAME= 8457f10
SOUNDFONT_DIR= ${PREFIX}/share/sounds/sf2
OPTIONS_DEFINE_amd64= SSE
OPTIONS_DEFINE_i386= SSE
OPTIONS_DEFAULT_amd64= SSE
OPTIONS_DEFAULT_i386= SSE
SSE_MAKE_ARGS= PORT_SIMD_FLAGS="-mtune=generic -msse -msse2 -mfpmath=sse"
post-patch:
@${REINPLACE_CMD} -e ' \
s|PREFIX = /usr|PREFIX ?= /usr| ; \
s|wget .*\/\(.*\) \&\& \\|${LN} -s ${DISTDIR}/\1 . \&\& \\|' \
${WRKSRC}/Makefile
post-install:
# link installed soundfonts to the standard location for convenience of other apps
@${MKDIR} ${STAGEDIR}${SOUNDFONT_DIR}
@for f in ${STAGEDIR}${PREFIX}/lib/lv2/*.lv2/FluidPlug.sf2; do \
${RLN} $$f ${STAGEDIR}${SOUNDFONT_DIR}/$$(${ECHO} $$f | ${SED} -E 's|.*/lib/lv2/([[:alnum:]_]+)\.lv2/FluidPlug\.sf2|\1.sf2|'); \
done
.include "Makefile.list"
.include <bsd.port.mk>
|