summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Engberg <diizzy@FreeBSD.org>2024-05-06 22:07:27 +0200
committerDaniel Engberg <diizzy@FreeBSD.org>2024-05-06 22:10:41 +0200
commit8ec237cd568f2c51f700014cba613e943e3b0006 (patch)
tree3f42d95c25fd457e4a477d38389236542627699c
parentdevel/pycharm-ce: Use EXTRACT_AFTER_ARGS (diff)
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)
-rw-r--r--audio/noise-suppression-for-voice-lv2/Makefile7
1 files 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