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

Last change on this file since 71212 was 71212, checked in by michaelld@…, 7 years ago

OpenSSL requires 'makedepend' to make depends during build. No rev
bump because it's just a build dependency and if one has already built
it then there's no need to rebuild it (since clearly makedepend is
already installed). Adding in without a ticket because it's such a
simple change.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.7 KB
Line 
1# $Id: Portfile 71212 2010-09-04 15:38:19Z michaelld@macports.org $
2
3PortSystem 1.0
4PortGroup  muniversal 1.0
5
6name                    openssl
7version                 1.0.0a
8epoch                   1
9platforms               darwin freebsd
10categories              devel security
11maintainers             mww
12homepage                http://www.openssl.org/
13license                 BSD
14description             OpenSSL SSL/TLS cryptography library
15
16long_description \
17        The OpenSSL Project is a collaborative effort to develop a robust, \
18        commercial-grade, full-featured, and Open Source toolkit implementing \
19        the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security \
20        (TLS v1) protocols as well as a full-strength general purpose \
21        cryptography library.
22
23master_sites    http://www.openssl.org/source/
24checksums           md5     e3873edfffc783624cfbdb65e2249cbd \
25                    sha1    b837a9f75a51f456bd533690cf04d3d5714812dc \
26                    rmd160  f46ea1d0875ef523662e652f22faf0f0f261f354
27
28depends_lib             port:zlib
29depends_build           port:makedepend
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
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.