Ticket #37339: OpenCV-Portfile.2.diff

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

New diff to apply

  • /Users/egall/Downloads/graphics/opencv/Portfile

    old new  
    148148}
    149149
    150150variant opencl description {Enable OpenCL support.} {
     151    pre-configure {
     152        if {${os.platform} == "darwin" && ${os.major} < 11} {
     153            ui_error "The OpenCL variant only works with OS X 10.7 Lion or later."
     154            return -code error "incompatible OS X version"
     155        }
     156    }
    151157    configure.args-delete       -DWITH_OPENCL=OFF
    152158    configure.args-append       -DWITH_OPENCL=ON
    153159}