Skip to content

Commit

Permalink
audio/lmms: fix pkg-plist on non-{amd64,i386}
Browse files Browse the repository at this point in the history
libgigplayer.so depends on audio/carla having LINUXSAMPLER enabled, but
LINUXSAMPLER only works on amd64 and i386.
  • Loading branch information
pkubaj committed May 26, 2022
1 parent 835d26d commit 6feabdb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions audio/lmms/Makefile
Expand Up @@ -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' \
Expand Down
2 changes: 1 addition & 1 deletion audio/lmms/pkg-plist
Expand Up @@ -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
Expand Down

0 comments on commit 6feabdb

Please sign in to comment.