git: b3b870ce3e1e - main - audio/audacity: Update 3.7.4 => 3.7.5, improve port

From: Vladimir Druzenko <vvd_at_FreeBSD.org>
Date: Mon, 18 Aug 2025 11:09:41 UTC
The branch main has been updated by vvd:

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

commit b3b870ce3e1edff21f46458edc242fc6d73e04fd
Author:     Vladimir Druzenko <vvd@FreeBSD.org>
AuthorDate: 2025-08-18 10:41:38 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2025-08-18 11:09:06 +0000

    audio/audacity: Update 3.7.4 => 3.7.5, improve port
    
    Changelog:
    https://support.audacityteam.org/additional-resources/changelog/audacity-3.7.5
    
    Improve port:
    - Add NLS optinon.
    - Remove dependency from devel/nasm - required only for build already
      unbundled libs: lilv, lv2, serd, sord, sratom, suil.
    - Sort options in CMAKE_ARGS, CMAKE_ON, CMAKE_OFF.
    - Re-format (re-split) long lines.
    
    PR:             288698
    Approved by:    Jack <xxjack12xx@gmail.com> (maintainer)
    Co-authored-by: Älven <alven@FreeBSD.org>
    Co-authored-by: Jack <xxjack12xx@gmail.com>
---
 audio/audacity/Makefile                       | 41 ++++++++++++++-------------
 audio/audacity/distinfo                       | 10 +++----
 audio/audacity/files/patch-src_CMakeLists.txt | 18 ++++++++++++
 3 files changed, 44 insertions(+), 25 deletions(-)

diff --git a/audio/audacity/Makefile b/audio/audacity/Makefile
index 8701c563162a..cf9bd7f23e34 100644
--- a/audio/audacity/Makefile
+++ b/audio/audacity/Makefile
@@ -1,7 +1,6 @@
 PORTNAME=	audacity
 DISTVERSIONPREFIX=	Audacity-
-DISTVERSION=	3.7.4
-PORTREVISION=	4
+DISTVERSION=	3.7.5
 CATEGORIES=	audio
 MASTER_SITES+=	https://github.com/${PORTNAME}/${PORTNAME}-manual/releases/download/v${DISTVERSION}/:manual
 DISTFILES+=	${PORTNAME}-manual-${DISTVERSION}.tar.gz:manual
@@ -14,10 +13,8 @@ LICENSE=	GPLv2+
 LICENSE_FILE=	${WRKSRC}/LICENSE.txt
 
 BUILD_DEPENDS=	conan:sysutils/conan \
-		rapidjson>0:devel/rapidjson \
-		lv2>0:audio/lv2
-BUILD_DEPENDS_amd64=	nasm:devel/nasm
-BUILD_DEPENDS_i386=	nasm:devel/nasm
+		lv2>0:audio/lv2 \
+		rapidjson>0:devel/rapidjson
 LIB_DEPENDS=	libexpat.so:textproc/expat2 \
 		libharfbuzz.so:print/harfbuzz \
 		liblilv-0.so:audio/lilv \
@@ -31,14 +28,14 @@ LIB_DEPENDS=	libexpat.so:textproc/expat2 \
 		libsndfile.so:audio/libsndfile \
 		libsord-0.so:devel/sord \
 		libsoxr.so:audio/libsoxr \
-		libsratom-0.so:audio/sratom \
 		libsqlite3.so:databases/sqlite3 \
+		libsratom-0.so:audio/sratom \
 		libsuil-0.so:audio/suil \
 		libuuid.so:misc/libuuid \
 		libwavpack.so:audio/wavpack
 
-USES=		cmake compiler:c++20-lang cpe desktop-file-utils gettext \
-		gnome python:build pkgconfig shared-mime-info
+USES=		cmake compiler:c++20-lang cpe desktop-file-utils \
+		gettext-runtime gnome python:build pkgconfig shared-mime-info
 CPE_VENDOR=	audacityteam
 
 USE_GITHUB=	yes
@@ -58,10 +55,10 @@ CMAKE_ARGS=	-DAUDACITY_BUILD_LEVEL=2 \
 		-Daudacity_use_lv2:STRING=system \
 		-Daudacity_use_midi:STRING=system \
 		-Daudacity_use_nyquist:STRING=local \
+		-Daudacity_use_png:STRING=system \
 		-Daudacity_use_portaudio:STRING=system \
 		-Daudacity_use_portmixer:STRING=local \
 		-Daudacity_use_portsmf:STRING=local \
-		-Daudacity_use_png:STRING=system \
 		-Daudacity_use_rapidjson:STRING=system \
 		-Daudacity_use_soxr:STRING=system \
 		-Daudacity_use_sqlite:STRING=system \
@@ -69,19 +66,20 @@ CMAKE_ARGS=	-DAUDACITY_BUILD_LEVEL=2 \
 		-Daudacity_use_wxwidgets:STRING=system \
 		-Daudacity_use_zlib:STRING=system
 
-CMAKE_ON=	audacity_bundle_gplv3 audacity_conan_allow_prebuilt_binaries audacity_obey_system_dependencies
-CMAKE_OFF=	audacity_has_audiocom_upload audacity_conan_enabled audacity_conan_force_build_dependencies \
-		audacity_has_crashreports audacity_has_networking audacity_has_updates_check audacity_has_url_schemes_support \
-		audacity_has_tests audacity_has_vst3 audacity_perform_codesign audacity_use_pch
+CMAKE_ON=	audacity_bundle_gplv3 audacity_conan_allow_prebuilt_binaries \
+		audacity_obey_system_dependencies
+CMAKE_OFF=	audacity_conan_enabled audacity_conan_force_build_dependencies \
+		audacity_has_audiocom_upload audacity_has_crashreports \
+		audacity_has_networking audacity_has_tests \
+		audacity_has_updates_check audacity_has_url_schemes_support \
+		audacity_has_vst3 audacity_perform_codesign audacity_use_pch
 
-# TODO: fix NLS support properly
-PLIST_SUB+=	NLS=""
 PORTDOCS=	README.md
 
-OPTIONS_DEFINE=		DEBUG DOCS FFMPEG FLAC ID3TAG LADSPA MANUAL \
-			OGG SBSMS SOUNDTOUCH TWOLAME VAMP VORBIS VST
-OPTIONS_DEFAULT=	FFMPEG FLAC ID3TAG LADSPA OGG SBSMS \
-			SOUNDTOUCH TWOLAME VAMP VORBIS VST
+OPTIONS_DEFINE=		DEBUG DOCS FFMPEG FLAC ID3TAG LADSPA MANUAL NLS OGG \
+			SBSMS SOUNDTOUCH TWOLAME VAMP VORBIS VST
+OPTIONS_DEFAULT=	FFMPEG FLAC ID3TAG LADSPA OGG SBSMS SOUNDTOUCH TWOLAME \
+			VAMP VORBIS VST
 OPTIONS_EXCLUDE_i386=	SBSMS
 OPTIONS_SUB=		yes
 
@@ -112,6 +110,9 @@ LADSPA_CMAKE_BOOL=	audacity_use_ladspa
 
 MANUAL_CMAKE_BOOL=	audacity_package_manual
 
+NLS_USES=		gettext-tools
+NLS_CMAKE_BOOL=		audacity_locale
+
 OGG_LIB_DEPENDS=	libogg.so:audio/libogg
 OGG_CMAKE_ON=		-Daudacity_use_libogg:STRING=system
 OGG_CMAKE_OFF=		-Daudacity_use_libogg:STRING=off
diff --git a/audio/audacity/distinfo b/audio/audacity/distinfo
index 9b7171d1d392..d76881ab130d 100644
--- a/audio/audacity/distinfo
+++ b/audio/audacity/distinfo
@@ -1,5 +1,5 @@
-TIMESTAMP = 1749633114
-SHA256 (audacity-manual-3.7.4.tar.gz) = 7dabdf89b9050d67e850cde5c8aa94858151b344e0953747c6bc1697c4dec504
-SIZE (audacity-manual-3.7.4.tar.gz) = 26569277
-SHA256 (audacity-audacity-Audacity-3.7.4_GH0.tar.gz) = 76d0867bb852bbaa3dff834804b0abf8208a763461187f0ae2a0d5a3ddf31df7
-SIZE (audacity-audacity-Audacity-3.7.4_GH0.tar.gz) = 64004401
+TIMESTAMP = 1754512004
+SHA256 (audacity-manual-3.7.5.tar.gz) = 5e1632dbd649418c25b3d52ae92c5e72395fd8276e209261c5f4981ab1168476
+SIZE (audacity-manual-3.7.5.tar.gz) = 26572320
+SHA256 (audacity-audacity-Audacity-3.7.5_GH0.tar.gz) = 2520d9ff2e8f7d69d62e033b167eb6c53d1db89e89876689545769a2f8ef72ac
+SIZE (audacity-audacity-Audacity-3.7.5_GH0.tar.gz) = 64123656
diff --git a/audio/audacity/files/patch-src_CMakeLists.txt b/audio/audacity/files/patch-src_CMakeLists.txt
new file mode 100644
index 000000000000..b154ab0c0c55
--- /dev/null
+++ b/audio/audacity/files/patch-src_CMakeLists.txt
@@ -0,0 +1,18 @@
+--- src/CMakeLists.txt.orig	2025-08-04 16:27:57 UTC
++++ src/CMakeLists.txt
+@@ -13,7 +13,15 @@ add_executable( ${TARGET} )
+ set( CMAKE_ENABLE_EXPORTS ON )
+ 
+ add_executable( ${TARGET} )
++# Handle locale option
++cmd_option(
++   ${_OPT}locale
++   "Native Language Support [on, off]"
++   ON
++)
++if( ${_OPT}locale )
+ add_dependencies( ${TARGET} locale )
++endif()
+ add_dependencies( ${TARGET} nyquist )
+ add_dependencies( ${TARGET} plug-ins )
+