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

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

openssl: correct license

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.7 KB
Line 
1# $Id: Portfile 75776 2011-02-08 09:46:19Z jmr@macports.org $
2
3PortSystem 1.0
4PortGroup  muniversal 1.0
5
6name                    openssl
7version                 1.0.0c
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
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     ff8fb85610aef328315a9decbb2712e4 \
26                    sha1    5a2d74fa7fe90c80915332404b9700044ef676a1 \
27                    rmd160  3053569d12c55fca80d718044d277bc44358d384
28
29depends_lib             port:zlib
30
31platform darwin {
32        patchfiles      patch-Makefile.org.diff patch-crypto-Makefile.diff
33}
34
35configure.cmd   ./config
36configure.args  -L${prefix}/lib --openssldir=${prefix}/etc/openssl zlib no-asm no-krb5 shared
37configure.ccache        no
38
39variant rfc3779 description {enable RFC 3779: X.509 Extensions for IP Addresses and AS Identifiers} {
40        configure.args-append   enable-rfc3779
41}
42
43use_parallel_build      no
44
45destroot.destdir        INSTALL_PREFIX=${destroot}
46destroot.args           MANDIR=${prefix}/share/man MANSUFFIX=ssl
47
48test.run                yes
49
50livecheck.type  regex
51livecheck.url   ${master_sites}
52livecheck.regex ${name}-(\[0-9.\]+\[a-z\]?)\\.tar\\.gz
53
54post-patch {
55        # Ensure that the correct compiler is used
56        reinplace "s|cc:|${configure.cc}:|" ${worksrcpath}/Configure
57        # use SDK if necessary
58        if {${configure.sdkroot} != ""} {
59                reinplace "s|\\(-arch \[_a-zA-Z0-9\]*\\)|\\1 -isysroot ${configure.sdkroot}|" ${worksrcpath}/Configure
60        }
61}
62
63array set merger_configure_args {
64        ppc     darwin-ppc-cc
65        i386    darwin-i386-cc
66        ppc64   darwin64-ppc-cc
67        x86_64  darwin64-x86_64-cc
68}
69
70if { [variant_isset universal] } {
71        configure.cmd   ./Configure
72
73        set merger_arch_compiler "no"
74
75        configure.universal_args-delete --disable-dependency-tracking
76        configure.args-delete  --disable-dependency-tracking
77
78        pre-destroot {
79                global merger_dont_diff
80                if { [llength ${universal_archs_to_use}] > 2 } {
81                        lappend merger_dont_diff ${prefix}/include/openssl/opensslconf.h
82                }
83        }
84
85        # Do not set --host.
86        array set merger_host {
87                ppc     ""
88                i386    ""
89                ppc64   ""
90                x86_64  ""
91        }
92} elseif {[info exists merger_configure_args($build_arch)]} {
93    configure.cmd           ./Configure
94    configure.args-append   $merger_configure_args($build_arch)
95}
96
97# the test suite can only be run *after* destrooting
98    test.run            yes
99    test.dir            ${worksrcpath}/test
100    test.target         alltests
Note: See TracBrowser for help on using the repository browser.