git: 6feabdb17d47 - main - audio/lmms: fix pkg-plist on non-{amd64,i386}

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Thu, 26 May 2022 00:19:01 UTC
The branch main has been updated by pkubaj:

URL: https://cgit.FreeBSD.org/ports/commit/?id=6feabdb17d4737f5b28ce8231b1b64d6d2177988

commit 6feabdb17d4737f5b28ce8231b1b64d6d2177988
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2022-05-26 00:07:23 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2022-05-26 00:07:23 +0000

    audio/lmms: fix pkg-plist on non-{amd64,i386}
    
    libgigplayer.so depends on audio/carla having LINUXSAMPLER enabled, but
    LINUXSAMPLER only works on amd64 and i386.
---
 audio/lmms/Makefile  | 8 ++++++++
 audio/lmms/pkg-plist | 2 +-
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/audio/lmms/Makefile b/audio/lmms/Makefile
index 0c8799aef1fd..104d5b303d89 100644
--- a/audio/lmms/Makefile
+++ b/audio/lmms/Makefile
@@ -65,6 +65,14 @@ SDL_USE=		SDL=sdl
 SNDIO_CMAKE_BOOL=	WANT_SNDIO
 SNDIO_LIB_DEPENDS=	libsndio.so:audio/sndio
 
+.include <bsd.port.options.mk>
+
+.if ${ARCH} == amd64 || ${ARCH} == i386
+PLIST_SUB=	LINUXSAMPLER=""
+.else
+PLIST_SUB=	LINUXSAMPLER="@comment "
+.endif
+
 post-patch:
 	@${REINPLACE_CMD} 's|/usr|${LOCALBASE}|g' ${WRKSRC}/src/core/ConfigManager.cpp
 	@${REINPLACE_CMD} 's|/usr/local|${LOCALBASE}|g' \
diff --git a/audio/lmms/pkg-plist b/audio/lmms/pkg-plist
index e7ff5cae7365..647a1d02fe59 100644
--- a/audio/lmms/pkg-plist
+++ b/audio/lmms/pkg-plist
@@ -246,7 +246,7 @@ lib/lmms/libdualfilter.so
 lib/lmms/libdynamicsprocessor.so
 lib/lmms/libeq.so
 lib/lmms/libflanger.so
-lib/lmms/libgigplayer.so
+%%LINUXSAMPLER%%lib/lmms/libgigplayer.so
 lib/lmms/libhydrogenimport.so
 lib/lmms/libkicker.so
 lib/lmms/libladspabrowser.so