[126400] trunk/dports/graphics/opencv/Portfile

stromnov at macports.org stromnov at macports.org
Thu Oct 9 04:52:07 PDT 2014


Revision: 126400
          https://trac.macports.org/changeset/126400
Author:   stromnov at macports.org
Date:     2014-10-09 04:52:07 -0700 (Thu, 09 Oct 2014)
Log Message:
-----------
opencv: add qt5 and vtk variants

Modified Paths:
--------------
    trunk/dports/graphics/opencv/Portfile

Modified: trunk/dports/graphics/opencv/Portfile
===================================================================
--- trunk/dports/graphics/opencv/Portfile	2014-10-09 11:30:23 UTC (rev 126399)
+++ trunk/dports/graphics/opencv/Portfile	2014-10-09 11:52:07 UTC (rev 126400)
@@ -65,12 +65,14 @@
                     -DWITH_CARBON=OFF \
                     -DWITH_CUBLAS=OFF \
                     -DWITH_CUDA=OFF \
+                    -DWITH_VTK=OFF \
                     -DWITH_CUFFT=OFF \
+                    -DWITH_CUBLAS=OFF \
                     -DWITH_EIGEN=OFF \
                     -DWITH_FFMPEG=ON \
                     -DWITH_GSTREAMER=OFF \
                     -DWITH_GTK=OFF \
-                    -DWITH_IMAGEIO=OFF \
+                    -DWITH_IMAGEIO=ON \
                     -DWITH_IPP=OFF \
                     -DWITH_JASPER=ON \
                     -DWITH_JPEG=ON \
@@ -184,12 +186,18 @@
                             -DHAVE_DC1394_2=ON
 }
 
-variant qt4 description {Build with Qt Backend support.} {
+variant qt4 conflicts qt5 description {Build with Qt4 Backend support.} {
     PortGroup               qt4 1.0
     configure.args-delete   -DWITH_QT=OFF
     configure.args-append   -DWITH_QT=ON
 }
 
+variant qt5 conflicts qt4 description {Build with Qt5 Backend support.} {
+    PortGroup               qt5 1.0
+    configure.args-delete   -DWITH_QT=OFF
+    configure.args-append   -DWITH_QT=ON
+}
+
 variant java description {Add Java bindings.} {
     depends_build-append    port:apache-ant
     patchfiles-delete       patch-modules_java_CMakeLists.txt.diff
@@ -235,6 +243,12 @@
     lappend opencv_linker_libs "-ltbb" "-ltbbmalloc"
 }
 
+variant vtk description {Include VTK support.} {
+    depends_lib-append      port:vtk
+    configure.args-delete   -DWITH_VTK=OFF
+    configure.args-append   -DWITH_VTK=ON
+}
+
 pre-configure {
     configure.args-append   -DOPENCV_LINKER_LIBS=\"[join ${opencv_linker_libs} " "]\"
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20141009/9f6f0f74/attachment.html>


More information about the macports-changes mailing list