Ticket #37339: OpenCV-Portfile.diff

File OpenCV-Portfile.diff, 498 bytes (added by cooljeanius (Eric Gallager), 12 years ago)

patch that could be applied to OpenCV's portfile

  • Portfile

    old new  
    139139}
    140140
    141141variant opencl description {Enable OpenCL support.} {
     142    if {${os.platform} == "darwin" && ${os.major} < 11} {
     143        ui_error "The OpenCL variant only works with Mac OS X 10.7 Lion or later."
     144        return -code error "incompatible Mac OS X version"
     145    }
    142146    configure.args-delete       -DWITH_OPENCL=OFF
    143147    configure.args-append       -DWITH_OPENCL=ON
    144148}