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

Last change on this file since 132606 was 132606, checked in by larryv@…, 3 years ago

openssl: Add modeline, rearrange, reformat

Might as well make myself at home.

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