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

Last change on this file since 56537 was 56537, checked in by mww@…, 9 years ago

add 'license' key

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.9 KB
Line 
1# $Id: Portfile 56537 2009-08-29 21:11:44Z mww@macports.org $
2
3PortSystem 1.0
4PortGroup  muniversal 1.0
5
6name                    openssl
7version                 0.9.8k
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     e555c6d58d276aec7fdc53363e338ab3 \
25                    sha1    3ba079f91d3c1ec90a36dcd1d43857165035703f \
26                    rmd160  496df7a5d33457b0d8e3b930a8e5cf068923182c
27
28depends_lib             port:zlib
29
30platform darwin {
31        patchfiles      patch-Makefile.org.diff patch-crypto-Makefile.diff
32}
33
34configure.cmd   ./config
35configure.args  -L${prefix}/lib --openssldir=${prefix}/etc/openssl zlib no-asm no-krb5 shared
36configure.ccache        no
37
38variant rfc3779 description {enable RFC 3779: X.509 Extensions for IP Addresses and AS Identifiers} {
39        configure.args-append   enable-rfc3779
40}
41
42use_parallel_build      no
43
44destroot.destdir        INSTALL_PREFIX=${destroot}
45destroot.args           MANDIR=${prefix}/share/man
46
47test.run                yes
48
49livecheck.check regex
50livecheck.url   ${master_sites}
51livecheck.regex ${name}-(0.9.8\[a-z\])
52
53post-patch {
54        # Ensure that the correct compiler is used
55        reinplace "s|cc:|${configure.cc}:|" ${worksrcpath}/Configure
56}
57
58array set merger_configure_args {
59        ppc     darwin-ppc-cc
60        i386    darwin-i386-cc
61        ppc64   darwin64-ppc-cc
62        x86_64  darwin64-x86_64-cc
63}
64
65if { [variant_isset universal] } {
66        configure.cmd   ./Configure
67
68        post-patch {
69                # For universal builds, add "-isysroot ${universal_sysroot}" to compiler options
70                if {[info exists universal_sysroot]} {
71                        reinplace "s|\\(-arch \[_a-zA-Z0-9\]*\\)|\\1 -isysroot ${universal_sysroot}|" ${worksrcpath}/Configure
72                }
73        }
74
75        set merger_arch_compiler "no"
76
77        configure.universal_args-delete --disable-dependency-tracking
78        configure.args-delete  --disable-dependency-tracking
79        # workaround for #17865
80        if {![info exists configure.universal_args]} {
81            configure.universal_args
82        }
83        if {![info exists configure.args]} {
84            configure.args
85        }
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 build_arch] && [info exists merger_configure_args($build_arch)]} {
102    configure.cmd           ./Configure
103    configure.args-append   $merger_configure_args($build_arch)
104}
105
106# the test suite can only be run *after* destrooting
107#    test.run            yes
108#    test.dir            ${worksrcpath}/test
109#    test.target         alltests
Note: See TracBrowser for help on using the repository browser.