diff --git a/srcpkgs/audacity/patches/PaUtil_GetTime.patch b/srcpkgs/audacity/patches/PaUtil_GetTime.patch new file mode 100644 index 00000000000..e720f337fd4 --- /dev/null +++ b/srcpkgs/audacity/patches/PaUtil_GetTime.patch @@ -0,0 +1,33 @@ +Source: https://svnweb.freebsd.org/ports/head/audio/audacity/files/patch-src_AudioIO.cpp?view=markup +Upstream: No +Reason: For system portaudio + + +diff --git src/AudioIO.cpp src/AudioIO.cpp +index 03972d700..51913ce9f 100644 +--- src/AudioIO.cpp ++++ src/AudioIO.cpp +@@ -467,7 +467,6 @@ TimeTrack and AudioIOListener and whether the playback is looped. + #define ROUND(x) (int) ((x)+0.5) + //#include + #include "../lib-src/portmidi/pm_common/portmidi.h" +- #include "../lib-src/portaudio-v19/src/common/pa_util.h" + #include "NoteTrack.h" + #endif + +@@ -787,6 +786,15 @@ private: + // return the system time as a double + static double streamStartTime = 0; // bias system time to small number + ++// PaUtil_GetTime is an internal PortAudio function. Unfortunately ++// it's used twice in AudioIO.cpp. It's a simple function so just ++// provide the implementation here. ++static double PaUtil_GetTime(void) { ++ struct timespec tp; ++ clock_gettime(CLOCK_REALTIME, &tp); ++ return (double)(tp.tv_sec + tp.tv_nsec * 1e-9); ++} ++ + static double SystemTime(bool usingAlsa) + { + #ifdef __WXGTK__ diff --git a/srcpkgs/audacity/template b/srcpkgs/audacity/template index 236bd9f0b00..715f9fb943d 100644 --- a/srcpkgs/audacity/template +++ b/srcpkgs/audacity/template @@ -1,7 +1,7 @@ # Template file for 'audacity' pkgname=audacity version=2.3.0 -revision=1 +revision=2 wrksrc="${pkgname}-Audacity-${version}" build_style=gnu-configure configure_args="--with-ffmpeg=system --with-libsndfile=system --with-expat=system @@ -10,7 +10,7 @@ hostmakedepends="pkg-config cmake libtool m4" makedepends="jack-devel wxWidgets-gtk3-devel gtk+3-devel libmad-devel soundtouch-devel libsoxr-devel vamp-plugin-sdk-devel lame-devel libid3tag-devel libflac-devel - ffmpeg-devel twolame-devel" + ffmpeg-devel twolame-devel portaudio-devel" depends="desktop-file-utils hicolor-icon-theme" short_desc="Graphical cross-platform audio editor" maintainer="Leah Neukirchen "