Ignore:
Timestamp:
Dec 5, 2013, 10:21:52 AM (6 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/math/qrupdate/Portfile

    r110831 r114328  
    4040
    4141# Fortran compilers can not cross-compile
    42 if { ${os.arch}=="i386" } {
     42if {${os.arch} eq "i386"} {
    4343    set universal_archs_supported "i386 x86_64"
    4444} else {
     
    4848post-configure {
    4949    if { ! [variant_isset universal] } {
    50         if { ${build_arch} == "x86_64" || ${build_arch} == "ppc64" } {
     50        if {${build_arch} eq "x86_64" || ${build_arch} eq "ppc64"} {
    5151            reinplace "s|^FFLAGS=|FFLAGS=-m64 |"  ${worksrcpath}/Makeconf
    5252        } else {
     
    5555    } else {
    5656        foreach arch ${universal_archs_to_use} {
    57             if { ${arch}=="x86_64" || ${arch}=="ppc64" } {
     57            if {${arch} eq "x86_64" || ${arch} eq "ppc64"} {
    5858                reinplace "s|^FFLAGS=|FFLAGS=-m64 |"  ${worksrcpath}-${arch}/Makeconf
    5959            } else {
Note: See TracChangeset for help on using the changeset viewer.