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

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

openssl: version 1.0.1e

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