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

Last change on this file since 119240 was 119240, checked in by cal@…, 3 years ago

openssl: add a note to ensure dovecot2 is revbumped after the next openssl update

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