source: trunk/dports/devel/openssl/Portfile @ 153049

Last change on this file since 153049 was 153049, checked in by cal@…, 14 months ago

openssl: Add official mirrors

Closes: #51304

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.0 KB
Line 
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 153049 2016-09-22 22:06:57Z cal@macports.org $
3
4PortSystem          1.0
5PortGroup           muniversal 1.0
6
7name                openssl
8epoch               1
9version             1.0.2i
10
11# Please revbump these ports when updating OpenSSL.
12#  - freeradius (#43461)
13#  - tor, tor-devel (#44256)
14
15categories          devel security
16platforms           darwin
17license             OpenSSL SSLeay
18maintainers         larryv cal openmaintainer
19
20description         OpenSSL SSL/TLS cryptography library
21long_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.
28homepage            https://www.openssl.org
29
30conflicts           libressl libressl-devel
31
32depends_lib         port:zlib
33
34# See https://www.openssl.org/source/mirror.html
35master_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
45checksums           rmd160  d33628eea2838e392390a348b516425569308c3b \
46                    sha256  9287487d11c9545b6efb287cdb70535d4e9b284dd10d51441d9b9963d000de6f
47
48patchfiles          install-headers-HFS+.patch \
49                    parallel-building.patch \
50                    remove-duplicate-bn_print-doc.patch
51
52configure.ccache    no
53configure.perl      /usr/bin/perl
54configure.cmd       ./Configure
55configure.args     -L${prefix}/lib \
56                    no-krb5 \
57                  --openssldir=${prefix}/etc/openssl \
58                    shared \
59                    zlib
60# Use SDK if necessary.
61if {${configure.sdkroot} ne ""} {
62    configure.args-append   '-isysroot ${configure.sdkroot}' \
63                            -Wl,-syslibroot,${configure.sdkroot}
64}
65
66set merger_arch_compiler no
67array set merger_configure_args {
68    ppc     darwin-ppc-cc
69    i386    darwin-i386-cc
70    ppc64   darwin64-ppc-cc
71    x86_64  darwin64-x86_64-cc
72}
73platform darwin {
74    # Don't use i386 assembly on Tiger (#38015, #43303).
75    if {${os.major} <= 8} {
76        append merger_configure_args(i386) { no-asm}
77    }
78    # Don't use x86-64 assembly on Tiger or Leopard.
79    if {${os.major} <= 9} {
80        append merger_configure_args(x86_64) { no-asm}
81    }
82}
83# Don't pass --host to configure.
84array set merger_host {ppc {} i386 {} ppc64 {} x86_64 {}}
85
86if {![variant_isset universal]
87        && [info exists merger_configure_args(${configure.build_arch})]} {
88    configure.args-append $merger_configure_args(${configure.build_arch})
89}
90configure.universal_args-delete --disable-dependency-tracking
91
92# Parallel builds don't quite work (#46719).
93use_parallel_build  no
94
95test.run            yes
96
97if {[variant_isset universal]} {
98    pre-destroot {
99        global merger_dont_diff
100        if {[llength ${universal_archs_to_use}] > 2} {
101            lappend merger_dont_diff ${prefix}/include/openssl/opensslconf.h
102        }
103    }
104}
105
106destroot.args       MANDIR=${prefix}/share/man MANSUFFIX=ssl
107destroot.destdir    INSTALL_PREFIX=${destroot}
108
109variant rfc3779 description {enable RFC 3779: X.509 Extensions for IP Addresses and AS Identifiers} {
110    configure.args-append   enable-rfc3779
111}
112
113livecheck.type      regex
114livecheck.url       [lindex ${master_sites} 0]
115livecheck.regex     ${name}-(\[0-9.\]+\[a-z\]?)\\.tar\\.gz
Note: See TracBrowser for help on using the repository browser.