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

Last change on this file since 135176 was 135176, checked in by jeremyhu@…, 2 years ago

openssl: Address an i386 build failure (#47328)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.4 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 135176 2015-04-18 09:28:47Z jeremyhu@macports.org $
3
4PortSystem          1.0
5PortGroup           muniversal 1.0
6
7name                openssl
8epoch               1
9version             1.0.2a
10
11# Please revbump these ports when updating OpenSSL.
12#  - freeradius (#43461)
13#  - tor (#44256)
14
15categories          devel security
16platforms           darwin
17license             OpenSSL SSLeay
18maintainers         larryv cal openmaintainer
19
20description         OpenSSL SSL/TLS cryptography library
21long_description    The OpenSSL Project is a collaborative effort to \
22                    develop a robust, commercial-grade, full-featured, \
23                    and Open Source toolkit implementing the Secure \
24                    Sockets Layer (SSL v2/v3) and Transport Layer \
25                    Security (TLS v1) protocols as well as \
26                    a full-strength general purpose cryptography \
27                    library.
28homepage            http://www.openssl.org/
29
30depends_lib         port:zlib
31
32master_sites        http://www.openssl.org/source/
33checksums           md5     a06c547dac9044161a477211049f60ef \
34                    sha1    46ecd325b8e587fa491f6bb02ad4a9fb9f382f5f \
35                    rmd160  2974a0a8cc469d85a5391a64aa0a2b2c5b00acfa \
36                    sha256  15b6393c20030aab02c8e2fe0243cb1d1d18062f6c095d67bca91871dc7f324a
37
38patchfiles          patch-bn_internal.pod.diff \
39                    patch-crypto-Makefile.diff \
40                    patch-Makefile.org-parallel.diff \
41                    patch-crypto-perlasm-x86_64-xlate.pl.diff
42
43# We've tried patching some, but we're not there yet, see #46719
44use_parallel_build  no
45
46configure.ccache    no
47configure.perl      /usr/bin/perl
48configure.cmd       ./Configure
49configure.args      -L${prefix}/lib \
50                    no-krb5 \
51                    --openssldir=${prefix}/etc/openssl \
52                    shared \
53                    zlib
54# Use SDK if necessary.
55if {${configure.sdkroot} ne ""} {
56    configure.args-append   '-isysroot ${configure.sdkroot}' \
57                            -Wl,-syslibroot,${configure.sdkroot}
58}
59
60destroot.args       MANDIR=${prefix}/share/man MANSUFFIX=ssl
61destroot.destdir    INSTALL_PREFIX=${destroot}
62
63test.run            yes
64test.dir            ${worksrcpath}/test
65test.target         alltests
66
67livecheck.type      regex
68livecheck.url       ${master_sites}
69livecheck.regex     ${name}-(\[0-9.\]+\[a-z\]?)\\.tar\\.gz
70
71# code for universal build
72array set merger_configure_args {
73    ppc     darwin-ppc-cc
74    i386    darwin-i386-cc
75    ppc64   darwin64-ppc-cc
76    x86_64  darwin64-x86_64-cc
77}
78platform darwin 8 {
79    append merger_configure_args(i386) " " no-asm
80}
81
82if {[variant_isset universal]} {
83    set merger_arch_compiler "no"
84
85    configure.universal_args-delete --disable-dependency-tracking
86
87    pre-destroot {
88        global merger_dont_diff
89        if {[llength ${universal_archs_to_use}] > 2} {
90            lappend merger_dont_diff ${prefix}/include/openssl/opensslconf.h
91        }
92    }
93
94    # Do not set --host.
95    array set merger_host {
96        ppc     {}
97        i386    {}
98        ppc64   {}
99        x86_64  {}
100    }
101} elseif {[info exists merger_configure_args($build_arch)]} {
102    configure.args-append   $merger_configure_args($build_arch)
103}
104
105variant rfc3779 description {enable RFC 3779: X.509 Extensions for IP Addresses and AS Identifiers} {
106    configure.args-append   enable-rfc3779
107}
Note: See TracBrowser for help on using the repository browser.