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

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

port: openssl; drop maintainership

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