Ticket #37339: OpenCV-Portfile.diff.diff

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

Diff between the two diffs

  • /Users/egall/Downloads/graphics/opencv/OpenCV-Portfile.diff

    old new  
    1 --- Portfile.orig       2013-01-19 18:30:36.000000000 -0500
    2 +++ Portfile    2013-01-19 18:33:44.000000000 -0500
    3 @@ -139,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 @@
    44 }
    55 
    66 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+        }
    1012+    }
    1113     configure.args-delete       -DWITH_OPENCL=OFF
    1214     configure.args-append       -DWITH_OPENCL=ON