<pre style='margin:0'>
Craig Treleaven (ctreleaven) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/6a3f8a62b888ea2cad669e319d0fcc186913e62a">https://github.com/macports/macports-ports/commit/6a3f8a62b888ea2cad669e319d0fcc186913e62a</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 6a3f8a62b888ea2cad669e319d0fcc186913e62a
</span>Author: Craig Treleaven <ctreleaven@macports.org>
AuthorDate: Sun Jan 17 19:42:37 2021 -0500
<span style='display:block; white-space:pre;color:#404040;'> libopenshot-audio: new, support lib for openshot-qt
</span>---
multimedia/libopenshot-audio/Portfile | 45 ++++++++++++++++++++++
.../files/patch_std_atomic_test.diff | 3 ++
2 files changed, 48 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/multimedia/libopenshot-audio/Portfile b/multimedia/libopenshot-audio/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..19797e424d7
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/multimedia/libopenshot-audio/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,45 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortSystem 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup cmake 1.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup github 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup compiler_blacklist_versions 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.setup OpenShot libopenshot-audio 0.2.0 v
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.tarball_from archive
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 ffba3afbd01340b7ee6ce6eb7aa0cf27901f664a \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 937ff4f1c2dfb8ab5d56ad85beacaa29dfd5a79af0d9cf647386034fe9882309 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 1711504
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+homepage https://www.openshot.org/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories multimedia devel
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license GPL-2+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+platforms darwin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers ctreleaven openmaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description Library for creating and editing videos
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description ${description}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# avoid multiple error: "JUCE requires a C++ library containing std::atomic"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# file to be patched has CRLF endings...which patch hates
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles patch_std_atomic_test.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patch.args --ed JuceLibraryCode/modules/juce_core/system/juce_CompilerSupport.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+compiler.cxx_standard 2011
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# needs atomics support which is a C11 feature; references
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# https://stackoverflow.com/questions/26440606/xcode-and-c11-stdatomic-h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# https://stackoverflow.com/questions/20326604/stdatomic-h-in-gcc-4-8
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# indicates compatible compilers are Xcode > Xcode 7, clang > 3.7, and gcc > 4.8
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+compiler.blacklist-append *gcc-3.* *gcc-4.*
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+compiler.blacklist-append { clang < 700 } macports-clang-3.3 macports-clang-3.4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_build-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:python3.8 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:doxygen
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_lib port:zlib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.args-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DPYTHON_EXECUTABLE:FILEPATH=${prefix}/bin/python3.8
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# ./src/openshot-audio-test-sound (This should play a test sound)
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/multimedia/libopenshot-audio/files/patch_std_atomic_test.diff b/multimedia/libopenshot-audio/files/patch_std_atomic_test.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..d37540be36e
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/multimedia/libopenshot-audio/files/patch_std_atomic_test.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,3 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+112,115c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+// C++ library - incomplete test removed
</span>
<span style='display:block; white-space:pre;background:#e0ffe0;'>+.
</span></pre><pre style='margin:0'>
</pre>