aboutsummaryrefslogtreecommitdiff
path: root/audio/surge-synthesizer-lv2/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'audio/surge-synthesizer-lv2/Makefile')
-rw-r--r--audio/surge-synthesizer-lv2/Makefile55
1 files changed, 55 insertions, 0 deletions
diff --git a/audio/surge-synthesizer-lv2/Makefile b/audio/surge-synthesizer-lv2/Makefile
new file mode 100644
index 000000000000..253e8b37a263
--- /dev/null
+++ b/audio/surge-synthesizer-lv2/Makefile
@@ -0,0 +1,55 @@
+# $FreeBSD$
+
+PORTNAME= surge-synthesizer
+DISTVERSIONPREFIX= release_
+DISTVERSION= 1.6.6-58
+DISTVERSIONSUFFIX= -g3dbd1be
+CATEGORIES= audio
+PKGNAMESUFFIX= -lv2
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= Surge Synthesizer LV2 and VST plug-in
+
+LICENSE= GPLv3
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= lv2>0:audio/lv2 \
+ ${LOCALBASE}/include/nanosvg.h:graphics/nanosvg \
+ xcb-util-keysyms>0:x11/xcb-util-keysyms
+LIB_DEPENDS= libxkbcommon.so:x11/libxkbcommon \
+ libxcb-cursor.so:x11/xcb-util-cursor \
+ libxcb-util.so:x11/xcb-util
+
+USES= cmake compiler:c++17-lang gnome pkgconfig python:build shebangfix xorg
+SHEBANG_FILES= build-linux.sh
+USE_GNOME= cairo
+USE_XORG= xcb
+USE_GITHUB= yes
+GH_PROJECT= surge
+GH_TUPLE= \
+ surge-synthesizer:vst3sdk:10287bc37bbb34324b8097369e2ec4eb73a51d65:surge_synthesizer_vst3sdk/vst3sdk \
+ surge-synthesizer:vstgui:313faee9db026b1d6254c91d8650e7da58e005a5:surge_synthesizer_vstgui/vstgui.surge \
+ craigsapp:midifile:41e450bcd5ba1c0419f69664944434b0abf9d7ba:craigsapp_midifile/libs/midifile \
+ steinbergmedia:vst3_base:37dbdb6ff7af29e518877f57f14050594164a0d6:steinbergmedia_vst3_base/vst3sdk/base \
+ steinbergmedia:vst3_cmake:f7ae22417019aa355de6f7ec46ecf890d3c2a76f:steinbergmedia_vst3_cmake/vst3sdk/cmake \
+ steinbergmedia:vst3_pluginterfaces:6c6bb30d18c3d5a553e55aa74afc5d146571be0a:steinbergmedia_vst3_pluginterfaces/vst3sdk/pluginterfaces \
+ steinbergmedia:vst3_public_sdk:ced72c00d5c1365a4cca16cdbfb871be2496848b:steinbergmedia_vst3_public_sdk/vst3sdk/public.sdk \
+
+BINARY_ALIAS= python=${PYTHON_CMD}
+
+PLIST_FILES= lib/lv2/Surge.lv2/Surge.so \
+ lib/lv2/Surge.lv2/Surge_dsp.ttl \
+ lib/lv2/Surge.lv2/Surge_ui.ttl \
+ lib/lv2/Surge.lv2/manifest.ttl \
+ lib/vst/Surge.so
+
+do-install:
+ # LV2 plugin
+ ${MKDIR} ${STAGEDIR}${PREFIX}/lib/lv2
+ cd ${WRKSRC}/products && ${COPYTREE_SHARE} Surge.lv2 ${STAGEDIR}${PREFIX}/lib/lv2
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/lv2/Surge.lv2/Surge.so
+ # VST plugin
+ ${MKDIR} ${STAGEDIR}${PREFIX}/lib/vst
+ ${INSTALL_LIB} ${WRKSRC}/products/Surge.vst3/Contents/*/Surge.so ${STAGEDIR}${PREFIX}/lib/vst
+
+.include <bsd.port.mk>