| 1 | # $Id: Portfile 103623 2013-03-03 14:46:59Z ryandesign@macports.org $ |
|---|
| 2 | |
|---|
| 3 | PortSystem 1.0 |
|---|
| 4 | PortGroup muniversal 1.0 |
|---|
| 5 | |
|---|
| 6 | name openssl |
|---|
| 7 | version 1.0.1e |
|---|
| 8 | epoch 1 |
|---|
| 9 | revision 1 |
|---|
| 10 | platforms darwin |
|---|
| 11 | categories devel security |
|---|
| 12 | maintainers mww |
|---|
| 13 | homepage http://www.openssl.org/ |
|---|
| 14 | license OpenSSL SSLeay |
|---|
| 15 | description OpenSSL SSL/TLS cryptography library |
|---|
| 16 | |
|---|
| 17 | long_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 | |
|---|
| 24 | master_sites http://www.openssl.org/source/ |
|---|
| 25 | checksums md5 66bf6f10f060d561929de96f9dfe5b8c \ |
|---|
| 26 | sha1 3f1b1223c9e8189bfe4e186d86449775bd903460 \ |
|---|
| 27 | rmd160 380827c16f18bed4f2eb3d54a387c7c089b2b299 \ |
|---|
| 28 | sha256 f74f15e8c8ff11aa3d5bb5f276d202ec18d7246e95f961db76054199c69c1ae3 |
|---|
| 29 | |
|---|
| 30 | depends_lib port:zlib |
|---|
| 31 | |
|---|
| 32 | patchfiles patch-Makefile.org.diff patch-crypto-Makefile.diff \ |
|---|
| 33 | patch-bn_internal.pod.diff patch-Configure.diff |
|---|
| 34 | |
|---|
| 35 | post-patch { |
|---|
| 36 | # Ensure that the correct compiler is used |
|---|
| 37 | reinplace "s|cc:|${configure.cc}:|" ${worksrcpath}/Configure |
|---|
| 38 | # use SDK if necessary |
|---|
| 39 | if {${configure.sdkroot} != ""} { |
|---|
| 40 | reinplace "s|\\(-arch \[_a-zA-Z0-9\]*\\)|\\1 -isysroot ${configure.sdkroot}|" ${worksrcpath}/Configure |
|---|
| 41 | } |
|---|
| 42 | } |
|---|
| 43 | |
|---|
| 44 | configure.cmd ./Configure |
|---|
| 45 | configure.args -L${prefix}/lib --openssldir=${prefix}/etc/openssl zlib no-asm no-krb5 shared |
|---|
| 46 | configure.ccache no |
|---|
| 47 | |
|---|
| 48 | use_parallel_build no |
|---|
| 49 | |
|---|
| 50 | destroot.destdir INSTALL_PREFIX=${destroot} |
|---|
| 51 | destroot.args MANDIR=${prefix}/share/man MANSUFFIX=ssl |
|---|
| 52 | |
|---|
| 53 | test.run yes |
|---|
| 54 | test.dir ${worksrcpath}/test |
|---|
| 55 | test.target alltests |
|---|
| 56 | |
|---|
| 57 | livecheck.type regex |
|---|
| 58 | livecheck.url ${master_sites} |
|---|
| 59 | livecheck.regex ${name}-(\[0-9.\]+\[a-z\]?)\\.tar\\.gz |
|---|
| 60 | |
|---|
| 61 | variant rfc3779 description {enable RFC 3779: X.509 Extensions for IP Addresses and AS Identifiers} { |
|---|
| 62 | configure.args-append enable-rfc3779 |
|---|
| 63 | } |
|---|
| 64 | |
|---|
| 65 | # code for universal build |
|---|
| 66 | array set merger_configure_args { |
|---|
| 67 | ppc darwin-ppc-cc |
|---|
| 68 | i386 darwin-i386-cc |
|---|
| 69 | ppc64 darwin64-ppc-cc |
|---|
| 70 | x86_64 darwin64-x86_64-cc |
|---|
| 71 | } |
|---|
| 72 | |
|---|
| 73 | if { [variant_isset universal] } { |
|---|
| 74 | set merger_arch_compiler "no" |
|---|
| 75 | |
|---|
| 76 | configure.universal_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.args-append $merger_configure_args($build_arch) |
|---|
| 94 | } |
|---|
| 95 | |
|---|