git: 6e11c236419a - main - audio/neuralrack-lv2: fix packaging on non-amd64
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 10 Oct 2026 18:16:25 UTC
The branch main has been updated by pkubaj:
URL: https://cgit.FreeBSD.org/ports/commit/?id=6e11c236419afce9175df1daa5b2fb9518f69622
commit 6e11c236419afce9175df1daa5b2fb9518f69622
Author: Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2026-10-09 09:01:43 +0000
Commit: Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2026-10-10 18:15:21 +0000
audio/neuralrack-lv2: fix packaging on non-amd64
Name the VST3 bundle directory after the compiler target instead of
uname -m, which is the platform (powerpc, arm64) on FreeBSD, and make
pkg-plist follow ARCH.
---
audio/neuralrack-lv2/Makefile | 2 ++
audio/neuralrack-lv2/files/patch-NeuralRack_makefile | 19 ++++++++++++++++---
audio/neuralrack-lv2/pkg-plist | 2 +-
3 files changed, 19 insertions(+), 4 deletions(-)
diff --git a/audio/neuralrack-lv2/Makefile b/audio/neuralrack-lv2/Makefile
index 683fb99498a4..d8e2a1d88cd7 100644
--- a/audio/neuralrack-lv2/Makefile
+++ b/audio/neuralrack-lv2/Makefile
@@ -42,6 +42,8 @@ MAKEFILE= makefile
CXXFLAGS+= -I${LOCALBASE}/include/eigen3 \
-I${WRKSRC}/NeuralAudio/deps/RTNeural/modules/Eigen
+PLIST_SUB= VST3_ARCH=${ARCH:S/amd64/x86_64/}
+
BUILD_CONFLICTS= portaudio # because portaudio is built with the JACK option off, but neuralrack finds it and assumes that JACK is enabled there
.include <bsd.port.mk>
diff --git a/audio/neuralrack-lv2/files/patch-NeuralRack_makefile b/audio/neuralrack-lv2/files/patch-NeuralRack_makefile
index d9438fe60cea..fa7d095e7bb4 100644
--- a/audio/neuralrack-lv2/files/patch-NeuralRack_makefile
+++ b/audio/neuralrack-lv2/files/patch-NeuralRack_makefile
@@ -3,8 +3,9 @@
-- 2. Use DESTDIR check instead of root user check for install directory selection
-- 3. Use PREFIX for install directories instead of hardcoded /usr paths
-- 4. Comment out root-only install guard for standalone binary
+-- 5. Name the VST3 bundle directory after the compiler target (uname -m is the platform on FreeBSD)
---- NeuralRack/makefile.orig 2026-09-23 18:39:31 UTC
+--- NeuralRack/makefile.orig 2026-08-03 07:28:19 UTC
+++ NeuralRack/makefile
@@ -2,17 +2,17 @@
# check on which OS we build
@@ -31,7 +32,19 @@
else
INSTALL_DIR = ~/.lv2
#EXE_INSTALL_DIR = ~/bin
-@@ -528,7 +528,7 @@ ifneq ("$(wildcard ../bin/$(EXEC_NAME)$(EXE_EXT))","")
+@@ -216,7 +216,11 @@ endif
+ VST3_INCLUDE := -I./engine/ -I./vst3/ -I./wrapper/vst3/travesty/ -I./wrapper/ -I./wrapper/vst3/ -I./plugdef/
+ VST3_SOURCES := $(VST3_DIR)NeuralRackVST3.cpp
+ ARCH = `echo $(UNAME_S) | tr A-Z a-z`
++ifeq ($(UNAME_S), FreeBSD)
++ VST3_BUNDLE := $(VST3_NAME).vst3/Contents/$(TARGET_ARCH)-$(ARCH)/
++else
+ VST3_BUNDLE := $(VST3_NAME).vst3/Contents/$(UNAME_M)-$(ARCH)/
++endif
+
+ LV2_PLUGIN := $(LV2_DIR)$(NAME)
+ LV2_GUI := $(GUI_DIR)$(NAME)
+@@ -528,7 +532,7 @@ ifneq ("$(wildcard ../bin/$(EXEC_NAME)$(EXE_EXT))","")
@$(B_ECHO) "$(BUNDLE) skipped$(reset)"
endif
ifneq ("$(wildcard ../bin/$(EXEC_NAME)$(EXE_EXT))","")
@@ -40,7 +53,7 @@
@$(B_ECHO) "Install $(EXEC_NAME)$(EXE_EXT) to $(DESTDIR)$(EXE_INSTALL_DIR)/$(reset)"
$(QUIET)mkdir -p $(DESTDIR)$(EXE_INSTALL_DIR)/
$(QUIET)cp -r ../bin/$(EXEC_NAME)$(EXE_EXT) $(DESTDIR)$(EXE_INSTALL_DIR)/$(EXEC_NAME)$(EXE_EXT)
-@@ -536,9 +536,8 @@ ifneq ("$(wildcard ../bin/$(EXEC_NAME)$(EXE_EXT))","")
+@@ -536,9 +540,8 @@ ifneq ("$(wildcard ../bin/$(EXEC_NAME)$(EXE_EXT))","")
$(QUIET)cp $(STANDALONE_DIR)$(NAME).desktop $(DESTDIR)$(DESKAPPS_DIR)$(NAME).desktop
$(QUIET)mkdir -p $(DESTDIR)$(PIXMAPS_DIR)
$(QUIET)cp $(STANDALONE_DIR)$(NAME).svg $(DESTDIR)$(PIXMAPS_DIR)$(NAME).svg
diff --git a/audio/neuralrack-lv2/pkg-plist b/audio/neuralrack-lv2/pkg-plist
index 2bebc8920ae1..309fddf65dd3 100644
--- a/audio/neuralrack-lv2/pkg-plist
+++ b/audio/neuralrack-lv2/pkg-plist
@@ -5,6 +5,6 @@ lib/lv2/Neuralrack.lv2/Neuralrack.so
lib/lv2/Neuralrack.lv2/Neuralrack_ui.so
lib/lv2/Neuralrack.lv2/manifest.ttl
lib/vst/NeuralRackvst.so
-lib/vst3/NeuralRackVST3.vst3/Contents/x86_64-freebsd/NeuralRackVST3.so
+lib/vst3/NeuralRackVST3.vst3/Contents/%%VST3_ARCH%%-freebsd/NeuralRackVST3.so
share/applications/NeuralRack.desktop
share/pixmaps/NeuralRack.svg