From owner-svn-ports-all@freebsd.org Thu Jul 19 03:18:54 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 728FC104629D; Thu, 19 Jul 2018 03:18:54 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1E0547A6FE; Thu, 19 Jul 2018 03:18:54 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id D8C1E237A5; Thu, 19 Jul 2018 03:18:53 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w6J3IrwE015051; Thu, 19 Jul 2018 03:18:53 GMT (envelope-from tobik@FreeBSD.org) Received: (from tobik@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w6J3Irvj015050; Thu, 19 Jul 2018 03:18:53 GMT (envelope-from tobik@FreeBSD.org) Message-Id: <201807190318.w6J3Irvj015050@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: tobik set sender to tobik@FreeBSD.org using -f From: Tobias Kortkamp Date: Thu, 19 Jul 2018 03:18:53 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r474923 - in head/audio/audacity: . files X-SVN-Group: ports-head X-SVN-Commit-Author: tobik X-SVN-Commit-Paths: in head/audio/audacity: . files X-SVN-Commit-Revision: 474923 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Jul 2018 03:18:54 -0000 Author: tobik Date: Thu Jul 19 03:18:53 2018 New Revision: 474923 URL: https://svnweb.freebsd.org/changeset/ports/474923 Log: audio/audacity: Unbundle portaudio and use audio/portaudio instead PR: 229853 Submitted by: tobik Approved by: xxjack12xx@gmail.com (maintainer) Modified: head/audio/audacity/Makefile head/audio/audacity/files/patch-src_AudioIO.cpp Modified: head/audio/audacity/Makefile ============================================================================== --- head/audio/audacity/Makefile Thu Jul 19 00:02:37 2018 (r474922) +++ head/audio/audacity/Makefile Thu Jul 19 03:18:53 2018 (r474923) @@ -4,7 +4,7 @@ PORTNAME= audacity PORTVERSION= 2.2.2 DISTVERSIONPREFIX= Audacity- -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= audio MAINTAINER= xxjack12xx@gmail.com @@ -21,6 +21,7 @@ BUILD_DEPENDS= autogen:devel/autogen \ cmake:devel/cmake LIB_DEPENDS= libasound.so:audio/alsa-lib \ libexpat.so:textproc/expat2 \ + libportaudio.so:audio/portaudio \ libsoxr.so:audio/libsoxr \ libsndfile.so:audio/libsndfile @@ -69,7 +70,7 @@ CONFIGURE_ARGS+= --disable-option-checking \ --with-libsndfile=system \ --with-libsoxr=system \ --with-midi \ - --with-portaudio \ + --with-portaudio=system \ --with-portmixer=yes \ --with-widgetextra Modified: head/audio/audacity/files/patch-src_AudioIO.cpp ============================================================================== --- head/audio/audacity/files/patch-src_AudioIO.cpp Thu Jul 19 00:02:37 2018 (r474922) +++ head/audio/audacity/files/patch-src_AudioIO.cpp Thu Jul 19 03:18:53 2018 (r474923) @@ -1,6 +1,29 @@ ---- src/AudioIO.cpp.orig 2018-02-22 14:12:03.835431000 -0800 -+++ src/AudioIO.cpp 2018-02-22 14:01:49.487127000 -0800 -@@ -985,7 +985,7 @@ +--- src/AudioIO.cpp.orig 2018-07-17 20:25:01 UTC ++++ src/AudioIO.cpp +@@ -465,7 +465,6 @@ TimeTrack and AudioIOListener and whether the playback + #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 + +@@ -979,13 +978,22 @@ struct AudioIO::ScrubQueue (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__ if (usingAlsa) { struct timespec now; // CLOCK_MONOTONIC_RAW is unaffected by NTP or adj-time