From nobody Wed Apr 13 19:31:38 2022 X-Original-To: dev-commits-ports-all@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 879A61B38475; Wed, 13 Apr 2022 19:31:38 +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 4Kdt4p3HJQz3Phh; Wed, 13 Apr 2022 19:31:38 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649878298; 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=kRrtm/mtvr4xB/QHzhkdSvXc28BPKSEJmcQt/AY1aDQ=; b=UYWlXAjdnitfdDxEaM3fwuiUQM9Xh3RU+qr9ia0Nz7fgWREjPWuu8NrOq0VdUq1zQ3k1L4 2DfG1lB6sFqQKr41rsfhFnUq3uzdatWzZgZXm4ZHPjRzxIWlzUIkZUXhnR8JNg87O55e6W kxa0bQ1jqky0MLt/LtYhfLGAGa3Fb6iWZolwsarxnHPkp65cNxUmGlmBdew1ojqjNqSYhT k9H+e56iLKmR8YRmyMZKXIySDX3V6b1h8POasv1Uxq3fBGIPHUXNLtUVj1AHOW5KXWHO9K QyMdjgyoLdx1U5WJVXgevD890jMS64Ef4gDP8qBqa5PHCwhtT27umREvHZoQ9A== 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 50CC6121CA; Wed, 13 Apr 2022 19:31:38 +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 23DJVcLZ088467; Wed, 13 Apr 2022 19:31:38 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 23DJVcGY088466; Wed, 13 Apr 2022 19:31:38 GMT (envelope-from git) Date: Wed, 13 Apr 2022 19:31:38 GMT Message-Id: <202204131931.23DJVcGY088466@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: 96656498bcbd - main - audio/dexed: Add VST3 option that installs VST3 plugin List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@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: 96656498bcbd2217fc940afde62aed131426dbda Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649878298; 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=kRrtm/mtvr4xB/QHzhkdSvXc28BPKSEJmcQt/AY1aDQ=; b=xZgCTA0tjHCKsnszEuRLUSl8frx7JuK1BxIGI/CxGCPmV8gAX1qZL9JOCyW6L2ZUrei5qG znF2DE2ptxf5og04kdZWhJeI5UB5noMX442KDEFhK6IQshNc88xfe+gjdSLqWxBpA8rGUl /VcA5bAnmHX1gRzLVvFrxhy8LB8nrIauHqih1Lo5h5DS/uRhtm3i4ClWX0a6KDeN7acO17 AKrBdThE8p7vnIXHjrOjgKj0vXgBibET5aI7V2yd4jaJa6ulv5P3S9h1Mz1XC0nteHLrWG /8IzAoMWBfo778eEXIjZobuyM18uU174N3bjpL/NZMUKQzT4Hf2Q2OS51OaBaA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649878298; a=rsa-sha256; cv=none; b=E0t9OMT7Nw1MOLAQie/hnIVFETgB88TAn9QpM+12eDfb4PkaERXgntvRf27BFgvgZepLkS u36sLcaBsWTHYlIbb4Yvpb0FZtAbkzPdm1ugyIkmnumWkUbKlpRiSKh3/91blVgWIvTrKI vkIMM5u8eAvqXKu/qLs0fAPC9s7Gtiq1nTzu3bR+tMwX/o1qAIub2JoPQ0RX8V/K5FPnTS gyMIFTkTq9TTGoh+uq3d6nSuQDXblonotSrpO4JjxNsCuIIKxrLE/ww26bNbd95jgN6Lf4 CzsSXOh2+z/522PgquIoCxnbNaRPgHEnV/i8VGEl3QhTtXGyW/k5dYh8Sxzl4A== 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=96656498bcbd2217fc940afde62aed131426dbda commit 96656498bcbd2217fc940afde62aed131426dbda Author: Yuri Victorovich AuthorDate: 2022-04-13 19:31:01 +0000 Commit: Yuri Victorovich CommitDate: 2022-04-13 19:31:36 +0000 audio/dexed: Add VST3 option that installs VST3 plugin --- audio/dexed/Makefile | 16 ++++++++++++++++ audio/dexed/files/patch-Source_CMakeLists.txt | 13 ------------- ..._modules_juce__core_native_juce__linux__Files.cpp | 20 ++++++++++++++++++++ 3 files changed, 36 insertions(+), 13 deletions(-) diff --git a/audio/dexed/Makefile b/audio/dexed/Makefile index 4dcd9042cff8..0ea8282a75d9 100644 --- a/audio/dexed/Makefile +++ b/audio/dexed/Makefile @@ -2,6 +2,7 @@ PORTNAME= dexed DISTVERSIONPREFIX= v DISTVERSION= 0.9.6-16 DISTVERSIONSUFFIX= -g1df9a58 +PORTREVISION= 1 CATEGORIES= audio PKGNAMESUFFIX= -synth @@ -39,7 +40,22 @@ DOS2UNIX_GLOB= *.cpp *.h PLIST_FILES= bin/Dexed +OPTIONS_DEFINE= VST3 +OPTIONS_DEFAULT= VST3 + +VST3_DESC= Build the VST3 plugin +VST3_BUILD_DEPENDS= vst3sdk>0:audio/vst3sdk +VST3_CXXFLAGS= -DJUCE_CUSTOM_VST3_SDK=1 -fPIC +VST3_PLIST_FILES= lib/vst/Dexed.so + +post-patch-VST3-off: + @${REINPLACE_CMD} -e 's/FORMATS AU VST3 Standalone/FORMATS AU Standalone/' ${WRKSRC}/Source/CMakeLists.txt + do-install: # workaround for https://github.com/asb2m10/dexed/issues/342 ${INSTALL_PROGRAM} ${BUILD_WRKSRC}/Source/Dexed_artefacts/Release/Standalone/Dexed ${STAGEDIR}${PREFIX}/bin +do-install-VST3-on: + ${MKDIR} ${STAGEDIR}${PREFIX}/lib/vst + ${INSTALL_LIB} ${BUILD_WRKSRC}/Source/Dexed_artefacts/Release/VST3/Dexed.vst3/Contents/x86_64-linux/Dexed.so ${STAGEDIR}${PREFIX}/lib/vst + .include diff --git a/audio/dexed/files/patch-Source_CMakeLists.txt b/audio/dexed/files/patch-Source_CMakeLists.txt deleted file mode 100644 index b7cc65d9758c..000000000000 --- a/audio/dexed/files/patch-Source_CMakeLists.txt +++ /dev/null @@ -1,13 +0,0 @@ -- disable the VST3 plugin, pending https://github.com/asb2m10/dexed/issues/340 - ---- Source/CMakeLists.txt.orig 2022-04-13 02:18:02 UTC -+++ Source/CMakeLists.txt -@@ -13,7 +13,7 @@ juce_add_plugin("${BaseTargetName}" - COPY_PLUGIN_AFTER_BUILD FALSE - PLUGIN_MANUFACTURER_CODE DGSB - PLUGIN_CODE Dexd -- FORMATS AU VST3 Standalone -+ FORMATS AU Standalone - PRODUCT_NAME "Dexed" - DESCRIPTION "Dexed FM Synth" - ) diff --git a/audio/dexed/files/patch-libs_JUCE_modules_juce__core_native_juce__linux__Files.cpp b/audio/dexed/files/patch-libs_JUCE_modules_juce__core_native_juce__linux__Files.cpp new file mode 100644 index 000000000000..e0eb95270cda --- /dev/null +++ b/audio/dexed/files/patch-libs_JUCE_modules_juce__core_native_juce__linux__Files.cpp @@ -0,0 +1,20 @@ +--- libs/JUCE/modules/juce_core/native/juce_linux_Files.cpp.orig 2022-04-13 18:55:08 UTC ++++ libs/JUCE/modules/juce_core/native/juce_linux_Files.cpp +@@ -21,7 +21,7 @@ + */ + + #if JUCE_BSD +-extern char** environ; ++//extern char** environ; + #endif + + namespace juce +@@ -230,7 +230,7 @@ bool Process::openDocument (const String& fileName, co + setsid(); + + // Child process +- execve (argv[0], (char**) argv, environ); ++ execv (argv[0], (char**) argv); + exit (0); + } +