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

Last change on this file since 81559 was 81559, checked in by dports@…, 6 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
Line 
1# $Id: Portfile 81559 2011-08-01 23:47:37Z dports@macports.org $
2
3PortSystem 1.0
4PortGroup  muniversal 1.0
5
6name                    openssl
7version                 1.0.0d
8revision                0
9epoch                   1
10platforms               darwin freebsd
11categories              devel security
12maintainers             mww
13homepage                http://www.openssl.org/
14license                 OpenSSL SSLeay
15description             OpenSSL SSL/TLS cryptography library
16
17# Binary package archive is currently broken; clear archive_sites to
18# force a source build. (see #30373)
19archive_sites
20
21long_description \
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.
27
28master_sites    http://www.openssl.org/source/
29checksums           md5     40b6ea380cc8a5bf9734c2f8bf7e701e \
30                    sha1    32ca934f380a547061ddab7221b1a34e4e07e8d5 \
31                    rmd160  0c6cdf0659d88bf4dbc6d0394059a47a01fe6846
32
33depends_lib             port:zlib
34
35platform darwin {
36        patchfiles      patch-Makefile.org.diff patch-crypto-Makefile.diff
37}
38
39configure.cmd   ./config
40configure.args  -L${prefix}/lib --openssldir=${prefix}/etc/openssl zlib no-asm no-krb5 shared
41configure.ccache        no
42
43variant rfc3779 description {enable RFC 3779: X.509 Extensions for IP Addresses and AS Identifiers} {
44        configure.args-append   enable-rfc3779
45}
46
47use_parallel_build      no
48
49destroot.destdir        INSTALL_PREFIX=${destroot}
50destroot.args           MANDIR=${prefix}/share/man MANSUFFIX=ssl
51
52test.run                yes
53
54livecheck.type  regex
55livecheck.url   ${master_sites}
56livecheck.regex ${name}-(\[0-9.\]+\[a-z\]?)\\.tar\\.gz
57
58post-patch {
59        # Ensure that the correct compiler is used
60        reinplace "s|cc:|${configure.cc}:|" ${worksrcpath}/Configure
61        # use SDK if necessary
62        if {${configure.sdkroot} != ""} {
63                reinplace "s|\\(-arch \[_a-zA-Z0-9\]*\\)|\\1 -isysroot ${configure.sdkroot}|" ${worksrcpath}/Configure
64        }
65}
66
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
74if { [variant_isset universal] } {
75        configure.cmd   ./Configure
76
77        set merger_arch_compiler "no"
78
79        configure.universal_args-delete --disable-dependency-tracking
80        configure.args-delete  --disable-dependency-tracking
81
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
86                }
87        }
88
89        # Do not set --host.
90        array set merger_host {
91                ppc     ""
92                i386    ""
93                ppc64   ""
94                x86_64  ""
95        }
96} elseif {[info exists merger_configure_args($build_arch)]} {
97    configure.cmd           ./Configure
98    configure.args-append   $merger_configure_args($build_arch)
99}
100
101# the test suite can only be run *after* destrooting
102    test.run            yes
103    test.dir            ${worksrcpath}/test
104    test.target         alltests
Note: See TracBrowser for help on using the repository browser.