Ticket #35148: Portfile-gegl.diff

File Portfile-gegl.diff, 858 bytes (added by nerdling (Jeremy Lavergne), 12 years ago)

suggested patch

  • Portfile

     
    4545    port:lensfun
    4646
    4747patchfiles     patch-configure.diff
     48post-patch {
     49    if {${os.major} < 10} {
     50        foreach header [glob ${worksrcpath}/{,*/,*/*/}*.h] {
     51            reinplace "s|__MAC_10_6|__MAC_NA|g" ${header}
     52            reinplace "s|AVAILABLE_MAC_OS_X_VERSION_10_\\(.\\)_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_6|AVAILABLE_MAC_OS_X_VERSION_10_\\1_AND_LATER|" ${header}
     53            reinplace "s|AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER|__attribute__((unavailable))|g" ${header}
     54        }
     55        reinplace s|OpenGL/CGLDevice.h|OpenGL/CGLTypes.h| ${worksrcpath}/gegl/opencl/cl_gl.h
     56    }
     57}
    4858
    4959configure.args  --disable-docs \
    5060                --enable-introspection=no \