Ticket #29950: freeimage-universal.diff

File freeimage-universal.diff, 1.1 KB (added by ejtttje@…, 13 years ago)

patch to fix universal support for freeimage 3.15.0

  • graphics/freeimage/Portfile

    old new  
    55
    66name                freeimage
    77version             3.15.0
     8revision            7
    89license             FreeImage-1.0 GPL-2
    910categories          graphics
    1011platforms           macosx
     
    2728                    sha1    ec2faa01d1b312aab68d77afe62861759c790100 \
    2829                    rmd160  5d309d0d8335129d00d6b5455613c89a419ebcac
    2930
     31universal_variant   yes
     32
    3033post-patch {
    3134    # Libraries extension is ".dylib" on Darwin, not ".so"
    3235    reinplace {s/\.so/.dylib/} ${worksrcpath}/Makefile.gnu
     
    5154    post-patch {
    5255        reinplace "s|CFLAGS ?= |CFLAGS ?= ${configure.universal_cflags} |g" ${worksrcpath}/Makefile.gnu
    5356        reinplace "s|CXXFLAGS ?= |CXXFLAGS ?= ${configure.universal_cxxflags} |g" ${worksrcpath}/Makefile.gnu
     57        reinplace "s|\$(LDFLAGS)|\$(LDFLAGS) ${configure.universal_ldflags}|g" ${worksrcpath}/Makefile.gnu
    5458    }
    5559} else {
    5660    post-patch {