New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Changeset 79850


Ignore:
Timestamp:
06/27/11 20:58:49 (4 years ago)
Author:
ryandesign@…
Message:

freeimage: actually use the right archs; see #29950

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/graphics/freeimage/Portfile

    r79508 r79850  
    66name                freeimage 
    77version             3.15.0 
     8revision            1 
    89license             FreeImage-1.0 GPL-2 
    910categories          graphics 
     
    2829                    rmd160  5d309d0d8335129d00d6b5455613c89a419ebcac 
    2930 
     31set VERLIBNAME libfreeimage.[lindex [split ${version} .] 0].dylib 
     32 
    3033post-patch { 
    3134    # Libraries extension is ".dylib" on Darwin, not ".so" 
     
    4851} 
    4952 
    50 if { [variant_isset universal] } { 
    51     post-patch { 
    52         reinplace "s|CFLAGS ?= |CFLAGS ?= ${configure.universal_cflags} |g" ${worksrcpath}/Makefile.gnu 
    53         reinplace "s|CXXFLAGS ?= |CXXFLAGS ?= ${configure.universal_cxxflags} |g" ${worksrcpath}/Makefile.gnu 
    54     } 
    55 } else { 
    56     post-patch { 
    57         reinplace "s|CFLAGS ?= |CFLAGS ?= -arch ${build_arch} |g" ${worksrcpath}/Makefile.gnu 
    58         reinplace "s|CXXFLAGS ?= |CXXFLAGS ?= -arch ${build_arch} |g" ${worksrcpath}/Makefile.gnu 
    59     } 
    60 } 
    61  
    6253use_configure       no 
    6354 
    64 set VERLIBNAME libfreeimage.[lindex [split ${version} .] 0].dylib 
     55variant universal {} 
     56if {[variant_isset universal]} { 
     57    set archflags ${configure.universal_cflags} 
     58} else { 
     59    set archflags ${configure.cc_archflags} 
     60} 
    6561 
    6662build.args          -f Makefile.gnu \ 
    6763                    PREFIX=${prefix} \ 
    6864                    VERLIBNAME=${VERLIBNAME} \ 
    69                     CC="${configure.cc}" \ 
    70                     CXX="${configure.cxx}" \ 
     65                    CC="${configure.cc} ${configure.cflags} ${archflags}" \ 
     66                    CXX="${configure.cxx} ${configure.cxxflags} ${archflags}" \ 
    7167                    LDFLAGS="${configure.ldflags}" 
    7268 
     
    9288pre-test { 
    9389    # Use correct compiler and flags when compiling test 
    94     reinplace s:g++:${configure.cxx}: ${test.dir}/Makefile 
     90    reinplace "s:g++:${configure.cxx} ${configure.cxxflags} ${archflags}:" ${test.dir}/Makefile 
    9591 
    9692    # Build the test 
Note: See TracChangeset for help on using the changeset viewer.