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

Last change on this file since 115627 was 115627, checked in by mww@…, 4 years ago

openssl: version 1.0.1f

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.9 KB
Line 
1# $Id: Portfile 115627 2014-01-07 07:29:36Z mww@macports.org $
2
3PortSystem 1.0
4PortGroup  muniversal 1.0
5
6name                openssl
7version             1.0.1f
8epoch               1
9platforms           darwin
10categories          devel security
11maintainers         mww
12homepage            http://www.openssl.org/
13license             OpenSSL SSLeay
14description         OpenSSL SSL/TLS cryptography library
15
16long_description \
17    The OpenSSL Project is a collaborative effort to develop a robust, \
18    commercial-grade, full-featured, and Open Source toolkit implementing \
19    the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security \
20    (TLS v1) protocols as well as a full-strength general purpose \
21    cryptography library.
22
23master_sites        http://www.openssl.org/source/
24checksums           md5     f26b09c028a0541cab33da697d522b25 \
25                    sha1    9ef09e97dfc9f14ac2c042f3b7e301098794fc0f \
26                    rmd160  db8c07f8753fab2b76118d4c18175290356ed144 \
27                    sha256  6cc2a80b17d64de6b7bac985745fdaba971d54ffd7d38d3556f998d7c0c9cb5a
28
29depends_lib         port:zlib
30
31patchfiles          patch-Makefile.org.diff patch-crypto-Makefile.diff \
32                    patch-bn_internal.pod.diff patch-Configure.diff
33
34post-patch {
35    # Ensure that the correct compiler is used
36    reinplace "s|cc:|${configure.cc}:|" ${worksrcpath}/Configure
37    # use SDK if necessary
38    if {${configure.sdkroot} != ""} {
39        reinplace "s|\\(-arch \[_a-zA-Z0-9\]*\\)|\\1 -isysroot ${configure.sdkroot}|" ${worksrcpath}/Configure
40    }
41}
42
43configure.cmd       ./Configure
44configure.args      -L${prefix}/lib --openssldir=${prefix}/etc/openssl zlib no-krb5 shared
45configure.ccache    no
46
47use_parallel_build  no
48
49destroot.destdir    INSTALL_PREFIX=${destroot}
50destroot.args       MANDIR=${prefix}/share/man MANSUFFIX=ssl
51
52test.run            yes
53test.dir            ${worksrcpath}/test
54test.target         alltests
55
56livecheck.type      regex
57livecheck.url       ${master_sites}
58livecheck.regex     ${name}-(\[0-9.\]+\[a-z\]?)\\.tar\\.gz
59
60variant rfc3779 description {enable RFC 3779: X.509 Extensions for IP Addresses and AS Identifiers} {
61    configure.args-append    enable-rfc3779
62}
63
64# code for universal build
65array set merger_configure_args {
66    ppc    darwin-ppc-cc
67    i386   darwin-i386-cc
68    ppc64  darwin64-ppc-cc
69    x86_64 darwin64-x86_64-cc
70}
71
72if { [variant_isset universal] } {
73    set merger_arch_compiler "no"
74
75    configure.universal_args-delete --disable-dependency-tracking
76
77    pre-destroot {
78        global merger_dont_diff
79        if { [llength ${universal_archs_to_use}] > 2 } {
80            lappend merger_dont_diff ${prefix}/include/openssl/opensslconf.h
81        }
82    }
83
84    # Do not set --host.
85    array set merger_host {
86        ppc    ""
87        i386   ""
88        ppc64  ""
89        x86_64 ""
90    }
91} elseif {[info exists merger_configure_args($build_arch)]} {
92    configure.args-append   $merger_configure_args($build_arch)
93}
94
Note: See TracBrowser for help on using the repository browser.