| 48 | post-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 | } |