From 8ec237cd568f2c51f700014cba613e943e3b0006 Mon Sep 17 00:00:00 2001 From: Daniel Engberg Date: Mon, 6 May 2024 22:07:27 +0200 Subject: [PATCH] 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) --- audio/noise-suppression-for-voice-lv2/Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/audio/noise-suppression-for-voice-lv2/Makefile b/audio/noise-suppression-for-voice-lv2/Makefile index 62f77a75cee0..fed365634ca6 100644 --- a/audio/noise-suppression-for-voice-lv2/Makefile +++ b/audio/noise-suppression-for-voice-lv2/Makefile @@ -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