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

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

openssl: disable parallel builds, #46719

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