New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Changeset 79508


Ignore:
Timestamp:
06/15/11 21:31:50 (4 years ago)
Author:
mcalhoun@…
Message:

freeimage: Update Version 3.14.1 -> 3.15.0. Add support for build_arch.

Location:
trunk/dports/graphics/freeimage
Files:
1 deleted
1 edited

Legend:

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

    r71145 r79508  
    55 
    66name                freeimage 
    7 version             3.14.1 
     7version             3.15.0 
    88license             FreeImage-1.0 GPL-2 
    99categories          graphics 
     
    2424worksrcdir          FreeImage 
    2525 
    26 checksums           md5     4b43112aa199d8a439e0535b9c25d8a4 \ 
    27                     sha1    cc09671e16460c27242280c2b6100f39974c89e1 \ 
    28                     rmd160  5432f0aa922992ac74e5fefc115c1442bb48ce76 
    29  
    30 patchfiles          patch-Makefile.gnu.diff 
     26checksums           md5     3b4f08e4985b269beb29a2fced1ef888 \ 
     27                    sha1    ec2faa01d1b312aab68d77afe62861759c790100 \ 
     28                    rmd160  5d309d0d8335129d00d6b5455613c89a419ebcac 
    3129 
    3230post-patch { 
     
    4240    # Do not force installation as root 
    4341    reinplace {s/-o root -g root//} ${worksrcpath}/Makefile.gnu 
     42     
     43    # Darwin requires different arguments to build dynamic libraries 
     44    reinplace "s|-Wl,-soname,\$(VERLIBNAME)|-dynamiclib -install_name \$(PREFIX)/lib/\$(VERLIBNAME) -compatibility_version \$(VER_MAJOR) -current_version \$(VER_MAJOR).\$(VER_MINOR)|g" ${worksrcpath}/Makefile.gnu 
     45 
     46    # Darwin does not have a command ldconfig 
     47    reinplace "s|ldconfig||g" ${worksrcpath}/Makefile.gnu 
     48} 
     49 
     50if { [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    } 
    4460} 
    4561 
    4662use_configure       no 
    4763 
    48 set CC "${configure.cc} ${configure.cflags}" 
    49 set CXX "${configure.cxx} ${configure.cxxflags}" 
    50 set LDFLAGS ${configure.ldflags} 
    5164set VERLIBNAME libfreeimage.[lindex [split ${version} .] 0].dylib 
    5265 
    53 build.target        FreeImage 
    5466build.args          -f Makefile.gnu \ 
    5567                    PREFIX=${prefix} \ 
    56                     VERLIBNAME=${VERLIBNAME} 
    57  
    58 pre-build { 
    59     build.args-append \ 
    60         CC="${CC}" \ 
    61         CXX="${CXX}" \ 
    62         LDFLAGS="${LDFLAGS}" 
    63 } 
     68                    VERLIBNAME=${VERLIBNAME} \ 
     69                    CC="${configure.cc}" \ 
     70                    CXX="${configure.cxx}" \ 
     71                    LDFLAGS="${configure.ldflags}" 
    6472 
    6573destroot.args       -f Makefile.gnu \ 
     
    8492pre-test { 
    8593    # Use correct compiler and flags when compiling test 
    86     reinplace s:g++:${CXX}: ${test.dir}/Makefile 
    87  
    88     # Use headers and libraries in source directories as Dist is not used 
    89     reinplace s:-I../Dist/:-I../Source/: ${test.dir}/Makefile 
    90     reinplace s:Dist/:: ${test.dir}/Makefile 
     94    reinplace s:g++:${configure.cxx}: ${test.dir}/Makefile 
    9195 
    9296    # Build the test 
     
    9498} 
    9599 
    96 variant universal { 
    97     append CC " ${configure.universal_cflags}" 
    98     append CXX " ${configure.universal_cxxflags}" 
    99     append LDFLAGS " ${configure.universal_ldflags}" 
    100 } 
    101  
    102100livecheck.type      regex 
    103101livecheck.regex     {FreeImage (\d+(?:\.\d+)*) released} 
Note: See TracChangeset for help on using the changeset viewer.