1 | # -*- 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 |
---|
2 | # $Id: Portfile 153177 2016-09-26 12:10:57Z cal@macports.org $ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup muniversal 1.0 |
---|
6 | |
---|
7 | name openssl |
---|
8 | epoch 1 |
---|
9 | version 1.0.2j |
---|
10 | |
---|
11 | # Please revbump these ports when updating OpenSSL. |
---|
12 | # - freeradius (#43461) |
---|
13 | # - tor, tor-devel (#44256) |
---|
14 | |
---|
15 | categories devel security |
---|
16 | platforms darwin |
---|
17 | license OpenSSL SSLeay |
---|
18 | maintainers larryv cal openmaintainer |
---|
19 | |
---|
20 | description OpenSSL SSL/TLS cryptography library |
---|
21 | long_description The OpenSSL Project is a collaborative effort to \ |
---|
22 | develop a robust, commercial-grade, full-featured, \ |
---|
23 | and Open Source toolkit implementing the Secure \ |
---|
24 | Sockets Layer (SSL v2/v3) and Transport Layer \ |
---|
25 | Security (TLS v1) protocols as well as \ |
---|
26 | a full-strength general purpose cryptography \ |
---|
27 | library. |
---|
28 | homepage https://www.openssl.org |
---|
29 | |
---|
30 | conflicts libressl libressl-devel |
---|
31 | |
---|
32 | depends_lib port:zlib |
---|
33 | |
---|
34 | # See https://www.openssl.org/source/mirror.html |
---|
35 | master_sites ${homepage}/source \ |
---|
36 | ftp://gd.tuwien.ac.at/infosys/security/openssl/source/ \ |
---|
37 | http://openssl.skazkaforyou.com/source/ \ |
---|
38 | http://mirror.switch.ch/ftp/mirror/openssl/source/ \ |
---|
39 | ftp://ftp.fi.muni.cz/pub/openssl/source/ \ |
---|
40 | ftp://ftp.pca.dfn.de/pub/tools/net/openssl/source/ \ |
---|
41 | http://artfiles.org/openssl.org/source/ \ |
---|
42 | ftp://ftp.linux.hr/pub/openssl/source/ \ |
---|
43 | ftp://guest.kuria.katowice.pl/pub/openssl/source/ |
---|
44 | |
---|
45 | checksums sha1 bdfbdb416942f666865fa48fe13c2d0e588df54f \ |
---|
46 | rmd160 d5be416caf523f3496323dbd05547144348e7854 \ |
---|
47 | sha256 e7aff292be21c259c6af26469c7a9b3ba26e9abaaffd325e3dccc9785256c431 |
---|
48 | |
---|
49 | patchfiles install-headers-HFS+.patch \ |
---|
50 | parallel-building.patch \ |
---|
51 | remove-duplicate-bn_print-doc.patch |
---|
52 | |
---|
53 | configure.ccache no |
---|
54 | configure.perl /usr/bin/perl |
---|
55 | configure.cmd ./Configure |
---|
56 | configure.args -L${prefix}/lib \ |
---|
57 | no-krb5 \ |
---|
58 | --openssldir=${prefix}/etc/openssl \ |
---|
59 | shared \ |
---|
60 | zlib |
---|
61 | # Use SDK if necessary. |
---|
62 | if {${configure.sdkroot} ne ""} { |
---|
63 | configure.args-append '-isysroot ${configure.sdkroot}' \ |
---|
64 | -Wl,-syslibroot,${configure.sdkroot} |
---|
65 | } |
---|
66 | |
---|
67 | set merger_arch_compiler no |
---|
68 | array set merger_configure_args { |
---|
69 | ppc darwin-ppc-cc |
---|
70 | i386 darwin-i386-cc |
---|
71 | ppc64 darwin64-ppc-cc |
---|
72 | x86_64 darwin64-x86_64-cc |
---|
73 | } |
---|
74 | platform darwin { |
---|
75 | # Don't use i386 assembly on Tiger (#38015, #43303). |
---|
76 | if {${os.major} <= 8} { |
---|
77 | append merger_configure_args(i386) { no-asm} |
---|
78 | } |
---|
79 | # Don't use x86-64 assembly on Tiger or Leopard. |
---|
80 | if {${os.major} <= 9} { |
---|
81 | append merger_configure_args(x86_64) { no-asm} |
---|
82 | } |
---|
83 | } |
---|
84 | # Don't pass --host to configure. |
---|
85 | array set merger_host {ppc {} i386 {} ppc64 {} x86_64 {}} |
---|
86 | |
---|
87 | if {![variant_isset universal] |
---|
88 | && [info exists merger_configure_args(${configure.build_arch})]} { |
---|
89 | configure.args-append $merger_configure_args(${configure.build_arch}) |
---|
90 | } |
---|
91 | configure.universal_args-delete --disable-dependency-tracking |
---|
92 | |
---|
93 | # Parallel builds don't quite work (#46719). |
---|
94 | use_parallel_build no |
---|
95 | |
---|
96 | test.run yes |
---|
97 | |
---|
98 | if {[variant_isset universal]} { |
---|
99 | pre-destroot { |
---|
100 | global merger_dont_diff |
---|
101 | if {[llength ${universal_archs_to_use}] > 2} { |
---|
102 | lappend merger_dont_diff ${prefix}/include/openssl/opensslconf.h |
---|
103 | } |
---|
104 | } |
---|
105 | } |
---|
106 | |
---|
107 | destroot.args MANDIR=${prefix}/share/man MANSUFFIX=ssl |
---|
108 | destroot.destdir INSTALL_PREFIX=${destroot} |
---|
109 | |
---|
110 | variant rfc3779 description {enable RFC 3779: X.509 Extensions for IP Addresses and AS Identifiers} { |
---|
111 | configure.args-append enable-rfc3779 |
---|
112 | } |
---|
113 | |
---|
114 | livecheck.type regex |
---|
115 | livecheck.url [lindex ${master_sites} 0] |
---|
116 | livecheck.regex ${name}-(\[0-9.\]+\[a-z\]?)\\.tar\\.gz |
---|