Ignore:
Timestamp:
Jun 12, 2015, 5:32:25 AM (2 years ago)
Author:
larryv@…
Message:

openssl: Rearrange and reformat

I prefer to group settings according to phase.

File:
1 edited

Legend:

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

    r135176 r137466  
    4141                    patch-crypto-perlasm-x86_64-xlate.pl.diff
    4242
    43 # We've tried patching some, but we're not there yet, see #46719
    44 use_parallel_build  no
    45 
    4643configure.ccache    no
    4744configure.perl      /usr/bin/perl
    4845configure.cmd       ./Configure
    49 configure.args      -L${prefix}/lib \
     46configure.args     -L${prefix}/lib \
    5047                    no-krb5 \
    51                     --openssldir=${prefix}/etc/openssl \
     48                  --openssldir=${prefix}/etc/openssl \
    5249                    shared \
    5350                    zlib
     
    5855}
    5956
    60 destroot.args       MANDIR=${prefix}/share/man MANSUFFIX=ssl
    61 destroot.destdir    INSTALL_PREFIX=${destroot}
    62 
    63 test.run            yes
    64 test.dir            ${worksrcpath}/test
    65 test.target         alltests
    66 
    67 livecheck.type      regex
    68 livecheck.url       ${master_sites}
    69 livecheck.regex     ${name}-(\[0-9.\]+\[a-z\]?)\\.tar\\.gz
    70 
    71 # code for universal build
     57set merger_arch_compiler "no"
    7258array set merger_configure_args {
    7359    ppc     darwin-ppc-cc
     
    7662    x86_64  darwin64-x86_64-cc
    7763}
    78 platform darwin 8 {
    79     append merger_configure_args(i386) " " no-asm
     64platform darwin {
     65    if {${os.major} <= 8} {
     66        append merger_configure_args(i386) " " no-asm
     67    }
    8068}
     69# Do not set --host.
     70array set merger_host {ppc {} i386 {} ppc64 {} x86_64 {}}
     71
     72if {![variant_isset universal]
     73        && [info exists merger_configure_args($build_arch)]} {
     74    configure.args-append $merger_configure_args($build_arch)
     75}
     76configure.universal_args-delete --disable-dependency-tracking
     77
     78# We've tried patching some, but we're not there yet, see #46719
     79use_parallel_build  no
     80
     81test.run            yes
     82test.dir            ${worksrcpath}/test
     83test.target         alltests
    8184
    8285if {[variant_isset universal]} {
    83     set merger_arch_compiler "no"
    84 
    85     configure.universal_args-delete --disable-dependency-tracking
    86 
    8786    pre-destroot {
    8887        global merger_dont_diff
     
    9190        }
    9291    }
     92}
    9393
    94     # Do not set --host.
    95     array set merger_host {
    96         ppc     {}
    97         i386    {}
    98         ppc64   {}
    99         x86_64  {}
    100     }
    101 } elseif {[info exists merger_configure_args($build_arch)]} {
    102     configure.args-append   $merger_configure_args($build_arch)
    103 }
     94destroot.args       MANDIR=${prefix}/share/man MANSUFFIX=ssl
     95destroot.destdir    INSTALL_PREFIX=${destroot}
    10496
    10597variant rfc3779 description {enable RFC 3779: X.509 Extensions for IP Addresses and AS Identifiers} {
    10698    configure.args-append   enable-rfc3779
    10799}
     100
     101livecheck.type      regex
     102livecheck.url       ${master_sites}
     103livecheck.regex     ${name}-(\[0-9.\]+\[a-z\]?)\\.tar\\.gz
Note: See TracChangeset for help on using the changeset viewer.