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

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

openssl: Update to 1.0.2 (#46657); revbump dependents

  • The configure script reads CC from the environment now, so we don't have to patch it in.
  • It also passes -isysroot and -Wl to the compiler and linker as appropriate, so we don't have to patch in SDK support either.
  • Without any reinplace-ing going on, there's no point in patching out that copyright character.
  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.5 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 132610 2015-02-05 21:50:37Z larryv@macports.org $
3
4PortSystem          1.0
5PortGroup           muniversal 1.0
6
7name                openssl
8epoch               1
9version             1.0.2
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     38373013fc85c790aabf8837969c5eba \
39                    sha1    2f264f7f6bb973af444cd9fc6ee65c8588f610cc \
40                    rmd160  a5452cd1fd380dcbc1dd53d8e50da6ec632ebd6e \
41                    sha256  8c48baf3babe0d505d16cfc0cf272589c66d3624264098213db0fb00034728e9
42
43patchfiles          patch-bn_internal.pod.diff \
44                    patch-crypto-Makefile.diff \
45                    patch-Makefile.org-parallel.diff
46
47configure.ccache    no
48configure.perl      /usr/bin/perl
49configure.cmd       ./Configure
50configure.args      -L${prefix}/lib \
51                    no-krb5 \
52                    --openssldir=${prefix}/etc/openssl \
53                    shared \
54                    zlib
55# Use SDK if necessary.
56if {${configure.sdkroot} ne ""} {
57    configure.args-append   '-isysroot ${configure.sdkroot}' \
58                            -Wl,-syslibroot,${configure.sdkroot}
59}
60platform darwin 8 i386 {
61    configure.args-append   no-asm
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}
82
83if {[variant_isset universal]} {
84    set merger_arch_compiler "no"
85
86    configure.universal_args-delete --disable-dependency-tracking
87
88    pre-destroot {
89        global merger_dont_diff
90        if {[llength ${universal_archs_to_use}] > 2} {
91            lappend merger_dont_diff ${prefix}/include/openssl/opensslconf.h
92        }
93    }
94
95    # Do not set --host.
96    array set merger_host {
97        ppc     {}
98        i386    {}
99        ppc64   {}
100        x86_64  {}
101    }
102} elseif {[info exists merger_configure_args($build_arch)]} {
103    configure.args-append   $merger_configure_args($build_arch)
104}
105
106variant rfc3779 description {enable RFC 3779: X.509 Extensions for IP Addresses and AS Identifiers} {
107    configure.args-append   enable-rfc3779
108}
Note: See TracBrowser for help on using the repository browser.