From nobody Fri Jun 24 07:20:52 2022 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id E6CFB860388; Fri, 24 Jun 2022 07:20:53 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LTpSP2pJQz4psc; Fri, 24 Jun 2022 07:20:53 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1656055253; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=VtoFsxsAr0jAcfL32O4VwqNpkcKeNL0+1o15VuD+IXc=; b=OA5oINSpsUnILqHbXP63U9UK/ZkRfqTFQKeLBMG6OhsTWOgwinWfBNND8arpYJX0sq5BBJ qpdGPWMTg0lLu0P5fH+5TA3eCzP/QC8pTyw29Q6B9MDBgssnBzuIlTkINjtEDkMCADsjPV bdTySVOnR+2F8c5KCzkg4kwDhfXyQvkMt/hVH441s4zoZ6O2mfyXJL60gS99oNAY9ABYiY UwlmGn68zLNBT4aXKXPzrZetAS2oVDWEdVtcOB5tQ/FgOcclOZplrO/sTfQDQtxqeARcgs j/nh4CqQpZYb+0NaaxDK07ekWgmA7+yR/h/i8Hzb1N6PC7KECmqrb1q/7cfvFg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 01BCD349E; Fri, 24 Jun 2022 07:20:52 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 25O7Kqs1086043; Fri, 24 Jun 2022 07:20:52 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 25O7Kqpi086042; Fri, 24 Jun 2022 07:20:52 GMT (envelope-from git) Date: Fri, 24 Jun 2022 07:20:52 GMT Message-Id: <202206240720.25O7Kqpi086042@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: 076f21eb4dd1 - main - audio/rtaudio: Add options for several (all supported) audio backends List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 076f21eb4dd17a66ced3e62e6bfad24fb85c1d4a Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1656055253; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=VtoFsxsAr0jAcfL32O4VwqNpkcKeNL0+1o15VuD+IXc=; b=gvzjLxEF8gN4J7O8hLrlfarv+PNXxFEXBFby+6kOg6OdcTSu27DHCBBhTrugrhApw3/njk UiDKe7ytAtnzM6kXqvEhKbRt/z7hsSVnzzZnayY/73ClVXijUWJLA/1u+etF8dj2ydhcTs +IGDTfTnruKWvdoNz8pJdIusJtIC77rKYOPtPJPreDu8hcazQDI+nByyZeuDV20/umftC2 RIq1PEASPUr7neUaCylhomRm3BtPcgR1ZEZFnq7l9qS8XE3+BKIdNLQGTMH9SNCD8mUcnD 65PgsU6Tp1Duh92E56Tn3hby6kbAI/edhmyJkdjOveHLXEPVExqHb+K6CSkylQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1656055253; a=rsa-sha256; cv=none; b=vq2cqLK+x2d3O+f9pxdY8lBlziIsKipLmnUDItC4R6nJtaAXynsLKkGUWkv2r8Qr6HfPRr TTvz6rXxlDZU0pZeAejwHYTTjpIPEd2YnjA7OnDHZqhzyHPt9DaXBXaXN4NrUV2fNgR0pT BTVDmKdKTWjTPszKPTXrrdp8l5uWZ9XSidoriqr0aho+TuanQkwFSQu2tUhdAWVPc9PJ5L WY+HsKNafuBqKZ7/ASU2Y8/KLe/QxP321i3TNi32rWH0wbyWVJ7uZRZZgT3WTSnY9BmGxp 5M6jLr9uchOIYlg2+OLQuA43fbvoDnZaqtZRzIjZZ+uV9hi99fabecrmtdVcAQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=076f21eb4dd17a66ced3e62e6bfad24fb85c1d4a commit 076f21eb4dd17a66ced3e62e6bfad24fb85c1d4a Author: Yuri Victorovich AuthorDate: 2022-06-24 06:18:36 +0000 Commit: Yuri Victorovich CommitDate: 2022-06-24 07:20:46 +0000 audio/rtaudio: Add options for several (all supported) audio backends --- audio/rtaudio/Makefile | 25 ++++++++++++++++--------- audio/rtaudio/pkg-plist | 4 ++++ 2 files changed, 20 insertions(+), 9 deletions(-) diff --git a/audio/rtaudio/Makefile b/audio/rtaudio/Makefile index 293dfae2a92f..e65649349925 100644 --- a/audio/rtaudio/Makefile +++ b/audio/rtaudio/Makefile @@ -1,5 +1,6 @@ PORTNAME= rtaudio DISTVERSION= 5.2.0 +PORTREVISION= 1 CATEGORIES= audio MAINTAINER= yuri@FreeBSD.org @@ -7,23 +8,29 @@ COMMENT= C++ classes that provide a common API for realtime audio input/output LICENSE= MIT -USES= autoreconf compiler:c++11-lang libtool pkgconfig +USES= cmake compiler:c++11-lang libtool pkgconfig USE_LDCONFIG= yes USE_GITHUB= yes GH_ACCOUNT= thestk -GNU_CONFIGURE= yes -CONFIGURE_ARGS= --disable-static +OPTIONS_MULTI= AUDIO_BACKEND +OPTIONS_MULTI_AUDIO_BACKEND= ALSA JACK OSS PULSEAUDIO +OPTIONS_DEFAULT= PULSEAUDIO # default should probably be OSS, but it appears to be broken -INSTALL_TARGET= install-strip +AUDIO_BACKEND_DESC= Audio backend -OPTIONS_DEFINE= PULSEAUDIO -OPTIONS_DEFAULT= PULSEAUDIO +ALSA_CMAKE_BOOL= RTAUDIO_API_ALSA +ALSA_LIB_DEPENDS= libasound.so:audio/alsa-lib -PULSEAUDIO_CONFIGURE_WITH= pulse -PULSEAUDIO_USES= localbase:ldflags -PULSEAUDIO_LDFLAGS= -lpulse # see https://github.com/thestk/rtaudio/issues/293 +JACK_CMAKE_BOOL= RTAUDIO_API_JACK +JACK_LDFLAGS= `pkg-config --libs jack` # workaround for https://github.com/thestk/rtaudio/issues/357 +JACK_LIB_DEPENDS= libjack.so:audio/jack + +OSS_CMAKE_BOOL= RTAUDIO_API_OSS # OSS option is possibly broken, see https://github.com/thestk/rtaudio/issues/359 + +PULSEAUDIO_CMAKE_BOOL= RTAUDIO_API_PULSE # is PULSEAUFIO broken? see https://github.com/thestk/rtaudio/issues/361 +PULSEAUDIO_USES= localbase:ldflags # workaround for https://github.com/thestk/rtaudio/issues/360 PULSEAUDIO_LIB_DEPENDS= libpulse.so:audio/pulseaudio .include diff --git a/audio/rtaudio/pkg-plist b/audio/rtaudio/pkg-plist index 195a4298eb9c..a2ae0352c0d9 100644 --- a/audio/rtaudio/pkg-plist +++ b/audio/rtaudio/pkg-plist @@ -4,3 +4,7 @@ lib/librtaudio.so lib/librtaudio.so.6 lib/librtaudio.so.6.0.2 libdata/pkgconfig/rtaudio.pc +%%DATADIR%%/RtAudioConfig-version.cmake +%%DATADIR%%/RtAudioConfig.cmake +%%DATADIR%%/RtAudioTargets-%%CMAKE_BUILD_TYPE%%.cmake +%%DATADIR%%/RtAudioTargets.cmake