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

Last change on this file since 89938 was 89938, checked in by jeremyhu@…, 5 years ago

openssl: Fix bad encoding. Dev timeout.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.0 KB
Line 
1# $Id: Portfile 89938 2012-02-16 04:41:57Z jeremyhu@macports.org $
2
3PortSystem 1.0
4PortGroup  muniversal 1.0
5
6name                openssl
7version             1.0.0g
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     07ecbe4324f140d157478637d6beccf1 \
25                    sha1    2b517baada2338663c27314cb922f9755e73e07f \
26                    rmd160  142ac92dee03b964462321ad60655a374ee36380 \
27                    sha256  905106a1505e7d9f7c36ee81408d3aa3d41aac291a9603d0c290c9530c92fc2c
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.