From nobody Fri Jun 09 15:48:03 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 4Qd5836Hs2z4bGck; Fri, 9 Jun 2023 15:48:03 +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 4Qd5835hf7z3P0K; Fri, 9 Jun 2023 15:48:03 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1686325683; 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=HWnp0xoibnprbOzE1aPBZMuXhrZSQB1qJQBXG3eZFRc=; b=hQRkUB4rljFmAxCfLLpsnW5iPqOC0EeeHGF436NklB2w5d2nZ7ABzzGMn9CI0KbkGi8JmJ CmlILmGoNGXtKRr+w3xeR3uvlfIFkgnoAZDpjPKATGDQpRxJFnykSx/8aeREAKjZy7stkW OABv96KTigHzXDCP2n4fDobarZ0xmYiYqt5Nd+suZcMs6gCO4oDihv990fJXNEP+R7yelI b228VTLz/Cpw3AarjZg5pIBroNR8UQs98gVu5DQ5U7zS1aJVSFJRdkvY9IHQv4QMyPCub1 EXnbl+pMwzeSF/XTybcwPanBuu498Ajrro7aLCNRFnywizNIP2oFy3PJiksjWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1686325683; 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=HWnp0xoibnprbOzE1aPBZMuXhrZSQB1qJQBXG3eZFRc=; b=MmwKuqS40tThEWkZJHCa2TGIkdoSc69SRX1yP3pwgIykdt52P7BxpkLlv5l9uq77kgRnD4 Z7+R6Ekj47iF85/+f69ekDPQ+hUBuo6JLGGLcYO1EzggsYmPV/yvgMN+wuOEytb359Rx3R kLpeu9+43cfZ3T4Yrb+qIVwRkZSiLYpkxeneAbqjkEo+JO72k6c9U/7oQSSzZxc91PdXfW 0MBHcl0AoveOqI0DlLVIScVmXwxlyZs76Gt8YTs1LmBYRjEnfF/rD0Uij5pZVGCM3/DhYd d1rKIVj+RZAUNdXtDYg5QE7iEPCP0XDa845nXKLCtT9bRRLIbq8EdMuyXjUcPA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1686325683; a=rsa-sha256; cv=none; b=BLh7hkPULlh2CoBBhIYJwmC2Q4MxUjyAoDHcFrD2sdXEurFMeTCAtu96B0TE1ZXaIZhcar MNxTV9Flml4w6VDhjNLxZMfnDi7iT678yTXjRjGRwpluEqrE/yXseWWNPgkKGFmBiTqLJu clEoROJaE4qZug5P+cRM0lDCb1+HR63iWkqEKypICc+pAkbMheQ1oHiS2DMMVfNnKl1t9/ Z3Sl3Ko9Z+Dbj1c6qnkjB8yZzakNbAQAntL9PAwziXVwWvGbYRjioPKfwuTSytvD6ywKsV vH3aB0B/Zm/92DsRLj1xoQ6/KkrvcsFjvdWaZPAlqGtwVjkSdyOJJb4TGCBTyA== 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 4Qd5834f0Tzgsk; Fri, 9 Jun 2023 15:48:03 +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 359Fm3Fp059413; Fri, 9 Jun 2023 15:48:03 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 359Fm3CJ059412; Fri, 9 Jun 2023 15:48:03 GMT (envelope-from git) Date: Fri, 9 Jun 2023 15:48:03 GMT Message-Id: <202306091548.359Fm3CJ059412@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: bc8d27492221 - main - devel/juce: Add FreeBSD compatibility patches 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: bc8d27492221f73768fa7359ce7c6f0ba0d7e2b1 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=bc8d27492221f73768fa7359ce7c6f0ba0d7e2b1 commit bc8d27492221f73768fa7359ce7c6f0ba0d7e2b1 Author: Yuri Victorovich AuthorDate: 2023-06-09 07:07:20 +0000 Commit: Yuri Victorovich CommitDate: 2023-06-09 15:48:00 +0000 devel/juce: Add FreeBSD compatibility patches --- devel/juce/Makefile | 1 + ...types_VST3__SDK_pluginterfaces_base_fplatform.h | 46 ++++++++++++++++++++++ ...ypes_VST3__SDK_pluginterfaces_base_funknown.cpp | 29 ++++++++++++++ 3 files changed, 76 insertions(+) diff --git a/devel/juce/Makefile b/devel/juce/Makefile index 2b018c0ab851..173ad4201784 100644 --- a/devel/juce/Makefile +++ b/devel/juce/Makefile @@ -1,5 +1,6 @@ PORTNAME= juce DISTVERSION= 7.0.5 +PORTREVISION= 1 CATEGORIES= devel MAINTAINER= yuri@FreeBSD.org diff --git a/devel/juce/files/patch-modules_juce__audio__processors_format__types_VST3__SDK_pluginterfaces_base_fplatform.h b/devel/juce/files/patch-modules_juce__audio__processors_format__types_VST3__SDK_pluginterfaces_base_fplatform.h new file mode 100644 index 000000000000..010ec0eed47a --- /dev/null +++ b/devel/juce/files/patch-modules_juce__audio__processors_format__types_VST3__SDK_pluginterfaces_base_fplatform.h @@ -0,0 +1,46 @@ +--- modules/juce_audio_processors/format_types/VST3_SDK/pluginterfaces/base/fplatform.h.orig 2023-01-25 11:45:10 UTC ++++ modules/juce_audio_processors/format_types/VST3_SDK/pluginterfaces/base/fplatform.h +@@ -139,6 +139,43 @@ + #define SMTG_HAS_NOEXCEPT 1 + #endif + //----------------------------------------------------------------------------- ++// BSD ++//----------------------------------------------------------------------------- ++#elif __FreeBSD__ ++ #define SMTG_OS_LINUX 1 // atomic operations need to be implemented ++ #define SMTG_OS_MACOS 0 ++ #define SMTG_OS_WINDOWS 0 ++ #define SMTG_OS_IOS 0 ++ #define SMTG_OS_OSX 0 ++ ++ #include ++ #if __BYTE_ORDER == __LITTLE_ENDIAN ++ #define BYTEORDER kLittleEndian ++ #else ++ #define BYTEORDER kBigEndian ++ #endif ++ ++ #define COM_COMPATIBLE 0 ++ #define PLUGIN_API ++ #define SMTG_PTHREADS 1 ++ ++ #define SMTG_EXPORT_SYMBOL __attribute__ ((visibility ("default"))) ++ ++ #if __LP64__ ++ #define SMTG_PLATFORM_64 1 ++ #else ++ #define SMTG_PLATFORM_64 0 ++ #endif ++ #ifdef __cplusplus ++ #include ++ #define SMTG_CPP11 (__cplusplus >= 201103L) ++ #ifndef SMTG_CPP11 ++ #error unsupported compiler ++ #endif ++ #define SMTG_CPP11_STDLIBSUPPORT 1 ++ #define SMTG_HAS_NOEXCEPT 1 ++ #endif ++//----------------------------------------------------------------------------- + // Mac and iOS + //----------------------------------------------------------------------------- + #elif __APPLE__ diff --git a/devel/juce/files/patch-modules_juce__audio__processors_format__types_VST3__SDK_pluginterfaces_base_funknown.cpp b/devel/juce/files/patch-modules_juce__audio__processors_format__types_VST3__SDK_pluginterfaces_base_funknown.cpp new file mode 100644 index 000000000000..c8583d61d146 --- /dev/null +++ b/devel/juce/files/patch-modules_juce__audio__processors_format__types_VST3__SDK_pluginterfaces_base_funknown.cpp @@ -0,0 +1,29 @@ +--- modules/juce_audio_processors/format_types/VST3_SDK/pluginterfaces/base/funknown.cpp.orig 2023-03-05 05:39:00 UTC ++++ modules/juce_audio_processors/format_types/VST3_SDK/pluginterfaces/base/funknown.cpp +@@ -44,7 +44,7 @@ + #endif // !SMTG_USE_STDATOMIC_H + #endif // SMTG_OS_MACOS + +-#if SMTG_OS_LINUX ++#if SMTG_OS_LINUX && !JUCE_BSD + #if !defined (SMTG_USE_STDATOMIC_H) + #if defined (__ANDROID__) || defined(_LIBCPP_VERSION) + #define SMTG_USE_STDATOMIC_H 1 +@@ -100,7 +100,7 @@ int32 PLUGIN_API atomicAdd (int32& var, int32 d) + return OSAtomicAdd32Barrier (d, (int32_t*)&var); + #elif defined(__ANDROID__) + return atomic_fetch_add ((atomic_int*)&var, d) + d; +-#elif SMTG_OS_LINUX ++#elif SMTG_OS_LINUX && !JUCE_BSD + __gnu_cxx::__atomic_add (&var, d); + return var; + #else +@@ -177,7 +177,7 @@ bool FUID::generate () + } + return false; + +-#elif SMTG_OS_LINUX ++#elif SMTG_OS_LINUX && !JUCE_BSD + srand ((size_t)this); + for (int32 i = 0; i < 16; i++) + data[i] = static_cast(rand ());