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

Last change on this file since 81559 was 81559, checked in by dports@…, 7 years ago

openssl: force a source build because the binary package is currently
broken (see #30373)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.8 KB
RevLine 
[20286]1# $Id: Portfile 81559 2011-08-01 23:47:37Z dports@macports.org $
[2140]2
3PortSystem 1.0
[49121]4PortGroup  muniversal 1.0
[37195]5
[2140]6name                    openssl
[75881]7version                 1.0.0d
[73524]8revision                0
[49057]9epoch                   1
[2140]10platforms               darwin freebsd
[3150]11categories              devel security
[29845]12maintainers             mww
[7666]13homepage                http://www.openssl.org/
[75776]14license                 OpenSSL SSLeay
[2140]15description             OpenSSL SSL/TLS cryptography library
16
[81559]17# Binary package archive is currently broken; clear archive_sites to
18# force a source build. (see #30373)
19archive_sites
20
[2140]21long_description \
[12976]22        The OpenSSL Project is a collaborative effort to develop a robust, \
23        commercial-grade, full-featured, and Open Source toolkit implementing \
24        the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security \
25        (TLS v1) protocols as well as a full-strength general purpose \
26        cryptography library.
[2140]27
[12976]28master_sites    http://www.openssl.org/source/
[75881]29checksums           md5     40b6ea380cc8a5bf9734c2f8bf7e701e \
30                    sha1    32ca934f380a547061ddab7221b1a34e4e07e8d5 \
31                    rmd160  0c6cdf0659d88bf4dbc6d0394059a47a01fe6846
[2140]32
[11935]33depends_lib             port:zlib
[2140]34
[26898]35platform darwin {
[37195]36        patchfiles      patch-Makefile.org.diff patch-crypto-Makefile.diff
[12976]37}
[2140]38
[12976]39configure.cmd   ./config
40configure.args  -L${prefix}/lib --openssldir=${prefix}/etc/openssl zlib no-asm no-krb5 shared
[49086]41configure.ccache        no
[12976]42
[37195]43variant rfc3779 description {enable RFC 3779: X.509 Extensions for IP Addresses and AS Identifiers} {
[30661]44        configure.args-append   enable-rfc3779
45}
46
[40210]47use_parallel_build      no
48
[3179]49destroot.destdir        INSTALL_PREFIX=${destroot}
[73018]50destroot.args           MANDIR=${prefix}/share/man MANSUFFIX=ssl
[2140]51
[3576]52test.run                yes
[22506]53
[57375]54livecheck.type  regex
[22546]55livecheck.url   ${master_sites}
[69520]56livecheck.regex ${name}-(\[0-9.\]+\[a-z\]?)\\.tar\\.gz
[24149]57
[49121]58post-patch {
59        # Ensure that the correct compiler is used
60        reinplace "s|cc:|${configure.cc}:|" ${worksrcpath}/Configure
[69417]61        # use SDK if necessary
62        if {${configure.sdkroot} != ""} {
63                reinplace "s|\\(-arch \[_a-zA-Z0-9\]*\\)|\\1 -isysroot ${configure.sdkroot}|" ${worksrcpath}/Configure
64        }
[41928]65}
66
[55462]67array set merger_configure_args {
68        ppc     darwin-ppc-cc
69        i386    darwin-i386-cc
70        ppc64   darwin64-ppc-cc
71        x86_64  darwin64-x86_64-cc
72}
73
[49121]74if { [variant_isset universal] } {
75        configure.cmd   ./Configure
76
77        set merger_arch_compiler "no"
78
[54106]79        configure.universal_args-delete --disable-dependency-tracking
80        configure.args-delete  --disable-dependency-tracking
[24149]81
[49121]82        pre-destroot {
83                global merger_dont_diff
84                if { [llength ${universal_archs_to_use}] > 2 } {
85                        lappend merger_dont_diff ${prefix}/include/openssl/opensslconf.h
[31959]86                }
87        }
[24149]88
[49121]89        # Do not set --host.
90        array set merger_host {
91                ppc     ""
92                i386    ""
93                ppc64   ""
94                x86_64  ""
[31959]95        }
[69417]96} elseif {[info exists merger_configure_args($build_arch)]} {
[55462]97    configure.cmd           ./Configure
98    configure.args-append   $merger_configure_args($build_arch)
[31959]99}
[24149]100
[31959]101# the test suite can only be run *after* destrooting
[74156]102    test.run            yes
103    test.dir            ${worksrcpath}/test
104    test.target         alltests
Note: See TracBrowser for help on using the repository browser.