git: 8ec237cd568f - main - audio/noise-suppression-for-voice-lv2: Use EXTRACT_AFTER_ARGS

From: Daniel Engberg <diizzy_at_FreeBSD.org>
Date: Mon, 06 May 2024 20:25:59 UTC
The branch main has been updated by diizzy:

URL: https://cgit.FreeBSD.org/ports/commit/?id=8ec237cd568f2c51f700014cba613e943e3b0006

commit 8ec237cd568f2c51f700014cba613e943e3b0006
Author:     Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2024-05-06 20:07:27 +0000
Commit:     Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2024-05-06 20:10:41 +0000

    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