From nobody Tue Aug 15 03:00:47 2023 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 4RPwxq5RXbz4qJN9; Tue, 15 Aug 2023 03:00:47 +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 4RPwxq2FfWz3Y5Z; Tue, 15 Aug 2023 03:00:47 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1692068447; 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=P+3EOWBk3uA7E6M7DC/MPSFhl54fULN+/B6o8e/J5Vw=; b=BGhz0ATAauLVGizYKZHi6Pilxz0TYhYmwPqDoJeooJMwKmWHB1iSs5m1gidodPF3uklhu0 H5dGtSU4xY0kKIZHxr+ndcYIHe14Rhv+nrvvJIxixUrJX0x+1CgKMI3NAZE3JBrnuZXUs9 I2/O3IBZWPJgsxgWjKVl1s4JRJP38MIEd87mZVB9BKjbM3eUZCPFz9I9e0B4AGbKXhu2VJ b+NvrYs563U66YSyz9ynSQjuHDoZuqeP3m9KzJopZvovZICjFZe4uc0iyvZuZP/QkGfiMQ SVhXNBA0jzjrMRLHRSEYJkt2tPAvRQ1LldBoqs1eiZaLmNs01JLI4EkVIPgxDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1692068447; 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=P+3EOWBk3uA7E6M7DC/MPSFhl54fULN+/B6o8e/J5Vw=; b=GlRy+ydXgz/hZ0kwQO0eQmugHtoRjRO05Ojy1qQNUi1SZt/hW9q/YHdSJCL3lwj6K+ViA5 LHQEJBr/vuAGHJr3AD4jT3/dgcpliisoamDVjfgoTxQLSQ347saAksrzN0EfQkgpyaMSU1 86nuIj4Gi1qMraYAnJ+D/FCYHO0dpX22pnl6d7ZwZFNtVvN7a++yUvkVyne/nhf0R9qqdS lPQuGalAw6tUEnloEMm8/FJewE80HUzrdRQmG+ik1ISKkAo8Vhpfd5UPVHqT3uS6PIHgII txie9rpOrixiL4X/W9g9HhkqewZsCWPVD5A6X+mvFJMllwc4Ubij6sbaptxa2A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1692068447; a=rsa-sha256; cv=none; b=mYPTY1s3xXxPsQ7qbKAN9cJqlNJ+XjoOKBprAthZ2dkr24L/UAdnmjv+EdRMsc58HdNdbQ DzM8rt2uJ3StWxmScl0SuS0iJ61AWT56TD6UDoJtpD5pIqoSTZ13WZZb7AlBIUjxBYl2Ii yGxi3QVAIDo/LuzyH9ifR9GLn20/ASGci7s1QJh/EK5a8iClFaVLMVaSj0mi4REVjcq6Gh jqESA3jOlozUP+PZeNkbV7Rj3Sa8KugXfqdgCfozwj/BpuYswyP9ZQdw/0ZGbNDUsh6/MC 3jpegGRO2y1JkshXTC17nOhN1bar9WA/ppQNqKoI5HYgMM+ONdOCYQ6ivGIqrA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4RPwxq1JgTztZt; Tue, 15 Aug 2023 03:00:47 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 37F30l5w068524; Tue, 15 Aug 2023 03:00:47 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 37F30lav068521; Tue, 15 Aug 2023 03:00:47 GMT (envelope-from git) Date: Tue, 15 Aug 2023 03:00:47 GMT Message-Id: <202308150300.37F30lav068521@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: bbdab99505af - main - audio/noise-suppression-for-voice-lv2: Fix build by disabling VST3 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: bbdab99505af5510df12cbf37c9187594450f083 Auto-Submitted: auto-generated The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=bbdab99505af5510df12cbf37c9187594450f083 commit bbdab99505af5510df12cbf37c9187594450f083 Author: Yuri Victorovich AuthorDate: 2023-08-15 02:21:31 +0000 Commit: Yuri Victorovich CommitDate: 2023-08-15 03:00:41 +0000 audio/noise-suppression-for-voice-lv2: Fix build by disabling VST3 Add options LADSPA and VST3. The VST3 plugin isn;t built any more after juce update. Now the new option VST3 is OFF by default. Reported by: fallout --- audio/noise-suppression-for-voice-lv2/Makefile | 26 ++++++++++++++++++------- audio/noise-suppression-for-voice-lv2/pkg-plist | 4 ++-- 2 files changed, 21 insertions(+), 9 deletions(-) diff --git a/audio/noise-suppression-for-voice-lv2/Makefile b/audio/noise-suppression-for-voice-lv2/Makefile index f0b28acad7b0..7027054e169f 100644 --- a/audio/noise-suppression-for-voice-lv2/Makefile +++ b/audio/noise-suppression-for-voice-lv2/Makefile @@ -1,6 +1,7 @@ PORTNAME= noise-suppression-for-voice DISTVERSIONPREFIX= v DISTVERSION= 1.03 +PORTREVISION= 1 CATEGORIES= audio PKGNAMESUFFIX= -lv2 @@ -24,21 +25,32 @@ CXXFLAGS+= -DJUCE_CUSTOM_VST3_SDK=1 PLIST_SUB= XARCH=${ARCH:S/amd64/x86_64/} +OPTIONS_DEFINE= LADSPA VST3 +OPTIONS_DEFAULT= LADSPA #VST3 +OPTIONS_SUB= yes + +LADSPA_CMAKE_BOOL= BUILD_LADSPA_PLUGIN + +VST3_CMAKE_BOOL= BUILD_VST3_PLUGIN +VST3_BROKEN= fails to build with juce-7.0.6, see https://github.com/werman/noise-suppression-for-voice/issues/177 + post-extract: # remove bundled JUCE @${RM} -rf ${WRKSRC}/external/JUCE -post-install: # move plugins to a proper place: workaround for https://github.com/juce-framework/JUCE/issues/1237 - # LV2 plugin +post-install: # move plugins to a proper place: workaround for https://github.com/juce-framework/JUCE/issues/1237 and strip binaries @${MV} ${STAGEDIR}${WRKDIR}/.lv2 ${STAGEDIR}${PREFIX}/lib/lv2 - # VST3 plugin - @${MKDIR} ${STAGEDIR}${PREFIX}/lib/vst3 - @${MV} `${FIND} ${STAGEDIR} -name rnnoise.vst3` ${STAGEDIR}${PREFIX}/lib/vst3 # remove empty directories @${FIND} ${STAGEDIR} -type d -empty -delete # strip binaries - cd ${STAGEDIR}${PREFIX} && ${STRIP_CMD} \ + @cd ${STAGEDIR}${PREFIX} && ${STRIP_CMD} \ lib/lv2/rnnoise_mono.lv2/librnnoise_mono.so \ - lib/lv2/rnnoise_stereo.lv2/librnnoise_stereo.so \ + lib/lv2/rnnoise_stereo.lv2/librnnoise_stereo.so + +post-install-VST3-on: + @${MKDIR} ${STAGEDIR}${PREFIX}/lib/vst3 + @${MV} `${FIND} ${STAGEDIR} -name rnnoise.vst3` ${STAGEDIR}${PREFIX}/lib/vst3 + # strip binaries + @cd ${STAGEDIR}${PREFIX} && ${STRIP_CMD} \ lib/vst3/rnnoise.vst3/Contents/*/rnnoise.so # the LADSPA plugin can be used directly from PulseAudio's config file diff --git a/audio/noise-suppression-for-voice-lv2/pkg-plist b/audio/noise-suppression-for-voice-lv2/pkg-plist index dcf464e8be5d..a9904af4cd15 100644 --- a/audio/noise-suppression-for-voice-lv2/pkg-plist +++ b/audio/noise-suppression-for-voice-lv2/pkg-plist @@ -1,4 +1,4 @@ -lib/ladspa/librnnoise_ladspa.so +%%LADSPA%%lib/ladspa/librnnoise_ladspa.so lib/lv2/rnnoise_mono.lv2/dsp.ttl lib/lv2/rnnoise_mono.lv2/librnnoise_mono.so lib/lv2/rnnoise_mono.lv2/manifest.ttl @@ -7,4 +7,4 @@ lib/lv2/rnnoise_stereo.lv2/dsp.ttl lib/lv2/rnnoise_stereo.lv2/librnnoise_stereo.so lib/lv2/rnnoise_stereo.lv2/manifest.ttl lib/lv2/rnnoise_stereo.lv2/ui.ttl -lib/vst3/rnnoise.vst3/Contents/%%XARCH%%-linux/rnnoise.so +%%VST3%%lib/vst3/rnnoise.vst3/Contents/%%XARCH%%-linux/rnnoise.so