git: e311dabb4f2a - main - New port: audio/fluida-lv2: Fluidsynth as LV2 plugin
Yuri Victorovich
yuri at FreeBSD.org
Thu Apr 8 00:21:41 UTC 2021
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=e311dabb4f2a3f556c076f110b82e6c3415f4a16
commit e311dabb4f2a3f556c076f110b82e6c3415f4a16
Author: Yuri Victorovich <yuri at FreeBSD.org>
AuthorDate: 2021-04-08 00:21:09 +0000
Commit: Yuri Victorovich <yuri at FreeBSD.org>
CommitDate: 2021-04-08 00:21:09 +0000
New port: audio/fluida-lv2: Fluidsynth as LV2 plugin
---
audio/Makefile | 1 +
audio/fluida-lv2/Makefile | 35 ++++++++++++++++++++++++++++
audio/fluida-lv2/distinfo | 5 ++++
audio/fluida-lv2/files/patch-Fluida_Makefile | 19 +++++++++++++++
audio/fluida-lv2/pkg-descr | 4 ++++
5 files changed, 64 insertions(+)
diff --git a/audio/Makefile b/audio/Makefile
index 46113dcb2b1b..ed60bb912d3b 100644
--- a/audio/Makefile
+++ b/audio/Makefile
@@ -184,6 +184,7 @@
SUBDIR += flake
SUBDIR += flite
SUBDIR += fluid-soundfont
+ SUBDIR += fluida-lv2
SUBDIR += fluidplug-lv2
SUBDIR += fluidsynth
SUBDIR += fluidsynth-dssi
diff --git a/audio/fluida-lv2/Makefile b/audio/fluida-lv2/Makefile
new file mode 100644
index 000000000000..6e0963e6ebef
--- /dev/null
+++ b/audio/fluida-lv2/Makefile
@@ -0,0 +1,35 @@
+PORTNAME= fluida
+DISTVERSIONPREFIX= v
+DISTVERSION= 0.6
+CATEGORIES= audio
+PKGNAMESUFFIX= -lv2
+DIST_SUBDIR= ${PORTNAME}
+
+MAINTAINER= yuri at FreeBSD.org
+COMMENT= Fluidsynth as LV2 plugin
+
+LICENSE= GPLv2
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= lv2>0:audio/lv2
+LIB_DEPENDS= libfluidsynth.so:audio/fluidsynth
+
+USES= compiler:c++11-lang gettext-runtime gmake gnome localbase pkgconfig xorg
+USE_GNOME= cairo
+USE_XORG= x11
+USE_BINUTILS= yes # linking needs some GNU features, fails on 12 without this, see https://github.com/brummer10/GxPlugins.lv2/issues/9
+
+USE_GITHUB= yes
+GH_ACCOUNT= brummer10
+GH_PROJECT= Fluida.lv2
+GH_TUPLE= brummer10:libxputty:7769d2f:libxputty/libxputty
+
+PLIST_FILES= lib/lv2/Fluida.lv2/Fluida.so \
+ lib/lv2/Fluida.lv2/Fluida.ttl \
+ lib/lv2/Fluida.lv2/Fluida_ui.so \
+ lib/lv2/Fluida.lv2/manifest.ttl
+
+post-patch: # /proc/cpuinfo is used to check SIMD support in CPU
+ @${REINPLACE_CMD} -e 's|/proc/cpuinfo|/dev/null|' ${WRKSRC}/Fluida/Makefile
+
+.include <bsd.port.mk>
diff --git a/audio/fluida-lv2/distinfo b/audio/fluida-lv2/distinfo
new file mode 100644
index 000000000000..191f0a30a3a2
--- /dev/null
+++ b/audio/fluida-lv2/distinfo
@@ -0,0 +1,5 @@
+TIMESTAMP = 1617838917
+SHA256 (fluida/brummer10-Fluida.lv2-v0.6_GH0.tar.gz) = 333079c7c4ad27630e53b3c57004cf44db181485c44be9392cf95b47629e13ff
+SIZE (fluida/brummer10-Fluida.lv2-v0.6_GH0.tar.gz) = 65035
+SHA256 (fluida/brummer10-libxputty-7769d2f_GH0.tar.gz) = f3e34717e217705f667d794c8085885b1196cfb0da76cf6c501bad75a1a07976
+SIZE (fluida/brummer10-libxputty-7769d2f_GH0.tar.gz) = 326400
diff --git a/audio/fluida-lv2/files/patch-Fluida_Makefile b/audio/fluida-lv2/files/patch-Fluida_Makefile
new file mode 100644
index 000000000000..c8fcc0a8295f
--- /dev/null
+++ b/audio/fluida-lv2/files/patch-Fluida_Makefile
@@ -0,0 +1,19 @@
+--- Fluida/Makefile.orig 2021-04-08 00:00:09 UTC
++++ Fluida/Makefile
+@@ -2,11 +2,11 @@
+ STRIP ?= strip
+ # check if user is root
+ user = $(shell whoami)
+- ifeq ($(user),root)
+- INSTALL_DIR = /usr/lib/lv2
+- else
+- INSTALL_DIR = ~/.lv2
+- endif
++ #ifeq ($(user),root)
++ INSTALL_DIR = $(PREFIX)/lib/lv2
++ #else
++ #INSTALL_DIR = ~/.lv2
++ #endif
+
+ # check CPU and supported optimization flags
+ ifneq ($(shell cat /dev/null | grep sse3 ) , )
diff --git a/audio/fluida-lv2/pkg-descr b/audio/fluida-lv2/pkg-descr
new file mode 100644
index 000000000000..6bda6c1843ae
--- /dev/null
+++ b/audio/fluida-lv2/pkg-descr
@@ -0,0 +1,4 @@
+Fluida is an LV2 plugin that uses FluidSynth to convert MIDI signal to audio
+signal.
+
+WWW: https://github.com/brummer10/Fluida.lv2
More information about the dev-commits-ports-all
mailing list