Changeset 99378


Ignore:
Timestamp:
Nov 4, 2012, 4:46:47 AM (12 years ago)
Author:
ryandesign@…
Message:

unrar: modernize how we get the -arch flags

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/archivers/unrar/Portfile

    r99374 r99378  
    3131use_configure   no
    3232
    33 set CXXFLAGS        ${configure.cxxflags}
    34 set LDFLAGS         ${configure.ldflags}
    35 if {[variant_isset universal]} {
    36     append CXXFLAGS    " ${configure.universal_cxxflags}"
    37     append LDFLAGS     " ${configure.universal_ldflags}"
    38 } else {
    39     append CXXFLAGS    " ${configure.cxx_archflags}"
    40     append LDFLAGS     " ${configure.cc_archflags}"
    41 }
     33variant universal {}
    4234
    4335if {[tbool configure.ccache]} {
     
    4537}
    4638
    47 build.env-append CXX="[join ${configure.cxx} " "]"
    48 build.env-append CXXFLAGS="${CXXFLAGS}"
    49 build.env-append LDFLAGS="${LDFLAGS}"
     39build.env-append    CXX="[join ${configure.cxx}]" \
     40                    CXXFLAGS="${configure.cxxflags} [get_canonical_archflags cxx]" \
     41                    LDFLAGS="${configure.ldflags} [get_canonical_archflags ld]"
     42
    5043build.args      -f makefile.unix
    5144
     
    5851}
    5952
    60 variant universal {}
    61 
    6253livecheck.type  regex
    6354livecheck.url   ${homepage}rar_add.htm
Note: See TracChangeset for help on using the changeset viewer.