<pre style='margin:0'>
Renee Otten (reneeotten) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/029d7f7b09b6ab63e238757680db453083ea9df2">https://github.com/macports/macports-ports/commit/029d7f7b09b6ab63e238757680db453083ea9df2</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 029d7f7b09b srt: new port
</span>029d7f7b09b is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 029d7f7b09b6ab63e238757680db453083ea9df2
</span>Author: jasonliu-- <jasonliu--@users.noreply.github.com>
AuthorDate: Fri Jul 28 21:10:50 2023 -0400
<span style='display:block; white-space:pre;color:#404040;'> srt: new port
</span>---
net/srt/Portfile | 89 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 89 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/net/srt/Portfile b/net/srt/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..ca5eef2ebb7
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/net/srt/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,89 @@
</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 github 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;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.setup Haivision srt 1.5.2 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;'>+revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories net multimedia comms
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license MPL-2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers @jasonliu-- openmaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description transport protocol for ultra-low latency live \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ video and audio streaming
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description Secure Reliable Transport (SRT) is a \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${description}, as well as for generic bulk data \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ transfer. SRT provides reliable transmission \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ similar to TCP\; however, it does so at the \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ application layer, and uses UDP as the underlying \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ transport layer. This package contains the \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ open-source reference implementation of the SRT \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ library, and was written by Haivision, the \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ original developers of the SRT protocol.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 89f3ee7d48f9b22c6e6aa5a582959e1f6e03b22e \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 463970a3f575446b3f55abb6f323d5476c963c77b3c975cd902e9c87cdd9a92c \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 1699747
</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;'>+configure.args-append -DENABLE_APPS=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DENABLE_LOGGING=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DENABLE_ENCRYPTION=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DENABLE_SHOW_PROJECT_CONFIG=ON
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+pre-test {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {![variant_isset tests]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ui_error "'tests' variant must be activated to enable test support"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ error "Please enable the 'tests' variant and try again"
</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;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant utils description {Build command-line tools} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-delete -DENABLE_APPS=OFF
</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;'>+variant logging description {Enable logging} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-delete -DENABLE_LOGGING=OFF
</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;'>+variant heavy_logging requires logging \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ description {Enable heavy logging} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+{
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append -DENABLE_HEAVY_LOGGING=ON
</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;'>+variant tests description {Build unit tests} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Googletest requires C++14 or newer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ compiler.cxx_standard 2014
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_lib-append port:gtest
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ post-patch {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "/target_include_directories.test-srt/a\\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+\\ set_property(TARGET test-srt PROPERTY CXX_STANDARD 14)\\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${worksrcpath}/CMakeLists.txt
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append -DENABLE_UNITTESTS=ON
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ test.run yes
</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;'>+variant openssl conflicts mbedtls \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ description {Enable encryption in SRT using OpenSSL} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+{
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_lib-append port:openssl
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-delete -DENABLE_ENCRYPTION=OFF
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append -DUSE_ENCLIB=openssl
</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;'>+variant mbedtls conflicts openssl \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ description {Enable encryption in SRT using Mbed TLS} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+{
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_lib-append port:mbedtls
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-delete -DENABLE_ENCRYPTION=OFF
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append -DUSE_ENCLIB=mbedtls
</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;'>+default_variants +utils +logging +openssl
</span></pre><pre style='margin:0'>
</pre>