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

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

openssl: clean up portfile, remove unnecessary commands (#38212; maintainer timeout)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.9 KB
Line 
1# $Id: Portfile 103623 2013-03-03 14:46:59Z ryandesign@macports.org $
2
3PortSystem 1.0
4PortGroup  muniversal 1.0
5
6name                openssl
7version             1.0.1e
8epoch               1
9revision            1
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       ./Configure
45configure.args      -L${prefix}/lib --openssldir=${prefix}/etc/openssl zlib no-krb5 shared
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    set merger_arch_compiler "no"
75
76    configure.universal_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.args-append   $merger_configure_args($build_arch)
94}
95
Note: See TracBrowser for help on using the repository browser.