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

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

openssl: version 1.0.1

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.0 KB
Line 
1# $Id: Portfile 90798 2012-03-14 19:39:50Z mww@macports.org $
2
3PortSystem 1.0
4PortGroup  muniversal 1.0
5
6name                openssl
7version             1.0.1
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     134f168bc2a8333f19f81d684841710b \
25                    sha1    a6476d33fd38c2e7dfb438d1e3be178cc242c907 \
26                    rmd160  cdbcef61fb31eac52093b8bdaeee7b61ba9644e7 \
27                    sha256  4d9f0a594a9a89b28e1a04a9504c04104f6508ee27ad1e0efdd17a7a6dbbeeee
28
29depends_lib         port:zlib
30
31patchfiles          patch-Makefile.org.diff patch-crypto-Makefile.diff patch-bn_internal.pod.diff patch-Configure.diff
32post-patch {
33    # Ensure that the correct compiler is used
34    reinplace "s|cc:|${configure.cc}:|" ${worksrcpath}/Configure
35    # use SDK if necessary
36    if {${configure.sdkroot} != ""} {
37        reinplace "s|\\(-arch \[_a-zA-Z0-9\]*\\)|\\1 -isysroot ${configure.sdkroot}|" ${worksrcpath}/Configure
38    }
39}
40
41configure.cmd       ./config
42configure.args      -L${prefix}/lib --openssldir=${prefix}/etc/openssl zlib no-asm no-krb5 shared
43configure.ccache    no
44
45use_parallel_build  no
46
47destroot.destdir    INSTALL_PREFIX=${destroot}
48destroot.args       MANDIR=${prefix}/share/man MANSUFFIX=ssl
49
50test.run            yes
51test.dir            ${worksrcpath}/test
52test.target         alltests
53
54livecheck.type      regex
55livecheck.url       ${master_sites}
56livecheck.regex     ${name}-(\[0-9.\]+\[a-z\]?)\\.tar\\.gz
57
58variant rfc3779 description {enable RFC 3779: X.509 Extensions for IP Addresses and AS Identifiers} {
59    configure.args-append    enable-rfc3779
60}
61
62# code for universal build
63array set merger_configure_args {
64    ppc    darwin-ppc-cc
65    i386   darwin-i386-cc
66    ppc64  darwin64-ppc-cc
67    x86_64 darwin64-x86_64-cc
68}
69
70if { [variant_isset universal] } {
71    configure.cmd    ./Configure
72
73    set merger_arch_compiler "no"
74
75    configure.universal_args-delete --disable-dependency-tracking
76    configure.args-delete  --disable-dependency-tracking
77
78    pre-destroot {
79        global merger_dont_diff
80        if { [llength ${universal_archs_to_use}] > 2 } {
81            lappend merger_dont_diff ${prefix}/include/openssl/opensslconf.h
82        }
83    }
84
85    # Do not set --host.
86    array set merger_host {
87        ppc    ""
88        i386   ""
89        ppc64  ""
90        x86_64 ""
91    }
92} elseif {[info exists merger_configure_args($build_arch)]} {
93    configure.cmd           ./Configure
94    configure.args-append   $merger_configure_args($build_arch)
95}
96
Note: See TracBrowser for help on using the repository browser.