git: 51ab07610745 - main - audio/dpf-plugins-lv2: Fix plist on architectures other than amd64

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Mon, 14 Nov 2022 00:22:50 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=51ab076107454096b62124403f1492e0f1ad1fc2

commit 51ab076107454096b62124403f1492e0f1ad1fc2
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-11-14 00:21:36 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-11-14 00:22:47 +0000

    audio/dpf-plugins-lv2: Fix plist on architectures other than amd64
    
    Reported by:    fallout
---
 audio/dpf-plugins-lv2/Makefile  |  2 ++
 audio/dpf-plugins-lv2/pkg-plist | 30 +++++++++++++++---------------
 2 files changed, 17 insertions(+), 15 deletions(-)

diff --git a/audio/dpf-plugins-lv2/Makefile b/audio/dpf-plugins-lv2/Makefile
index edd766cb3ffa..7795bc7d4416 100644
--- a/audio/dpf-plugins-lv2/Makefile
+++ b/audio/dpf-plugins-lv2/Makefile
@@ -33,6 +33,8 @@ CXXFLAGS+=	-I${FILESDIR}
 LDFLAGS+=	-pthread
 MAKE_ARGS=	LINUX=true
 
+PLIST_SUB+=	VST_ARCH=${ARCH:S/amd64/x86_64/}
+
 CONFLICTS_INSTALL=	nekobi-lv2 # bin/Nekobi
 
 OPTIONS_DEFINE=		JACK
diff --git a/audio/dpf-plugins-lv2/pkg-plist b/audio/dpf-plugins-lv2/pkg-plist
index b6cf65289e68..ccb7bb38cd22 100644
--- a/audio/dpf-plugins-lv2/pkg-plist
+++ b/audio/dpf-plugins-lv2/pkg-plist
@@ -127,18 +127,18 @@ lib/vst/PingPongPan-vst.so
 lib/vst/ProM.vst/ProM.so
 lib/vst/SoulForce-vst.so
 lib/vst/glBars-vst.so
-lib/vst3/3BandEQ.vst3/Contents/x86_64-linux/3BandEQ.so
-lib/vst3/3BandSplitter.vst3/Contents/x86_64-linux/3BandSplitter.so
-lib/vst3/AmplitudeImposer.vst3/Contents/x86_64-linux/AmplitudeImposer.so
-lib/vst3/CycleShifter.vst3/Contents/x86_64-linux/CycleShifter.so
-lib/vst3/Kars.vst3/Contents/x86_64-linux/Kars.so
-lib/vst3/MVerb.vst3/Contents/x86_64-linux/MVerb.so
-lib/vst3/MaBitcrush.vst3/Contents/x86_64-linux/MaBitcrush.so
-lib/vst3/MaFreeverb.vst3/Contents/x86_64-linux/MaFreeverb.so
-lib/vst3/MaGigaverb.vst3/Contents/x86_64-linux/MaGigaverb.so
-lib/vst3/MaPitchshift.vst3/Contents/x86_64-linux/MaPitchshift.so
-lib/vst3/Nekobi.vst3/Contents/x86_64-linux/Nekobi.so
-lib/vst3/PingPongPan.vst3/Contents/x86_64-linux/PingPongPan.so
-lib/vst3/ProM.vst3/Contents/x86_64-linux/ProM.so
-lib/vst3/SoulForce.vst3/Contents/x86_64-linux/SoulForce.so
-lib/vst3/glBars.vst3/Contents/x86_64-linux/glBars.so
+lib/vst3/3BandEQ.vst3/Contents/%%VST_ARCH%%-linux/3BandEQ.so
+lib/vst3/3BandSplitter.vst3/Contents/%%VST_ARCH%%-linux/3BandSplitter.so
+lib/vst3/AmplitudeImposer.vst3/Contents/%%VST_ARCH%%-linux/AmplitudeImposer.so
+lib/vst3/CycleShifter.vst3/Contents/%%VST_ARCH%%-linux/CycleShifter.so
+lib/vst3/Kars.vst3/Contents/%%VST_ARCH%%-linux/Kars.so
+lib/vst3/MVerb.vst3/Contents/%%VST_ARCH%%-linux/MVerb.so
+lib/vst3/MaBitcrush.vst3/Contents/%%VST_ARCH%%-linux/MaBitcrush.so
+lib/vst3/MaFreeverb.vst3/Contents/%%VST_ARCH%%-linux/MaFreeverb.so
+lib/vst3/MaGigaverb.vst3/Contents/%%VST_ARCH%%-linux/MaGigaverb.so
+lib/vst3/MaPitchshift.vst3/Contents/%%VST_ARCH%%-linux/MaPitchshift.so
+lib/vst3/Nekobi.vst3/Contents/%%VST_ARCH%%-linux/Nekobi.so
+lib/vst3/PingPongPan.vst3/Contents/%%VST_ARCH%%-linux/PingPongPan.so
+lib/vst3/ProM.vst3/Contents/%%VST_ARCH%%-linux/ProM.so
+lib/vst3/SoulForce.vst3/Contents/%%VST_ARCH%%-linux/SoulForce.so
+lib/vst3/glBars.vst3/Contents/%%VST_ARCH%%-linux/glBars.so