Ignore:
Timestamp:
Dec 5, 2013, 10:21:52 AM (5 years ago)
Author:
ryandesign@…
Message:

use eq and ne instead of == and != when comparing ${os.arch}, ${configure.build_arch}, ${build_arch}, and some port-specific variables for referring to architectures

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/security/botan/Portfile

    r114325 r114328  
    3636
    3737if {[info exists build_arch] && ${os.platform} eq "darwin"} {
    38     if {(${build_arch} == "i386")} {
     38    if {(${build_arch} eq "i386")} {
    3939        configure.args-append --cpu=ia32
    4040        build.args CXX="${configure.cxx} -m32"
    41     } elseif {(${build_arch} == "x86_64")} {
     41    } elseif {(${build_arch} eq "x86_64")} {
    4242        configure.args-append --cpu=amd64
    4343        build.args CXX="${configure.cxx} -m64"
    44     } elseif {(${build_arch} == "ppc")} {
     44    } elseif {(${build_arch} eq "ppc")} {
    4545        configure.args-append --cpu=ppc
    4646        build.args CXX="${configure.cxx} -m32"
    47     } elseif {(${build_arch} == "ppc64")} {
     47    } elseif {(${build_arch} eq "ppc64")} {
    4848        configure.args-append --cpu=ppc64
    4949        build.args CXX="${configure.cxx} -m64"
Note: See TracChangeset for help on using the changeset viewer.