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

Last change on this file since 145209 was 145209, checked in by raimue@…, 18 months ago

devel/openssl: Update to 1.0.2f

Fixes CVE-2016-0701, CVE-2015-3197.
Adapt clang detection patch for new version.

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