1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00

audio/noise-suppression-for-voice-lv2: Use EXTRACT_AFTER_ARGS

To decrease I/O load skip extracting files instead of removing after
extraction

PR:		278767
Reviewed by:	yuri (maintainer)
This commit is contained in:
Daniel Engberg 2024-05-06 22:07:27 +02:00
parent dc99303b16
commit 8ec237cd56

View File

@ -23,6 +23,10 @@ USES= cmake compiler:c11 localbase:ldflags pkgconfig
USE_GITHUB= yes
GH_ACCOUNT= werman
# Remove bundled library
EXTRACT_AFTER_ARGS= --exclude ${GH_PROJECT_DEFAULT}-${GH_TAGNAME_EXTRACT}/external/JUCE \
--no-same-owner --no-same-permissions
CMAKE_OFF= BUILD_TESTS
CMAKE_OFF+= BUILD_VST_PLUGIN # https://github.com/werman/noise-suppression-for-voice/issues/65
CXXFLAGS+= -DJUCE_CUSTOM_VST3_SDK=1 -DJUCE_INCLUDE_PNGLIB_CODE=0
@ -46,9 +50,6 @@ VST3_BROKEN= fails to build with juce-7.0.6, see https://github.com/werman/nois
CXXFLAGS+= -fclang-abi-compat=17
.endif
post-extract: # remove bundled JUCE
@${RM} -rf ${WRKSRC}/external/JUCE
post-install: # move plugins to a proper place: workaround for https://github.com/juce-framework/JUCE/issues/1237 and strip binaries
@${MV} ${STAGEDIR}${WRKDIR}/.lv2 ${STAGEDIR}${PREFIX}/lib/lv2
# remove empty directories