Ignore:
Timestamp:
Feb 5, 2015, 8:51:25 PM (3 years ago)
Author:
larryv@…
Message:

openssl: Add modeline, rearrange, reformat

Might as well make myself at home.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/devel/openssl/Portfile

    r132605 r132606  
     1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
    12# $Id$
    23
    3 PortSystem 1.0
    4 PortGroup  muniversal 1.0
     4PortSystem          1.0
     5PortGroup           muniversal 1.0
    56
    67name                openssl
     8epoch               1
    79version             1.0.1k
    8 epoch               1
    910
    1011# At least the following ports statically link OpenSSL and need to be revbumped
     
    1718# These lists aren't exhaustive. Feel free to add more entries as you find them.
    1819
     20categories          devel security
    1921platforms           darwin
    20 categories          devel security
     22license             OpenSSL SSLeay
    2123maintainers         larryv openmaintainer
     24
     25description         OpenSSL SSL/TLS cryptography library
     26long_description    The OpenSSL Project is a collaborative effort to \
     27                    develop a robust, commercial-grade, full-featured, \
     28                    and Open Source toolkit implementing the Secure \
     29                    Sockets Layer (SSL v2/v3) and Transport Layer \
     30                    Security (TLS v1) protocols as well as \
     31                    a full-strength general purpose cryptography \
     32                    library.
    2233homepage            http://www.openssl.org/
    23 license             OpenSSL SSLeay
    24 description         OpenSSL SSL/TLS cryptography library
    2534
    26 long_description \
    27     The OpenSSL Project is a collaborative effort to develop a robust, \
    28     commercial-grade, full-featured, and Open Source toolkit implementing \
    29     the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security \
    30     (TLS v1) protocols as well as a full-strength general purpose \
    31     cryptography library.
     35depends_lib         port:zlib
    3236
    3337master_sites        http://www.openssl.org/source/
     
    3741                    sha256  8f9faeaebad088e772f4ef5e38252d472be4d878c6b3a2718c10a4fcebe7a41c
    3842
    39 depends_lib         port:zlib
    40 
    41 patchfiles          patch-Makefile.org.diff patch-crypto-Makefile.diff \
     43patchfiles          patch-bn_internal.pod.diff \
     44                    patch-Configure.diff \
     45                    patch-crypto-Makefile.diff \
    4246                    patch-Makefile.org-parallel.diff \
    43                     patch-bn_internal.pod.diff patch-Configure.diff
    44 
     47                    patch-Makefile.org.diff
    4548post-patch {
    4649    # Ensure that the correct compiler is used
    4750    reinplace "s|cc:|${configure.cc}:|" ${worksrcpath}/Configure
    4851    # use SDK if necessary
    49     if {${configure.sdkroot} != ""} {
     52    if {${configure.sdkroot} ne ""} {
    5053        reinplace "s|\\(-arch \[_a-zA-Z0-9\]*\\)|\\1 -isysroot ${configure.sdkroot}|" ${worksrcpath}/Configure
    5154    }
    5255}
    5356
     57configure.ccache    no
    5458configure.cmd       ./Configure
    55 configure.args      -L${prefix}/lib --openssldir=${prefix}/etc/openssl zlib no-krb5 shared
    56 configure.ccache    no
     59configure.args      -L${prefix}/lib \
     60                    no-krb5 \
     61                    --openssldir=${prefix}/etc/openssl \
     62                    shared \
     63                    zlib
     64platform darwin 8 i386 {
     65    configure.args-append   no-asm
     66}
    5767
     68destroot.args       MANDIR=${prefix}/share/man MANSUFFIX=ssl
    5869destroot.destdir    INSTALL_PREFIX=${destroot}
    59 destroot.args       MANDIR=${prefix}/share/man MANSUFFIX=ssl
    6070
    6171test.run            yes
     
    6777livecheck.regex     ${name}-(\[0-9.\]+\[a-z\]?)\\.tar\\.gz
    6878
    69 variant rfc3779 description {enable RFC 3779: X.509 Extensions for IP Addresses and AS Identifiers} {
    70     configure.args-append    enable-rfc3779
     79# code for universal build
     80array set merger_configure_args {
     81    ppc     darwin-ppc-cc
     82    i386    darwin-i386-cc
     83    ppc64   darwin64-ppc-cc
     84    x86_64  darwin64-x86_64-cc
    7185}
    7286
    73 # code for universal build
    74 array set merger_configure_args {
    75     ppc    darwin-ppc-cc
    76     i386   darwin-i386-cc
    77     ppc64  darwin64-ppc-cc
    78     x86_64 darwin64-x86_64-cc
    79 }
    80 
    81 if { [variant_isset universal] } {
     87if {[variant_isset universal]} {
    8288    set merger_arch_compiler "no"
    8389
     
    8692    pre-destroot {
    8793        global merger_dont_diff
    88         if { [llength ${universal_archs_to_use}] > 2 } {
     94        if {[llength ${universal_archs_to_use}] > 2} {
    8995            lappend merger_dont_diff ${prefix}/include/openssl/opensslconf.h
    9096        }
     
    9399    # Do not set --host.
    94100    array set merger_host {
    95         ppc    ""
    96         i386   ""
    97         ppc64  ""
    98         x86_64 ""
     101        ppc     {}
     102        i386    {}
     103        ppc64   {}
     104        x86_64  {}
    99105    }
    100106} elseif {[info exists merger_configure_args($build_arch)]} {
     
    102108}
    103109
    104 platform darwin 8 i386 {
    105     configure.args-append no-asm
     110variant rfc3779 description {enable RFC 3779: X.509 Extensions for IP Addresses and AS Identifiers} {
     111    configure.args-append   enable-rfc3779
    106112}
Note: See TracChangeset for help on using the changeset viewer.