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

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

version 0.9.8m

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.7 KB
Line 
1# $Id: Portfile 64287 2010-02-28 13:22:10Z mww@macports.org $
2
3PortSystem 1.0
4PortGroup  muniversal 1.0
5
6name                    openssl
7version                 0.9.8m
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     898bf125370926d5f692a2201124f8ec \
25                    sha1    2511c709a47f34d5fa6cd1a1c9cb1699bdffa912 \
26                    rmd160  0296af151993008526b4f2b3a6810e20c4ad3759
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.type  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 on ppc tiger, add sysroot
70        if {${os.arch} == "powerpc" && ${os.major} == "8"} {
71            reinplace "s|\\(-arch \[_a-zA-Z0-9\]*\\)|\\1 -isysroot ${developer_dir}/SDKs/MacOSX10.4u.sdk|" ${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
80        pre-destroot {
81                global merger_dont_diff
82                if { [llength ${universal_archs_to_use}] > 2 } {
83                        lappend merger_dont_diff ${prefix}/include/openssl/opensslconf.h
84                }
85        }
86
87        # Do not set --host.
88        array set merger_host {
89                ppc     ""
90                i386    ""
91                ppc64   ""
92                x86_64  ""
93        }
94} elseif {[info exists build_arch] && [info exists merger_configure_args($build_arch)]} {
95    configure.cmd           ./Configure
96    configure.args-append   $merger_configure_args($build_arch)
97}
98
99# the test suite can only be run *after* destrooting
100#    test.run            yes
101#    test.dir            ${worksrcpath}/test
102#    test.target         alltests
Note: See TracBrowser for help on using the repository browser.