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

Last change on this file since 143101 was 143101, checked in by larryv@…, 22 months ago

openssl: Update to 1.0.2e (#49897)

Also revbump freeradius, tor, and tor-devel.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.6 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 143101 2015-12-04 02:10:25Z larryv@macports.org $
3
4PortSystem          1.0
5PortGroup           muniversal 1.0
6
7name                openssl
8epoch               1
9version             1.0.2e
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            http://www.openssl.org
29
30conflicts           libressl
31
32depends_lib         port:zlib
33
34master_sites        http://www.openssl.org/source
35checksums           md5     5262bfa25b60ed9de9f28d5d52d77fc5 \
36                    sha1    2c5691496761cb18f98476eefa4d35c835448fb6 \
37                    rmd160  324ed411043364af2ea908124225eece7d604a94 \
38                    sha256  e23ccafdb75cfcde782da0151731aa2185195ac745eea3846133f2e05c0e0bff
39
40patchfiles          install-headers-HFS+.patch \
41                    parallel-building.patch \
42                    remove-duplicate-bn_print-doc.patch \
43                    x86_64-asm-on-i386.patch
44
45configure.ccache    no
46configure.perl      /usr/bin/perl
47configure.cmd       ./Configure
48configure.args     -L${prefix}/lib \
49                    no-krb5 \
50                  --openssldir=${prefix}/etc/openssl \
51                    shared \
52                    zlib
53# Use SDK if necessary.
54if {${configure.sdkroot} ne ""} {
55    configure.args-append   '-isysroot ${configure.sdkroot}' \
56                            -Wl,-syslibroot,${configure.sdkroot}
57}
58
59set merger_arch_compiler no
60array set merger_configure_args {
61    ppc     darwin-ppc-cc
62    i386    darwin-i386-cc
63    ppc64   darwin64-ppc-cc
64    x86_64  darwin64-x86_64-cc
65}
66platform darwin {
67    # Don't use i386 assembly on Tiger (#38015, #43303).
68    if {${os.major} <= 8} {
69        append merger_configure_args(i386) { no-asm}
70    }
71    # Don't use x86-64 assembly on Tiger or Leopard.
72    if {${os.major} <= 9} {
73        append merger_configure_args(x86_64) { no-asm}
74    }
75}
76# Don't pass --host to configure.
77array set merger_host {ppc {} i386 {} ppc64 {} x86_64 {}}
78
79if {![variant_isset universal]
80        && [info exists merger_configure_args(${configure.build_arch})]} {
81    configure.args-append $merger_configure_args(${configure.build_arch})
82}
83configure.universal_args-delete --disable-dependency-tracking
84
85# Parallel builds don't quite work (#46719).
86use_parallel_build  no
87
88test.run            yes
89
90if {[variant_isset universal]} {
91    pre-destroot {
92        global merger_dont_diff
93        if {[llength ${universal_archs_to_use}] > 2} {
94            lappend merger_dont_diff ${prefix}/include/openssl/opensslconf.h
95        }
96    }
97}
98
99destroot.args       MANDIR=${prefix}/share/man MANSUFFIX=ssl
100destroot.destdir    INSTALL_PREFIX=${destroot}
101
102variant rfc3779 description {enable RFC 3779: X.509 Extensions for IP Addresses and AS Identifiers} {
103    configure.args-append   enable-rfc3779
104}
105
106livecheck.type      regex
107livecheck.url       [lindex ${master_sites} 0]
108livecheck.regex     ${name}-(\[0-9.\]+\[a-z\]?)\\.tar\\.gz
Note: See TracBrowser for help on using the repository browser.