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

Last change on this file since 92268 was 92268, checked in by jmr@…, 5 years ago

openssl: fix build on ppc (#34135, maintainer timeout)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.1 KB
Line 
1# $Id: Portfile 92268 2012-04-23 15:38:12Z jmr@macports.org $
2
3PortSystem 1.0
4PortGroup  muniversal 1.0
5
6name                openssl
7version             1.0.1a
8epoch               1
9revision            0
10platforms           darwin
11categories          devel security
12maintainers         mww
13homepage            http://www.openssl.org/
14license             OpenSSL SSLeay
15description         OpenSSL SSL/TLS cryptography library
16
17long_description \
18    The OpenSSL Project is a collaborative effort to develop a robust, \
19    commercial-grade, full-featured, and Open Source toolkit implementing \
20    the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security \
21    (TLS v1) protocols as well as a full-strength general purpose \
22    cryptography library.
23
24master_sites        http://www.openssl.org/source/
25checksums           md5     a0104320c0997cd33e18b8ea798609d1 \
26                    sha1    b7c4608c36fa84bfcce39baba5afacd65184be5b \
27                    rmd160  9b55ecfd5c804eda4d0f475263937fb1d5d77195 \
28                    sha256  d3487e09d891c772cf946273a3bb0ca47479e7941be6d822274320e7cfcc361b
29
30depends_lib         port:zlib
31
32patchfiles          patch-Makefile.org.diff patch-crypto-Makefile.diff \
33                    patch-bn_internal.pod.diff patch-Configure.diff \
34                    openssl_patchset_22455.diff
35# openssl_patchset_22455.diff is for ticket #34135
36post-patch {
37    # Ensure that the correct compiler is used
38    reinplace "s|cc:|${configure.cc}:|" ${worksrcpath}/Configure
39    # use SDK if necessary
40    if {${configure.sdkroot} != ""} {
41        reinplace "s|\\(-arch \[_a-zA-Z0-9\]*\\)|\\1 -isysroot ${configure.sdkroot}|" ${worksrcpath}/Configure
42    }
43}
44
45configure.cmd       ./config
46configure.args      -L${prefix}/lib --openssldir=${prefix}/etc/openssl zlib no-krb5 shared no-asm
47configure.ccache    no
48
49use_parallel_build  no
50
51destroot.destdir    INSTALL_PREFIX=${destroot}
52destroot.args       MANDIR=${prefix}/share/man MANSUFFIX=ssl
53
54test.run            yes
55test.dir            ${worksrcpath}/test
56test.target         alltests
57
58livecheck.type      regex
59livecheck.url       ${master_sites}
60livecheck.regex     ${name}-(\[0-9.\]+\[a-z\]?)\\.tar\\.gz
61
62variant rfc3779 description {enable RFC 3779: X.509 Extensions for IP Addresses and AS Identifiers} {
63    configure.args-append    enable-rfc3779
64}
65
66# code for universal build
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
Note: See TracBrowser for help on using the repository browser.