pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Import audio/audacity
Module Name: pkgsrc-wip
Committed By: kikadf <kikadf.01%gmail.com@localhost>
Pushed By: kikadf
Date: Mon Sep 1 16:21:15 2025 +0200
Changeset: 79f19f1cce9a7cbc953e4cd906fd64f34f8c5f72
Modified Files:
Makefile
Added Files:
audacity/DESCR
audacity/Makefile
audacity/PLIST
audacity/distinfo
audacity/patches/patch-Makefile.in
audacity/patches/patch-aa
audacity/patches/patch-configure
audacity/patches/patch-configure.ac
audacity/patches/patch-include_audacity_Types.h
audacity/patches/patch-lib-src_FileDialog_Makefile.am
audacity/patches/patch-lib-src_FileDialog_Makefile.in
audacity/patches/patch-lib-src_lib-widget-extra_Makefile.am
audacity/patches/patch-lib-src_libnyquist_nyquist_cmupv_src_cmupv.c
audacity/patches/patch-lib-src_libnyquist_nyquist_nyqsrc_sndread.c
audacity/patches/patch-lib-src_libnyquist_nyquist_sys_unix_switches.h
audacity/patches/patch-lib-src_libnyquist_nyquist_xlisp_xlisp.h
audacity/patches/patch-lib-src_portmixer_src-extra_Makefile.am
audacity/patches/patch-lib-src_sbsms_src-extra_Makefile.am
audacity/patches/patch-src_AudioIO.cpp
audacity/patches/patch-src_audacity.desktop.in
audacity/patches/patch-src_effects_NoiseRemoval.cpp
audacity/patches/patch-src_menus_ViewMenus.cpp
Log Message:
Import audio/audacity
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=79f19f1cce9a7cbc953e4cd906fd64f34f8c5f72
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
Makefile | 1 +
audacity/DESCR | 5 +
audacity/Makefile | 122 +++++++++
audacity/PLIST | 143 +++++++++++
audacity/distinfo | 23 ++
audacity/patches/patch-Makefile.in | 24 ++
audacity/patches/patch-aa | 15 ++
audacity/patches/patch-configure | 17 ++
audacity/patches/patch-configure.ac | 21 ++
audacity/patches/patch-include_audacity_Types.h | 15 ++
.../patches/patch-lib-src_FileDialog_Makefile.am | 15 ++
.../patches/patch-lib-src_FileDialog_Makefile.in | 284 +++++++++++++++++++++
.../patch-lib-src_lib-widget-extra_Makefile.am | 15 ++
...ch-lib-src_libnyquist_nyquist_cmupv_src_cmupv.c | 15 ++
...tch-lib-src_libnyquist_nyquist_nyqsrc_sndread.c | 15 ++
...-lib-src_libnyquist_nyquist_sys_unix_switches.h | 39 +++
.../patch-lib-src_libnyquist_nyquist_xlisp_xlisp.h | 34 +++
.../patch-lib-src_portmixer_src-extra_Makefile.am | 12 +
.../patch-lib-src_sbsms_src-extra_Makefile.am | 15 ++
audacity/patches/patch-src_AudioIO.cpp | 18 ++
audacity/patches/patch-src_audacity.desktop.in | 16 ++
.../patches/patch-src_effects_NoiseRemoval.cpp | 17 ++
audacity/patches/patch-src_menus_ViewMenus.cpp | 31 +++
23 files changed, 912 insertions(+)
diffs:
diff --git a/Makefile b/Makefile
index 1f7ba062bc..7316d87f6e 100644
--- a/Makefile
+++ b/Makefile
@@ -248,6 +248,7 @@ SUBDIR+= atac-seq
SUBDIR+= atanks
SUBDIR+= atlas
SUBDIR+= atompaw
+SUBDIR+= audacity
SUBDIR+= audacity-cmake
SUBDIR+= audiere
SUBDIR+= audio-mml
diff --git a/audacity/DESCR b/audacity/DESCR
new file mode 100644
index 0000000000..b54ae64812
--- /dev/null
+++ b/audacity/DESCR
@@ -0,0 +1,5 @@
+Audacity is a program that manipulates digital audio waveforms. It supports all
+common editing operations such as Cut, Copy, and Paste, plus it will mix tracks
+and apply plug-in effects to any part of a sound. It also has a built-in
+amplitude envelope editor, a customizable spectrogram mode and a frequency
+analysis window for audio analysis applications.
diff --git a/audacity/Makefile b/audacity/Makefile
new file mode 100644
index 0000000000..1b38ab97b6
--- /dev/null
+++ b/audacity/Makefile
@@ -0,0 +1,122 @@
+# $NetBSD: Makefile,v 1.165 2025/08/30 22:44:33 wiz Exp $
+
+# NOTES ON UPDATING
+# - Upstream is insisting that packages use their internal modified
+# versions of libraries like wxWidgets. This goes against policy
+# of not using vendored libraries.
+# - Upstream is introducing telemetry.
+# This should be disabled by default, Audacity is offline software.
+# - Please test usage on NetBSD.
+DISTNAME= audacity-2.4.1
+PKGREVISION= 27
+CATEGORIES= audio
+MASTER_SITES= ${MASTER_SITE_GITHUB:=audacity/}
+GITHUB_PROJECT= Audacity
+GITHUB_TAG= Audacity-${PKGVERSION_NOREV}
+
+MAINTAINER= nia%NetBSD.org@localhost
+HOMEPAGE= https://www.audacityteam.org/
+COMMENT= Multi-track audio editor and recorder
+LICENSE= gnu-gpl-v2 # AND cc-by-v3.0-license
+
+WRKSRC= ${WRKDIR}/audacity-${GITHUB_PROJECT}-${PKGVERSION_NOREV}
+
+GNU_CONFIGURE= yes
+USE_LIBTOOL= yes
+
+USE_TOOLS+= automake autoreconf bash
+USE_TOOLS+= gmake intltool msgfmt msgmerge pkg-config
+USE_TOOLS+= xgettext zip:run
+
+USE_LANGUAGES= c c++
+
+# configure: error: Audacity requires at least GCC 4.9
+GCC_REQD+= 4.9
+
+WRAPPER_SHELL= ${BASH}
+CONFIG_SHELL= ${BASH}
+
+CONFIGURE_ARGS+= --enable-ladspa
+
+CONFIGURE_ARGS+= --with-libmad="no"
+CONFIGURE_ARGS+= --with-expat="system"
+CONFIGURE_ARGS+= --with-libsndfile="system"
+CONFIGURE_ARGS+= --with-libsoxr="system"
+CONFIGURE_ARGS+= --with-portaudio="system"
+CONFIGURE_ARGS+= --with-sbsms="local" # system version doesn't work
+CONFIGURE_ARGS+= --with-midi="no"
+CONFIGURE_ARGS+= --with-portmidi="no"
+CONFIGURE_ARGS+= --with-ffmpeg="system"
+CONFIGURE_ARGS+= --with-lame="system"
+CONFIGURE_ARGS+= --with-libflac="system"
+CONFIGURE_ARGS+= --with-libid3tag="system"
+CONFIGURE_ARGS+= --with-libtwolame="system"
+CONFIGURE_ARGS+= --with-libvamp="system"
+CONFIGURE_ARGS+= --with-libvorbis="system"
+CONFIGURE_ARGS+= --with-lv2="system"
+CONFIGURE_ARGS+= --with-soundtouch="system"
+
+.include "../../mk/bsd.prefs.mk"
+
+.if ${MACHINE_ARCH} != "i386" && ${MACHINE_ARCH} != "x86_64"
+CONFIGURE_ARGS+= --disable-sse
+.endif
+
+CFLAGS.SunOS+= -fPIC
+
+LIBS.NetBSD+= -lcompat
+
+CONFIG_GUESS_OVERRIDE= \
+ config.guess */config.guess */*/config.guess */*/*/config.guess
+CONFIG_SUB_OVERRIDE= \
+ config.sub */config.sub */*/config.sub */*/*/config.sub
+
+PTHREAD_AUTO_VARS= yes
+
+INSTALLATION_DIRS+= lib
+INSTALLATION_DIRS+= share/audacity/plug-ins
+
+# regen Makefile.in to avoid being built as shared libraries
+pre-configure:
+ cd ${WRKSRC}/lib-src/portmixer && ${PKGSRC_SETENV} autoreconf -fiv
+ cd ${WRKSRC}/lib-src/lib-widget-extra && autoreconf -fiv
+
+post-install:
+ ${INSTALL_LIB} ${WRKSRC}/lib-src/FileDialog/.libs/libFileDialog.so.0.0.0 \
+ ${DESTDIR}${PREFIX}/lib/libFileDialog.so.0
+ # Install missing plugins.
+ ${INSTALL_DATA} ${WRKSRC}/plug-ins/*.ny \
+ ${DESTDIR}${PREFIX}/share/audacity/plug-ins
+ ${INSTALL_DATA} ${WRKSRC}/nyquist/*.lsp \
+ ${DESTDIR}${PREFIX}/share/audacity/nyquist
+
+.include "../../sysutils/desktop-file-utils/desktopdb.mk"
+.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
+.include "../../audio/lilv/buildlink3.mk"
+.include "../../audio/lv2/buildlink3.mk"
+.include "../../audio/soundtouch/buildlink3.mk"
+BUILDLINK_API_DEPENDS.twolame+= twolame>=0.3.9
+.include "../../audio/twolame/buildlink3.mk"
+.include "../../audio/ladspa/buildlink3.mk"
+.include "../../audio/lame/buildlink3.mk"
+.include "../../audio/libid3tag/buildlink3.mk"
+.include "../../audio/libsoxr/buildlink3.mk"
+.include "../../audio/libsndfile/buildlink3.mk"
+.include "../../audio/libvorbis/buildlink3.mk"
+BUILDLINK_API_DEPENDS.portaudio+= portaudio>=190600.20161030nb2
+.include "../../audio/portaudio/buildlink3.mk"
+.include "../../audio/suil/buildlink3.mk"
+.include "../../audio/vamp-plugin-sdk/buildlink3.mk"
+.include "../../devel/gettext-lib/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+BUILDLINK_API_DEPENDS.flac+= flac>=1.3.0
+.include "../../audio/flac/buildlink3.mk"
+.include "../../multimedia/ffmpeg4/buildlink3.mk"
+.include "../../multimedia/libogg/buildlink3.mk"
+.include "../../textproc/expat/buildlink3.mk"
+.include "../../x11/wxGTK30/buildlink3.mk"
+.include "../../mk/dlopen.buildlink3.mk"
+BUILDLINK_TRANSFORM+= opt:-ldl:${BUILDLINK_LDADD.dl:Q}
+.include "../../mk/pthread.buildlink3.mk"
+.include "../../mk/atomic64.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/audacity/PLIST b/audacity/PLIST
new file mode 100644
index 0000000000..0c8e882491
--- /dev/null
+++ b/audacity/PLIST
@@ -0,0 +1,143 @@
+@comment $NetBSD: PLIST,v 1.19 2021/11/08 23:30:39 nia Exp $
+bin/audacity
+lib/libFileDialog.so.0
+man/man1/audacity.1
+share/appdata/audacity.appdata.xml
+share/applications/audacity.desktop
+share/audacity/EQDefaultCurves.xml
+share/audacity/include/audacity/ComponentInterface.h
+share/audacity/include/audacity/ConfigInterface.h
+share/audacity/include/audacity/EffectAutomationParameters.h
+share/audacity/include/audacity/EffectInterface.h
+share/audacity/include/audacity/ImporterInterface.h
+share/audacity/include/audacity/ModuleInterface.h
+share/audacity/include/audacity/PluginInterface.h
+share/audacity/include/audacity/Types.h
+share/audacity/nyquist/aud-do-support.lsp
+share/audacity/nyquist/dspprims.lsp
+share/audacity/nyquist/envelopes.lsp
+share/audacity/nyquist/equalizer.lsp
+share/audacity/nyquist/evalenv.lsp
+share/audacity/nyquist/fileio.lsp
+share/audacity/nyquist/init.lsp
+share/audacity/nyquist/misc.lsp
+share/audacity/nyquist/nyinit-dbg.lsp
+share/audacity/nyquist/nyinit.lsp
+share/audacity/nyquist/nyqmisc.lsp
+share/audacity/nyquist/nyquist-plot.txt
+share/audacity/nyquist/nyquist.lsp
+share/audacity/nyquist/printrec.lsp
+share/audacity/nyquist/profile.lsp
+share/audacity/nyquist/sal-parse.lsp
+share/audacity/nyquist/sal.lsp
+share/audacity/nyquist/seq.lsp
+share/audacity/nyquist/seqfnint.lsp
+share/audacity/nyquist/seqmidi.lsp
+share/audacity/nyquist/sliders.lsp
+share/audacity/nyquist/sndfnint.lsp
+share/audacity/nyquist/spec-plot.lsp
+share/audacity/nyquist/spectral-analysis.lsp
+share/audacity/nyquist/stk.lsp
+share/audacity/nyquist/system.lsp
+share/audacity/nyquist/test.lsp
+share/audacity/nyquist/velocity.lsp
+share/audacity/nyquist/xlinit.lsp
+share/audacity/nyquist/xm.lsp
+share/audacity/plug-ins/SilenceMarker.ny
+share/audacity/plug-ins/SoundFinder.ny
+share/audacity/plug-ins/SpectralEditMulti.ny
+share/audacity/plug-ins/SpectralEditParametricEQ.ny
+share/audacity/plug-ins/SpectralEditShelves.ny
+share/audacity/plug-ins/StudioFadeOut.ny
+share/audacity/plug-ins/adjustable-fade.ny
+share/audacity/plug-ins/beat.ny
+share/audacity/plug-ins/clipfix.ny
+share/audacity/plug-ins/crossfadeclips.ny
+share/audacity/plug-ins/crossfadetracks.ny
+share/audacity/plug-ins/delay.ny
+share/audacity/plug-ins/eq-xml-to-txt-converter.ny
+share/audacity/plug-ins/equalabel.ny
+share/audacity/plug-ins/highpass.ny
+share/audacity/plug-ins/limiter.ny
+share/audacity/plug-ins/lowpass.ny
+share/audacity/plug-ins/noisegate.ny
+share/audacity/plug-ins/notch.ny
+share/audacity/plug-ins/nyquist-plug-in-installer.ny
+share/audacity/plug-ins/pluck.ny
+share/audacity/plug-ins/rhythmtrack.ny
+share/audacity/plug-ins/rissetdrum.ny
+share/audacity/plug-ins/rms.ny
+share/audacity/plug-ins/sample-data-export.ny
+share/audacity/plug-ins/sample-data-import.ny
+share/audacity/plug-ins/spectral-delete.ny
+share/audacity/plug-ins/tremolo.ny
+share/audacity/plug-ins/vocalrediso.ny
+share/audacity/plug-ins/vocoder.ny
+share/doc/audacity/LICENSE.txt
+share/doc/audacity/README.txt
+share/icons/hicolor/16x16/apps/audacity.png
+share/icons/hicolor/22x22/apps/audacity.png
+share/icons/hicolor/24x24/apps/audacity.png
+share/icons/hicolor/32x32/apps/audacity.png
+share/icons/hicolor/48x48/apps/audacity.png
+share/icons/hicolor/scalable/apps/audacity.svg
+share/locale/af/LC_MESSAGES/audacity.mo
+share/locale/ar/LC_MESSAGES/audacity.mo
+share/locale/be/LC_MESSAGES/audacity.mo
+share/locale/bg/LC_MESSAGES/audacity.mo
+share/locale/bn/LC_MESSAGES/audacity.mo
+share/locale/bs/LC_MESSAGES/audacity.mo
+share/locale/ca/LC_MESSAGES/audacity.mo
+share/locale/ca_ES@valencia/LC_MESSAGES/audacity.mo
+share/locale/cs/LC_MESSAGES/audacity.mo
+share/locale/cy/LC_MESSAGES/audacity.mo
+share/locale/da/LC_MESSAGES/audacity.mo
+share/locale/de/LC_MESSAGES/audacity.mo
+share/locale/el/LC_MESSAGES/audacity.mo
+share/locale/es/LC_MESSAGES/audacity.mo
+share/locale/eu/LC_MESSAGES/audacity.mo
+share/locale/eu_ES/LC_MESSAGES/audacity.mo
+share/locale/fa/LC_MESSAGES/audacity.mo
+share/locale/fi/LC_MESSAGES/audacity.mo
+share/locale/fr/LC_MESSAGES/audacity.mo
+share/locale/ga/LC_MESSAGES/audacity.mo
+share/locale/gl/LC_MESSAGES/audacity.mo
+share/locale/he/LC_MESSAGES/audacity.mo
+share/locale/hi/LC_MESSAGES/audacity.mo
+share/locale/hr/LC_MESSAGES/audacity.mo
+share/locale/hu/LC_MESSAGES/audacity.mo
+share/locale/hy/LC_MESSAGES/audacity.mo
+share/locale/id/LC_MESSAGES/audacity.mo
+share/locale/it/LC_MESSAGES/audacity.mo
+share/locale/ja/LC_MESSAGES/audacity.mo
+share/locale/ka/LC_MESSAGES/audacity.mo
+share/locale/km/LC_MESSAGES/audacity.mo
+share/locale/ko/LC_MESSAGES/audacity.mo
+share/locale/lt/LC_MESSAGES/audacity.mo
+share/locale/mk/LC_MESSAGES/audacity.mo
+share/locale/my/LC_MESSAGES/audacity.mo
+share/locale/nb/LC_MESSAGES/audacity.mo
+share/locale/nl/LC_MESSAGES/audacity.mo
+share/locale/oc/LC_MESSAGES/audacity.mo
+share/locale/pl/LC_MESSAGES/audacity.mo
+share/locale/pt_BR/LC_MESSAGES/audacity.mo
+share/locale/pt_PT/LC_MESSAGES/audacity.mo
+share/locale/ro/LC_MESSAGES/audacity.mo
+share/locale/ru/LC_MESSAGES/audacity.mo
+share/locale/sk/LC_MESSAGES/audacity.mo
+share/locale/sl/LC_MESSAGES/audacity.mo
+share/locale/sr_RS/LC_MESSAGES/audacity.mo
+share/locale/sr_RS@latin/LC_MESSAGES/audacity.mo
+share/locale/sv/LC_MESSAGES/audacity.mo
+share/locale/ta/LC_MESSAGES/audacity.mo
+share/locale/tg/LC_MESSAGES/audacity.mo
+share/locale/tr/LC_MESSAGES/audacity.mo
+share/locale/uk/LC_MESSAGES/audacity.mo
+share/locale/vi/LC_MESSAGES/audacity.mo
+share/locale/zh_CN/LC_MESSAGES/audacity.mo
+share/locale/zh_TW/LC_MESSAGES/audacity.mo
+share/mime/packages/audacity.xml
+share/pixmaps/audacity.xpm
+share/pixmaps/audacity16.xpm
+share/pixmaps/audacity32.xpm
+share/pixmaps/gnome-mime-application-x-audacity-project.xpm
diff --git a/audacity/distinfo b/audacity/distinfo
new file mode 100644
index 0000000000..a31e9ae48d
--- /dev/null
+++ b/audacity/distinfo
@@ -0,0 +1,23 @@
+$NetBSD: distinfo,v 1.48 2025/03/30 15:39:27 wiz Exp $
+
+BLAKE2s (audacity-2.4.1.tar.gz) = 53a42d20bfea5dfecfe0f40f7c668036c1057a4dddaea5541802ccd76aa75e99
+SHA512 (audacity-2.4.1.tar.gz) = 2f0a3f7e24dce91ae520e285dbb05778b68e0fe37b8ded55ac568b5f8135069951b3986764adc5d0791c165b283a3c19596f1d6f51ba17028e0eb04558c63f25
+Size (audacity-2.4.1.tar.gz) = 63935461 bytes
+SHA1 (patch-Makefile.in) = 2aca8c2ae0af7863f8f090a707c08fba693c7c86
+SHA1 (patch-aa) = 67c0ec5ff99004d9035de13f0263add46ed8c994
+SHA1 (patch-configure) = 2cf208a6104c73c761156e2373d21af64606c31e
+SHA1 (patch-configure.ac) = b34f733208080d57b30877d762e61a3d3fdec888
+SHA1 (patch-include_audacity_Types.h) = 369ce152d4ecc8fd67fcb45fe4adf3260119571b
+SHA1 (patch-lib-src_FileDialog_Makefile.am) = cc78f4d26210b536b4e1d88ab668295625aac73b
+SHA1 (patch-lib-src_FileDialog_Makefile.in) = 44ca2539d68ab3951ae44377ed56f574785c1b08
+SHA1 (patch-lib-src_lib-widget-extra_Makefile.am) = 03d080c141259fbf02a9c5a70ce06625fcebf75e
+SHA1 (patch-lib-src_libnyquist_nyquist_cmupv_src_cmupv.c) = 3d6cb845d82b1bcbe31dabd4bad30cb1f7ea27d5
+SHA1 (patch-lib-src_libnyquist_nyquist_nyqsrc_sndread.c) = dbc0b5b88043c7b2895742e78e6a5990f65012ef
+SHA1 (patch-lib-src_libnyquist_nyquist_sys_unix_switches.h) = 9401ac521d5a2aa8600a465b9133dff7e7b2ea35
+SHA1 (patch-lib-src_libnyquist_nyquist_xlisp_xlisp.h) = a79f2f58f32f96fc67bc2420bef6c812d37c96f0
+SHA1 (patch-lib-src_portmixer_src-extra_Makefile.am) = 9a0d5be37753683a2cade42673edb3d08e01ab4d
+SHA1 (patch-lib-src_sbsms_src-extra_Makefile.am) = 2beca18a286de1b26f4f96976fb58e1665d0531c
+SHA1 (patch-src_AudioIO.cpp) = 1b44c68c4233b24a5fa4e17515eb237fee0e283a
+SHA1 (patch-src_audacity.desktop.in) = 66e43b6cba4d0245210fb6e9b7345abef1828e89
+SHA1 (patch-src_effects_NoiseRemoval.cpp) = 6d72545cde66ac90d4eb3821a3a3f384ccbf46f2
+SHA1 (patch-src_menus_ViewMenus.cpp) = df9a785ac572520f04cd16f5d6b023b8f253f24a
diff --git a/audacity/patches/patch-Makefile.in b/audacity/patches/patch-Makefile.in
new file mode 100644
index 0000000000..90f5bff4c5
--- /dev/null
+++ b/audacity/patches/patch-Makefile.in
@@ -0,0 +1,24 @@
+$NetBSD: patch-Makefile.in,v 1.2 2019/02/10 17:14:42 nia Exp $
+
+Fix installation of binaries.
+
+--- Makefile.in.orig 2018-02-14 07:11:20.000000000 +0000
++++ Makefile.in
+@@ -1160,7 +1160,7 @@ install-dvi: install-dvi-recursive
+
+ install-dvi-am:
+
+-install-exec-am: install-binPROGRAMS
++install-exec-am:
+
+ install-html: install-html-recursive
+
+@@ -1215,7 +1215,7 @@ uninstall-am: uninstall-binPROGRAMS unin
+ distclean-compile distclean-generic distclean-libtool \
+ distclean-tags distcleancheck distdir distuninstallcheck dvi \
+ dvi-am html html-am info info-am install install-am \
+- install-binPROGRAMS install-data install-data-am \
++ install-data install-data-am \
+ install-dist_docDATA install-dist_pkgdataDATA install-dvi \
+ install-dvi-am install-exec install-exec-am install-html \
+ install-html-am install-info install-info-am install-man \
diff --git a/audacity/patches/patch-aa b/audacity/patches/patch-aa
new file mode 100644
index 0000000000..31e34678bc
--- /dev/null
+++ b/audacity/patches/patch-aa
@@ -0,0 +1,15 @@
+$NetBSD: patch-aa,v 1.5 2015/04/20 13:38:23 rodent Exp $
+
+Undefine NEED_ULONG.
+
+--- lib-src/libnyquist/nyquist/cmt/cext.h.orig 2015-03-02 01:07:22.000000000 +0000
++++ lib-src/libnyquist/nyquist/cmt/cext.h
+@@ -52,6 +52,8 @@ EXIT(n) -- calls exit(n) after shutting
+
+ #if HAS_SYS_TYPES_H
+ #include <sys/types.h>
++#define ulong u_long
++#undef NEED_ULONG
+ #endif
+
+ #if HAS_MALLOC_H
diff --git a/audacity/patches/patch-configure b/audacity/patches/patch-configure
new file mode 100644
index 0000000000..d636276d1a
--- /dev/null
+++ b/audacity/patches/patch-configure
@@ -0,0 +1,17 @@
+$NetBSD: patch-configure,v 1.1 2019/12/18 12:36:51 joerg Exp $
+
+Don't force -latomic for clang.
+
+--- configure.orig 2019-12-13 12:16:52.853439357 +0000
++++ configure
+@@ -19205,10 +19205,6 @@ if test x$enable_universal_binary = xyes
+ esac
+ fi
+
+-if ($CXX --version | grep 'clang version' > /dev/null); then
+- LDFLAGS="${LDFLAGS} -latomic"
+-fi
+-
+ if test x$enable_sse = xyes; then
+
+ if test "${ax_cv_cxx_compiler_vendor}" = "gnu"; then
diff --git a/audacity/patches/patch-configure.ac b/audacity/patches/patch-configure.ac
new file mode 100644
index 0000000000..b231a68ab5
--- /dev/null
+++ b/audacity/patches/patch-configure.ac
@@ -0,0 +1,21 @@
+$NetBSD: patch-configure.ac,v 1.1 2019/12/18 12:36:51 joerg Exp $
+
+Don't force -latomic for clang.
+
+--- configure.ac.orig 2019-12-13 12:16:28.334317787 +0000
++++ configure.ac
+@@ -200,14 +200,6 @@ if test x$enable_universal_binary = xyes
+ esac
+ fi
+
+-dnl Check if $CXX is clang by evaluating the version string because
+-dnl $ax_cv_cxx_compiler_vendor seems not to work (it is either "gnu" or just empty).
+-dnl If $CXX is clang (string is found), grep returns 0 and the if is executed.
+-dnl Use /dev/null to suppress grep output to shell.
+-if ($CXX --version | grep 'clang version' > /dev/null); then
+- LDFLAGS="${LDFLAGS} -latomic"
+-fi
+-
+ if test x$enable_sse = xyes; then
+
+ if test "${ax_cv_cxx_compiler_vendor}" = "gnu"; then
diff --git a/audacity/patches/patch-include_audacity_Types.h b/audacity/patches/patch-include_audacity_Types.h
new file mode 100644
index 0000000000..9f75410d44
--- /dev/null
+++ b/audacity/patches/patch-include_audacity_Types.h
@@ -0,0 +1,15 @@
+$NetBSD: patch-include_audacity_Types.h,v 1.1 2021/02/06 23:21:13 dbj Exp $
+
+this include file references HAVE_VISIBILITY when it might not be defined
+pull in Audacity.h which includes the appropriate config*.h file that sets it
+
+--- include/audacity/Types.h.orig 2020-05-19 09:43:53.000000000 +0000
++++ include/audacity/Types.h
+@@ -42,6 +42,7 @@
+ #ifndef __AUDACITY_TYPES_H__
+ #define __AUDACITY_TYPES_H__
+
++#include "Audacity.h" // for HAVE_VISIBILITY
+ #include <algorithm>
+ #include <functional>
+ #include <type_traits>
diff --git a/audacity/patches/patch-lib-src_FileDialog_Makefile.am b/audacity/patches/patch-lib-src_FileDialog_Makefile.am
new file mode 100644
index 0000000000..46468aad2b
--- /dev/null
+++ b/audacity/patches/patch-lib-src_FileDialog_Makefile.am
@@ -0,0 +1,15 @@
+$NetBSD: patch-lib-src_FileDialog_Makefile.am,v 1.4 2021/09/11 08:53:19 nia Exp $
+
+don't build a shared library of this.
+
+--- lib-src/FileDialog/Makefile.am.orig 2020-05-19 09:43:53.000000000 +0000
++++ lib-src/FileDialog/Makefile.am
+@@ -1,7 +1,7 @@
+ AM_LIBTOOLFLAGS = --tag CC
+ ACLOCAL_AMFLAGS = -I m4
+
+-lib_LTLIBRARIES = libFileDialog.la
++noinst_LTLIBRARIES = libFileDialog.la
+
+ libFileDialog_la_LIBTOOLFLAGS = --tag=CXX
+ libFileDialog_la_CPPFLAGS = $(WX_CXXFLAGS) -Wno-deprecated-declarations
diff --git a/audacity/patches/patch-lib-src_FileDialog_Makefile.in b/audacity/patches/patch-lib-src_FileDialog_Makefile.in
new file mode 100644
index 0000000000..07c7f9efb6
--- /dev/null
+++ b/audacity/patches/patch-lib-src_FileDialog_Makefile.in
@@ -0,0 +1,284 @@
+$NetBSD: patch-lib-src_FileDialog_Makefile.in,v 1.3 2019/06/04 23:09:51 nia Exp $
+
+* Do not build shared library
+* Fix libtool tag issue
+
+--- lib-src/FileDialog/Makefile.in.orig 2019-05-04 10:38:57.000000000 +0000
++++ lib-src/FileDialog/Makefile.in
+@@ -1,7 +1,7 @@
+-# Makefile.in generated by automake 1.14.1 from Makefile.am.
++# Makefile.in generated by automake 1.15 from Makefile.am.
+ # @configure_input@
+
+-# Copyright (C) 1994-2013 Free Software Foundation, Inc.
++# Copyright (C) 1994-2014 Free Software Foundation, Inc.
+
+ # This Makefile.in is free software; the Free Software Foundation
+ # gives unlimited permission to copy and/or distribute it,
+@@ -15,7 +15,17 @@
+ @SET_MAKE@
+
+ VPATH = @srcdir@
+-am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
++am__is_gnu_make = { \
++ if test -z '$(MAKELEVEL)'; then \
++ false; \
++ elif test -n '$(MAKE_HOST)'; then \
++ true; \
++ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
++ true; \
++ else \
++ false; \
++ fi; \
++}
+ am__make_running_with_option = \
+ case $${target_option-} in \
+ ?) ;; \
+@@ -94,18 +104,6 @@ host_triplet = @host@
+ @WINDOWS_TRUE@ $(NULL)
+
+ subdir = .
+-DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
+- $(top_srcdir)/configure $(am__configure_deps) \
+- $(top_srcdir)/autotools/depcomp autotools/ar-lib \
+- autotools/compile autotools/config.guess autotools/config.sub \
+- autotools/depcomp autotools/install-sh autotools/missing \
+- autotools/ltmain.sh $(top_srcdir)/autotools/ar-lib \
+- $(top_srcdir)/autotools/compile \
+- $(top_srcdir)/autotools/config.guess \
+- $(top_srcdir)/autotools/config.sub \
+- $(top_srcdir)/autotools/install-sh \
+- $(top_srcdir)/autotools/ltmain.sh \
+- $(top_srcdir)/autotools/missing
+ ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+ am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
+ $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
+@@ -113,40 +111,14 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/l
+ $(top_srcdir)/configure.ac
+ am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+ $(ACLOCAL_M4)
++DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \
++ $(am__configure_deps) $(am__DIST_COMMON)
+ am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
+ configure.lineno config.status.lineno
+ mkinstalldirs = $(install_sh) -d
+ CONFIG_CLEAN_FILES =
+ CONFIG_CLEAN_VPATH_FILES =
+-am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
+-am__vpath_adj = case $$p in \
+- $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
+- *) f=$$p;; \
+- esac;
+-am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
+-am__install_max = 40
+-am__nobase_strip_setup = \
+- srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
+-am__nobase_strip = \
+- for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
+-am__nobase_list = $(am__nobase_strip_setup); \
+- for p in $$list; do echo "$$p $$p"; done | \
+- sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
+- $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
+- if (++n[$$2] == $(am__install_max)) \
+- { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
+- END { for (dir in files) print dir, files[dir] }'
+-am__base_list = \
+- sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
+- sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
+-am__uninstall_files_from_dir = { \
+- test -z "$$files" \
+- || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
+- || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
+- $(am__cd) "$$dir" && rm -f $$files; }; \
+- }
+-am__installdirs = "$(DESTDIR)$(libdir)"
+-LTLIBRARIES = $(lib_LTLIBRARIES)
++LTLIBRARIES = $(noinst_LTLIBRARIES)
+ am__DEPENDENCIES_1 =
+ @GTK_TRUE@am__DEPENDENCIES_2 = $(am__DEPENDENCIES_1)
+ libFileDialog_la_DEPENDENCIES = $(am__DEPENDENCIES_1) \
+@@ -269,6 +241,17 @@ ETAGS = etags
+ CTAGS = ctags
+ CSCOPE = cscope
+ AM_RECURSIVE_TARGETS = cscope
++am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/autotools/ar-lib \
++ $(top_srcdir)/autotools/compile \
++ $(top_srcdir)/autotools/config.guess \
++ $(top_srcdir)/autotools/config.sub \
++ $(top_srcdir)/autotools/depcomp \
++ $(top_srcdir)/autotools/install-sh \
++ $(top_srcdir)/autotools/ltmain.sh \
++ $(top_srcdir)/autotools/missing autotools/ar-lib \
++ autotools/compile autotools/config.guess autotools/config.sub \
++ autotools/depcomp autotools/install-sh autotools/ltmain.sh \
++ autotools/missing
+ DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ distdir = $(PACKAGE)-$(VERSION)
+ top_distdir = $(distdir)
+@@ -420,7 +403,7 @@ top_build_prefix = @top_build_prefix@
+ top_builddir = @top_builddir@
+ top_srcdir = @top_srcdir@
+ ACLOCAL_AMFLAGS = -I m4
+-lib_LTLIBRARIES = libFileDialog.la
++noinst_LTLIBRARIES = libFileDialog.la
+ libFileDialog_la_LIBTOOLFLAGS = --tag=CXX
+ libFileDialog_la_CPPFLAGS = $(WX_CXXFLAGS) \
+ -Wno-deprecated-declarations $(am__append_1)
+@@ -446,7 +429,6 @@ $(srcdir)/Makefile.in: @MAINTAINER_MODE_
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
+ $(am__cd) $(top_srcdir) && \
+ $(AUTOMAKE) --foreign Makefile
+-.PRECIOUS: Makefile
+ Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+ @case '$?' in \
+ *config.status*) \
+@@ -466,33 +448,9 @@ $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(
+ $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
+ $(am__aclocal_m4_deps):
+
+-install-libLTLIBRARIES: $(lib_LTLIBRARIES)
+- @$(NORMAL_INSTALL)
+- @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
+- list2=; for p in $$list; do \
+- if test -f $$p; then \
+- list2="$$list2 $$p"; \
+- else :; fi; \
+- done; \
+- test -z "$$list2" || { \
+- echo " $(MKDIR_P) '$(DESTDIR)$(libdir)'"; \
+- $(MKDIR_P) "$(DESTDIR)$(libdir)" || exit 1; \
+- echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \
+- $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \
+- }
+-
+-uninstall-libLTLIBRARIES:
+- @$(NORMAL_UNINSTALL)
+- @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
+- for p in $$list; do \
+- $(am__strip_dir) \
+- echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \
+- $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \
+- done
+-
+-clean-libLTLIBRARIES:
+- -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
+- @list='$(lib_LTLIBRARIES)'; \
++clean-noinstLTLIBRARIES:
++ -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
++ @list='$(noinst_LTLIBRARIES)'; \
+ locs=`for p in $$list; do echo $$p; done | \
+ sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \
+ sort -u`; \
+@@ -747,15 +705,15 @@ dist-xz: distdir
+ $(am__post_remove_distdir)
+
+ dist-tarZ: distdir
+- @echo WARNING: "Support for shar distribution archives is" \
+- "deprecated." >&2
++ @echo WARNING: "Support for distribution archives compressed with" \
++ "legacy program 'compress' is deprecated." >&2
+ @echo WARNING: "It will be removed altogether in Automake 2.0" >&2
+ tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
+ $(am__post_remove_distdir)
+
+ dist-shar: distdir
+- @echo WARNING: "Support for distribution archives compressed with" \
+- "legacy program 'compress' is deprecated." >&2
++ @echo WARNING: "Support for shar distribution archives is" \
++ "deprecated." >&2
+ @echo WARNING: "It will be removed altogether in Automake 2.0" >&2
+ shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
+ $(am__post_remove_distdir)
+@@ -791,17 +749,17 @@ distcheck: dist
+ esac
+ chmod -R a-w $(distdir)
+ chmod u+w $(distdir)
+- mkdir $(distdir)/_build $(distdir)/_inst
++ mkdir $(distdir)/_build $(distdir)/_build/sub $(distdir)/_inst
+ chmod a-w $(distdir)
+ test -d $(distdir)/_build || exit 0; \
+ dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
+ && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
+ && am__cwd=`pwd` \
+- && $(am__cd) $(distdir)/_build \
+- && ../configure \
++ && $(am__cd) $(distdir)/_build/sub \
++ && ../../configure \
+ $(AM_DISTCHECK_CONFIGURE_FLAGS) \
+ $(DISTCHECK_CONFIGURE_FLAGS) \
+- --srcdir=.. --prefix="$$dc_install_base" \
++ --srcdir=../.. --prefix="$$dc_install_base" \
+ && $(MAKE) $(AM_MAKEFLAGS) \
+ && $(MAKE) $(AM_MAKEFLAGS) dvi \
+ && $(MAKE) $(AM_MAKEFLAGS) check \
+@@ -858,9 +816,6 @@ check-am: all-am
+ check: check-am
+ all-am: Makefile $(LTLIBRARIES)
+ installdirs:
+- for dir in "$(DESTDIR)$(libdir)"; do \
+- test -z "$$dir" || $(MKDIR_P) "$$dir"; \
+- done
+ install: install-am
+ install-exec: install-exec-am
+ install-data: install-data-am
+@@ -899,7 +854,7 @@ maintainer-clean-generic:
+ @echo "it deletes files that may require special tools to rebuild."
+ clean: clean-am
+
+-clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \
++clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \
+ mostlyclean-am
+
+ distclean: distclean-am
+@@ -927,7 +882,7 @@ install-dvi: install-dvi-am
+
+ install-dvi-am:
+
+-install-exec-am: install-libLTLIBRARIES
++install-exec-am:
+
+ install-html: install-html-am
+
+@@ -969,26 +924,28 @@ ps: ps-am
+
+ ps-am:
+
+-uninstall-am: uninstall-libLTLIBRARIES
++uninstall-am:
+
+ .MAKE: install-am install-strip
+
+ .PHONY: CTAGS GTAGS TAGS all all-am am--refresh check check-am clean \
+- clean-cscope clean-generic clean-libLTLIBRARIES clean-libtool \
+- cscope cscopelist-am ctags ctags-am dist dist-all dist-bzip2 \
+- dist-gzip dist-lzip dist-shar dist-tarZ dist-xz dist-zip \
+- distcheck distclean distclean-compile distclean-generic \
+- distclean-libtool distclean-tags distcleancheck distdir \
+- distuninstallcheck dvi dvi-am html html-am info info-am \
+- install install-am install-data install-data-am install-dvi \
+- install-dvi-am install-exec install-exec-am install-html \
+- install-html-am install-info install-info-am \
+- install-libLTLIBRARIES install-man install-pdf install-pdf-am \
+- install-ps install-ps-am install-strip installcheck \
+- installcheck-am installdirs maintainer-clean \
++ clean-cscope clean-generic clean-libtool \
++ clean-noinstLTLIBRARIES cscope cscopelist-am ctags ctags-am \
++ dist dist-all dist-bzip2 dist-gzip dist-lzip dist-shar \
++ dist-tarZ dist-xz dist-zip distcheck distclean \
++ distclean-compile distclean-generic distclean-libtool \
++ distclean-tags distcleancheck distdir distuninstallcheck dvi \
++ dvi-am html html-am info info-am install install-am \
++ install-data install-data-am install-dvi install-dvi-am \
++ install-exec install-exec-am install-html install-html-am \
++ install-info install-info-am install-man install-pdf \
++ install-pdf-am install-ps install-ps-am install-strip \
++ installcheck installcheck-am installdirs maintainer-clean \
+ maintainer-clean-generic mostlyclean mostlyclean-compile \
+ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
+- tags tags-am uninstall uninstall-am uninstall-libLTLIBRARIES
++ tags tags-am uninstall uninstall-am
++
++.PRECIOUS: Makefile
+
+
+ # Tell versions [3.59,3.63) of GNU make to not export all variables.
diff --git a/audacity/patches/patch-lib-src_lib-widget-extra_Makefile.am b/audacity/patches/patch-lib-src_lib-widget-extra_Makefile.am
new file mode 100644
index 0000000000..7fcbb18135
--- /dev/null
+++ b/audacity/patches/patch-lib-src_lib-widget-extra_Makefile.am
@@ -0,0 +1,15 @@
+$NetBSD: patch-lib-src_lib-widget-extra_Makefile.am,v 1.2 2016/06/05 01:02:39 ryoon Exp $
+
+don't build a shared library of this.
+
+--- lib-src/lib-widget-extra/Makefile.am.orig 2016-01-13 14:31:17.000000000 +0000
++++ lib-src/lib-widget-extra/Makefile.am
+@@ -5,7 +5,7 @@ EXTRA_DIST = libwidgetextra.pc.in
+ pkgconfigdir = $(libdir)/pkgconfig
+ pkgconfig_DATA = libwidgetextra.pc
+
+-lib_LTLIBRARIES = libwidgetextra.la
++noinst_LTLIBRARIES = libwidgetextra.la
+
+ libwidgetextra_la_CPPFLAGS = $(WX_CXXFLAGS) -Wno-deprecated-declarations
+ libwidgetextra_la_LIBADD = $(WX_LIBS)
diff --git a/audacity/patches/patch-lib-src_libnyquist_nyquist_cmupv_src_cmupv.c b/audacity/patches/patch-lib-src_libnyquist_nyquist_cmupv_src_cmupv.c
new file mode 100644
index 0000000000..1fe4abbbe7
--- /dev/null
+++ b/audacity/patches/patch-lib-src_libnyquist_nyquist_cmupv_src_cmupv.c
@@ -0,0 +1,15 @@
+$NetBSD: patch-lib-src_libnyquist_nyquist_cmupv_src_cmupv.c,v 1.1 2020/05/23 15:51:28 nia Exp $
+
+Build on systems without log2l (NetBSD 9...)
+
+--- lib-src/libnyquist/nyquist/cmupv/src/cmupv.c.orig 2020-05-19 09:43:53.000000000 +0000
++++ lib-src/libnyquist/nyquist/cmupv/src/cmupv.c
+@@ -218,7 +218,7 @@ typedef struct {
+ //
+ int round_log_power(int fftsize, int *size_ptr)
+ {
+- long double log2_fft = log2l(fftsize);
++ long double log2_fft = log2(fftsize);
+ int round_log2_fft = (int) log2_fft;
+ if (round_log2_fft < log2_fft) {
+ round_log2_fft += 1;
diff --git a/audacity/patches/patch-lib-src_libnyquist_nyquist_nyqsrc_sndread.c b/audacity/patches/patch-lib-src_libnyquist_nyquist_nyqsrc_sndread.c
new file mode 100644
index 0000000000..3af6c083b8
--- /dev/null
+++ b/audacity/patches/patch-lib-src_libnyquist_nyquist_nyqsrc_sndread.c
@@ -0,0 +1,15 @@
+$NetBSD: patch-lib-src_libnyquist_nyquist_nyqsrc_sndread.c,v 1.2 2016/06/05 01:02:39 ryoon Exp $
+
+Fixes "error: invalid operands to binary" build failure.
+
+--- lib-src/libnyquist/nyquist/nyqsrc/sndread.c.orig 2016-01-13 14:31:18.000000000 +0000
++++ lib-src/libnyquist/nyquist/nyqsrc/sndread.c
+@@ -167,7 +167,7 @@ LVAL snd_make_read(
+ #ifdef XL_BIG_ENDIAN
+ long format = SF_ENDIAN_LITTLE;
+ #endif
+- susp->sf_info.format |= format;
++ susp->sf_info.format |= (int) format;
+ }
+
+ susp->sndfile = NULL;
diff --git a/audacity/patches/patch-lib-src_libnyquist_nyquist_sys_unix_switches.h b/audacity/patches/patch-lib-src_libnyquist_nyquist_sys_unix_switches.h
new file mode 100644
index 0000000000..cc6501c157
--- /dev/null
+++ b/audacity/patches/patch-lib-src_libnyquist_nyquist_sys_unix_switches.h
@@ -0,0 +1,39 @@
+$NetBSD: patch-lib-src_libnyquist_nyquist_sys_unix_switches.h,v 1.2 2025/03/30 15:39:27 wiz Exp $
+
+Define endianness for {Free,Open,Net}BSD.
+
+--- lib-src/libnyquist/nyquist/sys/unix/switches.h.orig 2015-03-02 01:07:23.000000000 +0000
++++ lib-src/libnyquist/nyquist/sys/unix/switches.h
+@@ -89,6 +89,32 @@
+ /* Target processor is big endian. */
+ #define CPU_IS_BIG_ENDIAN 1
+ #endif
++ #elif defined(__FreeBSD__) || defined(__NetBSD__)
++ #include <sys/endian.h>
++ #if _BYTE_ORDER == _LITTLE_ENDIAN
++ /* Target processor is little endian. */
++ #define CPU_IS_LITTLE_ENDIAN 1
++ /* Target processor is big endian. */
++ #define CPU_IS_BIG_ENDIAN 0
++ #else
++ /* Target processor is little endian. */
++ #define CPU_IS_LITTLE_ENDIAN 0
++ /* Target processor is big endian. */
++ #define CPU_IS_BIG_ENDIAN 1
++ #endif
++ #elif defined(__OpenBSD__)
++ #include <endian.h>
++ #if BYTE_ORDER == _LITTLE_ENDIAN
++ /* Target processor is little endian. */
++ #define CPU_IS_LITTLE_ENDIAN 1
++ /* Target processor is big endian. */
++ #define CPU_IS_BIG_ENDIAN 0
++ #else
++ /* Target processor is little endian. */
++ #define CPU_IS_LITTLE_ENDIAN 0
++ /* Target processor is big endian. */
++ #define CPU_IS_BIG_ENDIAN 1
++ #endif
+ #else /* default is little endian */
+ /* Target processor is little endian. */
+ #define CPU_IS_LITTLE_ENDIAN 1
diff --git a/audacity/patches/patch-lib-src_libnyquist_nyquist_xlisp_xlisp.h b/audacity/patches/patch-lib-src_libnyquist_nyquist_xlisp_xlisp.h
new file mode 100644
index 0000000000..bf847e8783
--- /dev/null
+++ b/audacity/patches/patch-lib-src_libnyquist_nyquist_xlisp_xlisp.h
@@ -0,0 +1,34 @@
+$NetBSD: patch-lib-src_libnyquist_nyquist_xlisp_xlisp.h,v 1.3 2025/03/30 15:39:27 wiz Exp $
+
+Define endianness for {Free,Open,Net}BSD.
+
+--- lib-src/libnyquist/nyquist/xlisp/xlisp.h.orig 2016-01-13 14:31:18.000000000 +0000
++++ lib-src/libnyquist/nyquist/xlisp/xlisp.h
+@@ -151,6 +151,27 @@ extern long ptrtoabs();
+ #else
+ #define XL_BIG_ENDIAN
+ #endif
++#elif defined(__FreeBSD__) || defined(__NetBSD__)
++ #include <sys/endian.h>
++ #if _BYTE_ORDER == _LITTLE_ENDIAN
++ #define XL_LITTLE_ENDIAN
++ #else
++ #define XL_BIG_ENDIAN
++ #endif
++#elif defined(__OpenBSD__)
++ #include <endian.h>
++ #if BYTE_ORDER == _LITTLE_ENDIAN
++ #define XL_LITTLE_ENDIAN
++ #else
++ #define XL_BIG_ENDIAN
++ #endif
++#elif defined(__sun)
++ #include <sys/byteorder.h>
++ #ifdef _BIG_ENDIAN
++ #define XL_BIG_ENDIAN
++ #else
++ #define XL_LITTLE_ENDIAN
++ #endif
+ #endif
+
+ /* Apple CC */
diff --git a/audacity/patches/patch-lib-src_portmixer_src-extra_Makefile.am b/audacity/patches/patch-lib-src_portmixer_src-extra_Makefile.am
new file mode 100644
index 0000000000..7a432f6b1f
--- /dev/null
+++ b/audacity/patches/patch-lib-src_portmixer_src-extra_Makefile.am
@@ -0,0 +1,12 @@
+$NetBSD: patch-lib-src_portmixer_src-extra_Makefile.am,v 1.1 2015/09/18 21:19:07 mrg Exp $
+
+don't build a shared library of this.
+
+--- lib-src/portmixer/src/Makefile.am.orig 2015-03-01 17:07:05.000000000 -0800
++++ lib-src/portmixer/src/Makefile.am 2015-09-18 11:29:08.000000000 -0700
+@@ -1,4 +1,4 @@
+-lib_LTLIBRARIES = libportmixer.la
++noinst_LTLIBRARIES = libportmixer.la
+
+ libportmixer_la_CPPFLAGS = -I$(top_srcdir)/include $(PORTAUDIO_CFLAGS)
+ libportmixer_la_SOURCES = \
diff --git a/audacity/patches/patch-lib-src_sbsms_src-extra_Makefile.am b/audacity/patches/patch-lib-src_sbsms_src-extra_Makefile.am
new file mode 100644
index 0000000000..f4532b9da2
--- /dev/null
+++ b/audacity/patches/patch-lib-src_sbsms_src-extra_Makefile.am
@@ -0,0 +1,15 @@
+$NetBSD: patch-lib-src_sbsms_src-extra_Makefile.am,v 1.1 2015/09/18 21:19:07 mrg Exp $
+
+don't build a shared library of this.
+
+--- lib-src/sbsms/src/Makefile.am.orig 2015-03-01 17:07:04.000000000 -0800
++++ lib-src/sbsms/src/Makefile.am 2015-09-18 11:29:19.000000000 -0700
+@@ -3,7 +3,7 @@
+ libsbsmsincludedir = $(includedir)
+ libsbsmsinclude_HEADERS = ../include/sbsms.h
+
+-lib_LTLIBRARIES = libsbsms.la
++noinst_LTLIBRARIES = libsbsms.la
+ libsbsms_la_SOURCES = \
+ sms.cpp \
+ track.cpp \
diff --git a/audacity/patches/patch-src_AudioIO.cpp b/audacity/patches/patch-src_AudioIO.cpp
new file mode 100644
index 0000000000..ac9667bd6a
--- /dev/null
+++ b/audacity/patches/patch-src_AudioIO.cpp
@@ -0,0 +1,18 @@
+$NetBSD: patch-src_AudioIO.cpp,v 1.3 2019/02/10 17:14:42 nia Exp $
+
+CLOCK_MONOTONIC_RAW is Linux-specific.
+
+--- src/AudioIO.cpp.orig 2018-02-14 07:11:20.000000000 +0000
++++ src/AudioIO.cpp
+@@ -985,7 +985,11 @@ static double SystemTime(bool usingAlsa)
+ if (usingAlsa) {
+ struct timespec now;
+ // CLOCK_MONOTONIC_RAW is unaffected by NTP or adj-time
++#ifdef CLOCK_MONOTONIC_RAW
+ clock_gettime(CLOCK_MONOTONIC_RAW, &now);
++#else
++ clock_gettime(CLOCK_MONOTONIC, &now);
++#endif
+ //return now.tv_sec + now.tv_nsec * 0.000000001;
+ return (now.tv_sec + now.tv_nsec * 0.000000001) - streamStartTime;
+ }
diff --git a/audacity/patches/patch-src_audacity.desktop.in b/audacity/patches/patch-src_audacity.desktop.in
new file mode 100644
index 0000000000..b66df2e791
--- /dev/null
+++ b/audacity/patches/patch-src_audacity.desktop.in
@@ -0,0 +1,16 @@
+$NetBSD: patch-src_audacity.desktop.in,v 1.1 2021/09/11 08:53:19 nia Exp $
+
+I'm not sure I want to know why, but GDK_SYNCHRONIZE=1 stops the Reverse
+option from crashing the program.
+
+--- src/audacity.desktop.in.orig 2020-05-19 09:43:53.000000000 +0000
++++ src/audacity.desktop.in
+@@ -46,7 +46,7 @@ Icon=@AUDACITY_NAME@
+ Type=Application
+ Categories=AudioVideo;Audio;AudioVideoEditing;
+
+-Exec=env UBUNTU_MENUPROXY=0 @AUDACITY_NAME@ %F
++Exec=env UBUNTU_MENUPROXY=0 GDK_SYNCHRONIZE=1 @AUDACITY_NAME@ %F
+ StartupNotify=false
+ Terminal=false
+ MimeType=application/x-audacity-project;@MIMETYPES@
diff --git a/audacity/patches/patch-src_effects_NoiseRemoval.cpp b/audacity/patches/patch-src_effects_NoiseRemoval.cpp
new file mode 100644
index 0000000000..f96ff35bcd
--- /dev/null
+++ b/audacity/patches/patch-src_effects_NoiseRemoval.cpp
@@ -0,0 +1,17 @@
+$NetBSD: patch-src_effects_NoiseRemoval.cpp,v 1.2 2015/04/20 13:38:23 rodent Exp $
+
+Fix build for SunOS.
+
+--- src/effects/NoiseRemoval.cpp.orig 2015-03-02 01:06:57.000000000 +0000
++++ src/effects/NoiseRemoval.cpp
+@@ -50,6 +50,10 @@
+
+ #include <math.h>
+
++#ifdef __sun
++#include <ieeefp.h>
++#endif
++
+ #if defined(__WXMSW__) && !defined(__CYGWIN__)
+ #include <float.h>
+ #define finite(x) _finite(x)
diff --git a/audacity/patches/patch-src_menus_ViewMenus.cpp b/audacity/patches/patch-src_menus_ViewMenus.cpp
new file mode 100644
index 0000000000..9d31d0c76c
--- /dev/null
+++ b/audacity/patches/patch-src_menus_ViewMenus.cpp
@@ -0,0 +1,31 @@
+$NetBSD: patch-src_menus_ViewMenus.cpp,v 1.1 2021/09/11 08:53:19 nia Exp $
+
+[PATCH] Fix crash on track resize
+
+As discussed in #538, there is an issue with the track resize option,
+where with audacity >= 2.4.0, compiled using the autotools setup leads
+to a hard crash.
+
+The sizeof(wxFrame) in src/menus/ViewMenus.cpp and src/ProjectWindow.cpp
+is not aligned, leading to GetVerticalScrollBar in
+src/menus/ViewMenus.cpp accessing unallocated memory.
+
+By ordering the include of ProjectWindow.h before the include of
+Project.h, this crash is prevented.
+
+https://github.com/dvzrv/audacity/commit/d7e769040b508aaf15ce7b51cc1a565d41cdb079.patch
+
+--- src/menus/ViewMenus.cpp.orig 2020-05-19 09:43:53.000000000 +0000
++++ src/menus/ViewMenus.cpp
+@@ -4,10 +4,10 @@
+ #include "../CommonCommandFlags.h"
+ #include "../Menus.h"
+ #include "../Prefs.h"
++#include "../ProjectWindow.h"
+ #include "../Project.h"
+ #include "../ProjectHistory.h"
+ #include "../ProjectSettings.h"
+-#include "../ProjectWindow.h"
+ #include "../Track.h"
+ #include "../TrackInfo.h"
+ #include "../TrackPanel.h"
Home |
Main Index |
Thread Index |
Old Index