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

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

openssl: Fix FTBFS on 10.7, closes #47035

Upstream is at https://github.com/openssl/openssl/issues/494

  • 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 143276 2015-12-09 20:50:02Z cal@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                    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.