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

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

update openssl to 1.0.0a and rev bump dependents (#25114, maintainer timeout)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 KB
Line 
1# $Id: Portfile 69520 2010-07-08 20:19:52Z jmr@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
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.\]+\[a-z\]?)\\.tar\\.gz
52
53post-patch {
54        # Ensure that the correct compiler is used
55        reinplace "s|cc:|${configure.cc}:|" ${worksrcpath}/Configure
56        # use SDK if necessary
57        if {${configure.sdkroot} != ""} {
58                reinplace "s|\\(-arch \[_a-zA-Z0-9\]*\\)|\\1 -isysroot ${configure.sdkroot}|" ${worksrcpath}/Configure
59        }
60}
61
62array set merger_configure_args {
63        ppc     darwin-ppc-cc
64        i386    darwin-i386-cc
65        ppc64   darwin64-ppc-cc
66        x86_64  darwin64-x86_64-cc
67}
68
69if { [variant_isset universal] } {
70        configure.cmd   ./Configure
71
72        set merger_arch_compiler "no"
73
74        configure.universal_args-delete --disable-dependency-tracking
75        configure.args-delete  --disable-dependency-tracking
76
77        pre-destroot {
78                global merger_dont_diff
79                if { [llength ${universal_archs_to_use}] > 2 } {
80                        lappend merger_dont_diff ${prefix}/include/openssl/opensslconf.h
81                }
82        }
83
84        # Do not set --host.
85        array set merger_host {
86                ppc     ""
87                i386    ""
88                ppc64   ""
89                x86_64  ""
90        }
91} elseif {[info exists merger_configure_args($build_arch)]} {
92    configure.cmd           ./Configure
93    configure.args-append   $merger_configure_args($build_arch)
94}
95
96# the test suite can only be run *after* destrooting
97#    test.run            yes
98#    test.dir            ${worksrcpath}/test
99#    test.target         alltests
Note: See TracBrowser for help on using the repository browser.