diff --git a/audio/noise-suppression-for-voice-lv2/Makefile b/audio/noise-suppression-for-voice-lv2/Makefile index fed365634ca6..0a5d693b6da5 100644 --- a/audio/noise-suppression-for-voice-lv2/Makefile +++ b/audio/noise-suppression-for-voice-lv2/Makefile @@ -1,71 +1,71 @@ PORTNAME= noise-suppression-for-voice DISTVERSIONPREFIX= v -DISTVERSION= 1.03 -PORTREVISION= 2 +DISTVERSION= 1.10 CATEGORIES= audio PKGNAMESUFFIX= -lv2 MAINTAINER= yuri@FreeBSD.org COMMENT= Real-time noise suppression plugin WWW= https://github.com/werman/noise-suppression-for-voice LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/LICENSE BROKEN_armv7= link fails: ld: error: undefined symbol: __atomic_store and ld: error: undefined symbol: __atomic_load BUILD_DEPENDS= juce>0:devel/juce \ lv2>0:audio/lv2 LIB_DEPENDS= libfreetype.so:print/freetype2 \ libpng16.so:graphics/png 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_ON= USE_SYSTEM_JUCE 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 LDFLAGS+= -lpng16 PLIST_SUB= XARCH=${ARCH:S/amd64/x86_64/} OPTIONS_DEFINE= LADSPA VST3 OPTIONS_DEFAULT= LADSPA #VST3 OPTIONS_SUB= yes LADSPA_CMAKE_BOOL= BUILD_LADSPA_PLUGIN VST3_CMAKE_BOOL= BUILD_VST3_PLUGIN VST3_BROKEN= fails to build with juce-7.0.6, see https://github.com/werman/noise-suppression-for-voice/issues/177 .include .if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 180 # Work around https://github.com/llvm/llvm-project/issues/88592 CXXFLAGS+= -fclang-abi-compat=17 .endif 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 @${FIND} ${STAGEDIR} -type d -empty -delete # strip binaries @cd ${STAGEDIR}${PREFIX} && ${STRIP_CMD} \ lib/lv2/rnnoise_mono.lv2/librnnoise_mono.so \ lib/lv2/rnnoise_stereo.lv2/librnnoise_stereo.so post-install-VST3-on: @${MKDIR} ${STAGEDIR}${PREFIX}/lib/vst3 @${MV} `${FIND} ${STAGEDIR} -name rnnoise.vst3` ${STAGEDIR}${PREFIX}/lib/vst3 # strip binaries @cd ${STAGEDIR}${PREFIX} && ${STRIP_CMD} \ lib/vst3/rnnoise.vst3/Contents/*/rnnoise.so # the LADSPA plugin can be used directly from PulseAudio's config file .include diff --git a/audio/noise-suppression-for-voice-lv2/distinfo b/audio/noise-suppression-for-voice-lv2/distinfo index 9245c5a9ae8f..dedd798e7259 100644 --- a/audio/noise-suppression-for-voice-lv2/distinfo +++ b/audio/noise-suppression-for-voice-lv2/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1686287620 -SHA256 (werman-noise-suppression-for-voice-v1.03_GH0.tar.gz) = 8c85cae3ebbb3a18facc38930a3b67ca90e3ad609526a0018c71690de35baf04 -SIZE (werman-noise-suppression-for-voice-v1.03_GH0.tar.gz) = 19486457 +TIMESTAMP = 1716182553 +SHA256 (werman-noise-suppression-for-voice-v1.10_GH0.tar.gz) = 6e0c11aeb8392891750b0243c2ba695dab07654bf3f4e01adbed927b36cc690a +SIZE (werman-noise-suppression-for-voice-v1.10_GH0.tar.gz) = 37315188 diff --git a/audio/noise-suppression-for-voice-lv2/files/patch-CMakeLists.txt b/audio/noise-suppression-for-voice-lv2/files/patch-CMakeLists.txt index 40ba5695fd69..a033a5f9a502 100644 --- a/audio/noise-suppression-for-voice-lv2/files/patch-CMakeLists.txt +++ b/audio/noise-suppression-for-voice-lv2/files/patch-CMakeLists.txt @@ -1,20 +1,21 @@ ---- CMakeLists.txt.orig 2022-07-28 08:24:44 UTC +--- CMakeLists.txt.orig 2024-05-18 14:43:53 UTC +++ CMakeLists.txt -@@ -4,7 +4,7 @@ cmake_minimum_required(VERSION 3.6) +@@ -4,7 +4,7 @@ set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR} include(GNUInstallDirs) set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib) -set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) +set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib) set(CMAKE_BINARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) set(MINGW_ADDITIONAL_LINKING_FLAGS "-static-libgcc -static-libstdc++ -Wl,-Bstatic -lstdc++ -lpthread -Wl,-Bdynamic") -@@ -35,6 +35,7 @@ if (BUILD_VST_PLUGIN OR BUILD_VST3_PLUGIN OR BUILD_LV2 - # For install JUCE copies all its headers, no one needs them. It also doesn't install actual libraries. - # On the other hand JUCE could install libraries during build process (see COPY_PLUGIN_AFTER_BUILD option). - # So we have to manually install plugins. -- add_subdirectory(external/JUCE EXCLUDE_FROM_ALL) -+ #add_subdirectory(external/JUCE EXCLUDE_FROM_ALL) -+ find_package(JUCE REQUIRED) - add_subdirectory(src/juce_plugin) - endif () +@@ -36,7 +36,8 @@ if (BUILD_VST_PLUGIN OR BUILD_VST3_PLUGIN OR BUILD_LV2 + + if (BUILD_VST_PLUGIN OR BUILD_VST3_PLUGIN OR BUILD_LV2_PLUGIN OR BUILD_AU_PLUGIN OR BUILD_AUV3_PLUGIN) + if (USE_SYSTEM_JUCE) +- find_package(JUCE) ++ find_package(JUCE REQUIRED) ++ message("-- Found JUCE Version=${JUCE_VERSION}") + else () + # For install JUCE copies all its headers, no one needs them. It also doesn't install actual libraries. + # On the other hand JUCE could install libraries during build process (see COPY_PLUGIN_AFTER_BUILD option). diff --git a/audio/noise-suppression-for-voice-lv2/files/patch-src_juce__plugin_CMakeLists.txt b/audio/noise-suppression-for-voice-lv2/files/patch-src_juce__plugin_CMakeLists.txt index a0a868000b81..c7a1ecb8634b 100644 --- a/audio/noise-suppression-for-voice-lv2/files/patch-src_juce__plugin_CMakeLists.txt +++ b/audio/noise-suppression-for-voice-lv2/files/patch-src_juce__plugin_CMakeLists.txt @@ -1,28 +1,21 @@ ---- src/juce_plugin/CMakeLists.txt.orig 2022-07-28 08:24:44 UTC +--- src/juce_plugin/CMakeLists.txt.orig 2024-05-18 14:43:53 UTC +++ src/juce_plugin/CMakeLists.txt -@@ -87,14 +89,14 @@ function(compile_plugins formats suffix default_channe +@@ -88,14 +88,14 @@ function(compile_plugins formats suffix default_channe # JUCE has a terrible idea of installing plugin during the BUILD process instead of during the INSTALL, # also JUCE wants to install its headers which we don't want at all. # So it's easier to handle it ourselves. - if (UNIX AND NOT APPLE) + if (FALSE AND UNIX AND NOT APPLE) foreach (format IN LISTS formats) if (format STREQUAL "LV2") - install(DIRECTORY ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/rnnoise${suffix}.lv2 DESTINATION ${CMAKE_INSTALL_LIBDIR}/lv2) + install(DIRECTORY ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/../src/juce_plugin/rnnoise_juce_plugin${suffix}_artefacts/Release/LV2/rnnoise${suffix}.lv2 DESTINATION lib/lv2) elseif (format STREQUAL "VST") - install(DIRECTORY ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/vst/ DESTINATION ${CMAKE_INSTALL_LIBDIR}/lxvst) + install(DIRECTORY ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/vst/ DESTINATION lib/lxvst) elseif (format STREQUAL "VST3") - install(DIRECTORY ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/rnnoise.vst3 DESTINATION ${CMAKE_INSTALL_LIBDIR}/vst3) + install(DIRECTORY ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/../src/juce_plugin/rnnoise_juce_plugin_artefacts/Release/VST3/rnnoise.vst3 DESTINATION lib/vst3) endif () endforeach () endif () -@@ -135,4 +137,4 @@ endif () - - if (FORMATS) - compile_plugins("${FORMATS}" "" 1) --endif () -\ No newline at end of file -+endif ()