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

Last change on this file since 148305 was 148305, checked in by mps@…, 17 months ago

openssl: Security update to 1.0.2h (CVE-2016-2105, CVE-2016-2106, CVE-2016-2107, CVE-2016-2108, CVE-2016-2109, CVE-2016-2176), revision bumps for freeradius, tor and tor-devel.

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