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

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

openssl: Update to 1.0.2a

Changelog: https://github.com/openssl/openssl/blob/3df69d3/CHANGES#L5

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.6 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 134158 2015-03-19 15:51:09Z larryv@macports.org $
3
4PortSystem          1.0
5PortGroup           muniversal 1.0
6
7name                openssl
8epoch               1
9version             1.0.2a
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 cal 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     a06c547dac9044161a477211049f60ef \
39                    sha1    46ecd325b8e587fa491f6bb02ad4a9fb9f382f5f \
40                    rmd160  2974a0a8cc469d85a5391a64aa0a2b2c5b00acfa \
41                    sha256  15b6393c20030aab02c8e2fe0243cb1d1d18062f6c095d67bca91871dc7f324a
42
43patchfiles          patch-bn_internal.pod.diff \
44                    patch-crypto-Makefile.diff \
45                    patch-Makefile.org-parallel.diff
46
47# We've tried patching some, but we're not there yet, see #46719
48use_parallel_build  no
49
50configure.ccache    no
51configure.perl      /usr/bin/perl
52configure.cmd       ./Configure
53configure.args      -L${prefix}/lib \
54                    no-krb5 \
55                    --openssldir=${prefix}/etc/openssl \
56                    shared \
57                    zlib
58# Use SDK if necessary.
59if {${configure.sdkroot} ne ""} {
60    configure.args-append   '-isysroot ${configure.sdkroot}' \
61                            -Wl,-syslibroot,${configure.sdkroot}
62}
63
64destroot.args       MANDIR=${prefix}/share/man MANSUFFIX=ssl
65destroot.destdir    INSTALL_PREFIX=${destroot}
66
67test.run            yes
68test.dir            ${worksrcpath}/test
69test.target         alltests
70
71livecheck.type      regex
72livecheck.url       ${master_sites}
73livecheck.regex     ${name}-(\[0-9.\]+\[a-z\]?)\\.tar\\.gz
74
75# code for universal build
76array set merger_configure_args {
77    ppc     darwin-ppc-cc
78    i386    darwin-i386-cc
79    ppc64   darwin64-ppc-cc
80    x86_64  darwin64-x86_64-cc
81}
82platform darwin 8 {
83    append merger_configure_args(i386) " " no-asm
84}
85
86if {[variant_isset universal]} {
87    set merger_arch_compiler "no"
88
89    configure.universal_args-delete --disable-dependency-tracking
90
91    pre-destroot {
92        global merger_dont_diff
93        if {[llength ${universal_archs_to_use}] > 2} {
94            lappend merger_dont_diff ${prefix}/include/openssl/opensslconf.h
95        }
96    }
97
98    # Do not set --host.
99    array set merger_host {
100        ppc     {}
101        i386    {}
102        ppc64   {}
103        x86_64  {}
104    }
105} elseif {[info exists merger_configure_args($build_arch)]} {
106    configure.args-append   $merger_configure_args($build_arch)
107}
108
109variant rfc3779 description {enable RFC 3779: X.509 Extensions for IP Addresses and AS Identifiers} {
110    configure.args-append   enable-rfc3779
111}
Note: See TracBrowser for help on using the repository browser.