Ticket #36041: gimp2-Portfile-altivec.patch

File gimp2-Portfile-altivec.patch, 722 bytes (added by mklein-de (Michael Klein), 12 years ago)

Patch to compile with -faltivec on PowerPC

  • dports/graphics/gimp2/Portfile

    diff --git a/dports/graphics/gimp2/Portfile b/dports/graphics/gimp2/Portfile
    index 9a37f3e..4a7cd25 100644
    a b platform darwin 9 { 
    5858        reinplace "s|-export-symbols-regex.*||g" ${worksrcpath}/plug-ins/pygimp/Makefile.am
    5959        reinplace "s|-export-symbols-regex.*||g" ${worksrcpath}/plug-ins/pygimp/Makefile.in
    6060    }
     61
     62    if {[variant_isset universal]} {
     63        set merger_configure_cflags(ppc) -faltivec
     64        set merger_configure_cxxflags(ppc) -faltivec
     65    } elseif {${build_arch} == "ppc"} {
     66        configure.cflags-append -faltivec
     67        configure.cxxflags-append -faltivec
     68    }
    6169}
    6270
    6371platform darwin 10 {