diff --git a/dports/devel/openssl/Portfile b/dports/devel/openssl/Portfile
index acee77c..97430e6 100644
a
|
b
|
PortGroup muniversal 1.0 |
6 | 6 | |
7 | 7 | name openssl |
8 | 8 | epoch 1 |
9 | | version 1.0.2a |
| 9 | version 1.0.2b |
10 | 10 | |
11 | 11 | # Please revbump these ports when updating OpenSSL. |
12 | 12 | # - freeradius (#43461) |
13 | | # - tor (#44256) |
| 13 | # - tor, tor-devel (#44256) |
14 | 14 | |
15 | 15 | categories devel security |
16 | 16 | platforms darwin |
… |
… |
long_description The OpenSSL Project is a collaborative effort to \ |
25 | 25 | Security (TLS v1) protocols as well as \ |
26 | 26 | a full-strength general purpose cryptography \ |
27 | 27 | library. |
28 | | homepage http://www.openssl.org/ |
| 28 | homepage http://www.openssl.org |
29 | 29 | |
30 | 30 | depends_lib port:zlib |
31 | 31 | |
32 | | master_sites http://www.openssl.org/source/ |
33 | | checksums md5 a06c547dac9044161a477211049f60ef \ |
34 | | sha1 46ecd325b8e587fa491f6bb02ad4a9fb9f382f5f \ |
35 | | rmd160 2974a0a8cc469d85a5391a64aa0a2b2c5b00acfa \ |
36 | | sha256 15b6393c20030aab02c8e2fe0243cb1d1d18062f6c095d67bca91871dc7f324a |
| 32 | master_sites http://www.openssl.org/source |
| 33 | checksums md5 7729b259e2dea7d60b32fc3934d6984b \ |
| 34 | sha1 9006e53ca56a14d041e3875320eedfa63d82aba7 \ |
| 35 | rmd160 543a4d9d4fe08ddcae0937334224d8479d9b602a \ |
| 36 | sha256 d5d488cc9f0a07974195a7427094ea3cab9800a4e90178b989aa621fbc238e3f |
37 | 37 | |
38 | 38 | patchfiles patch-bn_internal.pod.diff \ |
39 | 39 | patch-crypto-Makefile.diff \ |
40 | 40 | patch-Makefile.org-parallel.diff \ |
41 | 41 | patch-crypto-perlasm-x86_64-xlate.pl.diff |
42 | 42 | |
43 | | # We've tried patching some, but we're not there yet, see #46719 |
44 | | use_parallel_build no |
45 | | |
46 | 43 | configure.ccache no |
47 | 44 | configure.perl /usr/bin/perl |
48 | 45 | configure.cmd ./Configure |
49 | | configure.args -L${prefix}/lib \ |
| 46 | configure.args -L${prefix}/lib \ |
50 | 47 | no-krb5 \ |
51 | | --openssldir=${prefix}/etc/openssl \ |
| 48 | --openssldir=${prefix}/etc/openssl \ |
52 | 49 | shared \ |
53 | 50 | zlib |
54 | 51 | # Use SDK if necessary. |
… |
… |
if {${configure.sdkroot} ne ""} { |
57 | 54 | -Wl,-syslibroot,${configure.sdkroot} |
58 | 55 | } |
59 | 56 | |
60 | | destroot.args MANDIR=${prefix}/share/man MANSUFFIX=ssl |
61 | | destroot.destdir INSTALL_PREFIX=${destroot} |
62 | | |
63 | | test.run yes |
64 | | test.dir ${worksrcpath}/test |
65 | | test.target alltests |
66 | | |
67 | | livecheck.type regex |
68 | | livecheck.url ${master_sites} |
69 | | livecheck.regex ${name}-(\[0-9.\]+\[a-z\]?)\\.tar\\.gz |
70 | | |
71 | | # code for universal build |
| 57 | set merger_arch_compiler no |
72 | 58 | array set merger_configure_args { |
73 | 59 | ppc darwin-ppc-cc |
74 | 60 | i386 darwin-i386-cc |
75 | 61 | ppc64 darwin64-ppc-cc |
76 | 62 | x86_64 darwin64-x86_64-cc |
77 | 63 | } |
| 64 | # Don't use i386 assembly on Tiger (#38015, #43303). |
78 | 65 | platform darwin 8 { |
79 | | append merger_configure_args(i386) " " no-asm |
| 66 | append merger_configure_args(i386) { no-asm} |
80 | 67 | } |
| 68 | # Don't use x86-64 assembly on Leopard. |
| 69 | platform darwin 9 { |
| 70 | append merger_configure_args(x86_64) { no-asm} |
| 71 | } |
| 72 | # Don't pass --host to configure. |
| 73 | array set merger_host {ppc {} i386 {} ppc64 {} x86_64 {}} |
81 | 74 | |
82 | | if {[variant_isset universal]} { |
83 | | set merger_arch_compiler "no" |
| 75 | if {![variant_isset universal] |
| 76 | && [info exists merger_configure_args(${configure.build_arch})]} { |
| 77 | configure.args-append $merger_configure_args(${configure.build_arch}) |
| 78 | } |
| 79 | configure.universal_args-delete --disable-dependency-tracking |
84 | 80 | |
85 | | configure.universal_args-delete --disable-dependency-tracking |
| 81 | # Parallel builds don't quite work (#46719). |
| 82 | use_parallel_build no |
| 83 | |
| 84 | test.run yes |
86 | 85 | |
| 86 | if {[variant_isset universal]} { |
87 | 87 | pre-destroot { |
88 | 88 | global merger_dont_diff |
89 | 89 | if {[llength ${universal_archs_to_use}] > 2} { |
90 | 90 | lappend merger_dont_diff ${prefix}/include/openssl/opensslconf.h |
91 | 91 | } |
92 | 92 | } |
93 | | |
94 | | # Do not set --host. |
95 | | array set merger_host { |
96 | | ppc {} |
97 | | i386 {} |
98 | | ppc64 {} |
99 | | x86_64 {} |
100 | | } |
101 | | } elseif {[info exists merger_configure_args($build_arch)]} { |
102 | | configure.args-append $merger_configure_args($build_arch) |
103 | 93 | } |
104 | 94 | |
| 95 | destroot.args MANDIR=${prefix}/share/man MANSUFFIX=ssl |
| 96 | destroot.destdir INSTALL_PREFIX=${destroot} |
| 97 | |
105 | 98 | variant rfc3779 description {enable RFC 3779: X.509 Extensions for IP Addresses and AS Identifiers} { |
106 | 99 | configure.args-append enable-rfc3779 |
107 | 100 | } |
| 101 | |
| 102 | livecheck.type regex |
| 103 | livecheck.url [lindex ${master_sites} 0] |
| 104 | livecheck.regex ${name}-(\[0-9.\]+\[a-z\]?)\\.tar\\.gz |