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

Last change on this file since 132610 was 132610, checked in by larryv@…, 4 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
RevLine 
[132606]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
[20286]2# $Id: Portfile 132610 2015-02-05 21:50:37Z larryv@macports.org $
[2140]3
[132606]4PortSystem          1.0
5PortGroup           muniversal 1.0
[37195]6
[84153]7name                openssl
[132606]8epoch               1
[132610]9version             1.0.2
[119240]10
11# At least the following ports statically link OpenSSL and need to be revbumped
[119347]12# for every update of OpenSSL:
[120682]13#  - ...
[119601]14# Although they dynamically link OpenSSL, at least the following ports need to
[119347]15# be revbumped for every update of OpenSSL:
16#  - freeradius
[121745]17#  - tor
[119347]18# These lists aren't exhaustive. Feel free to add more entries as you find them.
[119240]19
[132606]20categories          devel security
[84153]21platforms           darwin
[132606]22license             OpenSSL SSLeay
[132607]23maintainers         larryv cal openmaintainer
[132606]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.
[84153]33homepage            http://www.openssl.org/
[2140]34
[132606]35depends_lib         port:zlib
[2140]36
[84153]37master_sites        http://www.openssl.org/source/
[132610]38checksums           md5     38373013fc85c790aabf8837969c5eba \
39                    sha1    2f264f7f6bb973af444cd9fc6ee65c8588f610cc \
40                    rmd160  a5452cd1fd380dcbc1dd53d8e50da6ec632ebd6e \
41                    sha256  8c48baf3babe0d505d16cfc0cf272589c66d3624264098213db0fb00034728e9
[2140]42
[132606]43patchfiles          patch-bn_internal.pod.diff \
44                    patch-crypto-Makefile.diff \
[132610]45                    patch-Makefile.org-parallel.diff
[2140]46
[132606]47configure.ccache    no
[132609]48configure.perl      /usr/bin/perl
[103623]49configure.cmd       ./Configure
[132606]50configure.args      -L${prefix}/lib \
51                    no-krb5 \
52                    --openssldir=${prefix}/etc/openssl \
53                    shared \
54                    zlib
[132610]55# Use SDK if necessary.
56if {${configure.sdkroot} ne ""} {
57    configure.args-append   '-isysroot ${configure.sdkroot}' \
58                            -Wl,-syslibroot,${configure.sdkroot}
59}
[132606]60platform darwin 8 i386 {
61    configure.args-append   no-asm
62}
[12976]63
[132606]64destroot.args       MANDIR=${prefix}/share/man MANSUFFIX=ssl
[84153]65destroot.destdir    INSTALL_PREFIX=${destroot}
[40210]66
[84153]67test.run            yes
68test.dir            ${worksrcpath}/test
69test.target         alltests
[2140]70
[84153]71livecheck.type      regex
72livecheck.url       ${master_sites}
73livecheck.regex     ${name}-(\[0-9.\]+\[a-z\]?)\\.tar\\.gz
[22506]74
[84153]75# code for universal build
[55462]76array set merger_configure_args {
[132606]77    ppc     darwin-ppc-cc
78    i386    darwin-i386-cc
79    ppc64   darwin64-ppc-cc
80    x86_64  darwin64-x86_64-cc
[55462]81}
82
[132606]83if {[variant_isset universal]} {
[84153]84    set merger_arch_compiler "no"
[49121]85
[84153]86    configure.universal_args-delete --disable-dependency-tracking
[24149]87
[84153]88    pre-destroot {
89        global merger_dont_diff
[132606]90        if {[llength ${universal_archs_to_use}] > 2} {
[84153]91            lappend merger_dont_diff ${prefix}/include/openssl/opensslconf.h
92        }
93    }
[24149]94
[84153]95    # Do not set --host.
96    array set merger_host {
[132606]97        ppc     {}
98        i386    {}
99        ppc64   {}
100        x86_64  {}
[84153]101    }
[69417]102} elseif {[info exists merger_configure_args($build_arch)]} {
[55462]103    configure.args-append   $merger_configure_args($build_arch)
[31959]104}
[24149]105
[132606]106variant rfc3779 description {enable RFC 3779: X.509 Extensions for IP Addresses and AS Identifiers} {
107    configure.args-append   enable-rfc3779
[121879]108}
Note: See TracBrowser for help on using the repository browser.