<pre style='margin:0'>
Chih-Hsuan Yen (yan12125) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/b07654320ec8b5b4895699bd099e34e546e9d1d9">https://github.com/macports/macports-ports/commit/b07654320ec8b5b4895699bd099e34e546e9d1d9</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit b07654320ec8b5b4895699bd099e34e546e9d1d9
</span>Author: Chih-Hsuan Yen <yan12125@macports.org>
AuthorDate: Tue May 14 23:31:02 2019 +0800
<span style='display:block; white-space:pre;color:#404040;'> old_openssl: new port group for easing usage of the older openssl ports
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> This is a step in OpenSSL 1.1 migration.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Ref: https://github.com/macports/macports-ports/pull/3822
</span><span style='display:block; white-space:pre;color:#404040;'> Ref: https://trac.macports.org/ticket/52101
</span>---
_resources/port1.0/group/old_openssl-1.0.tcl | 49 ++++++++++++++++++++++++++++
1 file changed, 49 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/_resources/port1.0/group/old_openssl-1.0.tcl b/_resources/port1.0/group/old_openssl-1.0.tcl
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..3786acb
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/_resources/port1.0/group/old_openssl-1.0.tcl
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,49 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# -*- coding: utf-8; mode: tcl; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 4; truncate-lines: t -*- vim:fenc=utf-8: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;'>+# Usage:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# PortGroup old_openssl 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# This port group is for ports that are incompatible with the latest OpenSSL.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# It's not needed for most ports.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# options:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# openssl.branch: the OpenSSL branch to use (e.g. 1.0 for the latest OpenSSL on the 1.0.x branch).
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Currently only 1.0 is available.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+options openssl.branch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+option_proc openssl.branch openssl_set_branch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+options openssl.includedir
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+default openssl.includedir {${prefix}/include/openssl-${openssl.branch}}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+options openssl.libdir
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+default openssl.libdir {${prefix}/lib/openssl-${openssl.branch}}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+proc openssl_set_branch {option action args} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {$action ne "set"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return
</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;'>+ global openssl.branch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set branch_no_dot [string map {. ""} ${openssl.branch}]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_lib-delete path:lib/libssl.dylib:openssl
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_lib-append port:openssl${branch_no_dot}
</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;'>+proc openssl.configure {method} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ global prefix openssl.branch openssl.includedir openssl.libdir
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ switch ${method} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ pkgconfig {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.env-append PKG_CONFIG_PATH=${prefix}/lib/openssl-${openssl.branch}/pkgconfig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_build-append port:pkgconfig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ build_flags {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.cppflags-prepend -I${openssl.includedir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.ldflags-prepend -L${openssl.libdir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ default {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return -code error "invalid method \"${method}\" for openssl.configure"
</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></pre><pre style='margin:0'>
</pre>