Ticket #35148: gegl-Portfile-altivec.diff

File gegl-Portfile-altivec.diff, 541 bytes (added by mklein-de (Michael Klein), 12 years ago)

add -faltivec to cflags and cxxflags on powerpc

  • Portfile

     
    6767            reinplace "s|AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER|__attribute__((unavailable))|g" ${header}
    6868        }
    6969        reinplace "s|OpenGL/CGLDevice.h|OpenGL/CGLTypes.h|" ${worksrcpath}/gegl/opencl/cl_gl.h
     70        if {${os.arch} == "powerpc"} {
     71            configure.cflags-append "-faltivec"
     72            configure.cxxflags-append "-faltivec"
     73        }
    7074    }
    7175}
    7276