Ticket #37339: OpenCV-Portfile.diff.diff
File OpenCV-Portfile.diff.diff, 1.2 KB (added by cooljeanius (Eric Gallager), 12 years ago) |
---|
-
/Users/egall/Downloads/graphics/opencv/OpenCV-Portfile.diff
old new 1 --- Portfile.orig 2013-01-19 18:30:36.000000000 -05002 +++ Portfile 2013-01-19 18:33:44.000000000 -05003 @@ -1 39,6 +139,10@@1 --- /Users/egall/Downloads/graphics/opencv/Portfile.orig 2013-02-28 15:22:43.000000000 -0500 2 +++ /Users/egall/Downloads/graphics/opencv/Portfile 2013-02-28 15:26:54.000000000 -0500 3 @@ -148,6 +148,12 @@ 4 4 } 5 5 6 6 variant opencl description {Enable OpenCL support.} { 7 + if {${os.platform} == "darwin" && ${os.major} < 11} { 8 + ui_error "The OpenCL variant only works with Mac OS X 10.7 Lion or later." 9 + return -code error "incompatible Mac OS X version" 7 + pre-configure { 8 + if {${os.platform} == "darwin" && ${os.major} < 11} { 9 + ui_error "The OpenCL variant only works with OS X 10.7 Lion or later." 10 + return -code error "incompatible OS X version" 11 + } 10 12 + } 11 13 configure.args-delete -DWITH_OPENCL=OFF 12 14 configure.args-append -DWITH_OPENCL=ON