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

stromnov at macports.org stromnov at macports.org
Sat Dec 12 12:51:36 PST 2015


Revision: 143463
          https://trac.macports.org/changeset/143463
Author:   stromnov at macports.org
Date:     2015-12-12 12:51:36 -0800 (Sat, 12 Dec 2015)
Log Message:
-----------
opencv: add py35 variant (#49960)

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

Modified: trunk/dports/graphics/opencv/Portfile
===================================================================
--- trunk/dports/graphics/opencv/Portfile	2015-12-12 20:42:50 UTC (rev 143462)
+++ trunk/dports/graphics/opencv/Portfile	2015-12-12 20:51:36 UTC (rev 143463)
@@ -219,7 +219,7 @@
                             -DPYTHON_EXECUTABLE=/usr/bin/python
 }
 
-variant python27 conflicts python34 description {Add Python 2.7 bindings.} {
+variant python27 conflicts python34 python35 description {Add Python 2.7 bindings.} {
     depends_lib-append      port:python27 \
                             port:py27-numpy
     patchfiles-delete       patch-modules_python_CMakeLists.txt.diff
@@ -233,7 +233,7 @@
                             -DPYTHON2_PACKAGES_PATH=${frameworks_dir}/Python.framework/Versions/2.7/lib/python2.7/site-packages
 }
 
-variant python34 conflicts python27 description {Add Python 3.4 bindings.} {
+variant python34 conflicts python27 python35 description {Add Python 3.4 bindings.} {
     depends_lib-append      port:python34 \
                             port:py34-numpy
     patchfiles-delete       patch-modules_python_CMakeLists.txt.diff
@@ -246,6 +246,19 @@
                             -DPYTHON3_PACKAGES_PATH=${frameworks_dir}/Python.framework/Versions/3.4/lib/python3.4/site-packages
 }
 
+variant python35 conflicts python27 python34 description {Add Python 3.5 bindings.} {
+    depends_lib-append      port:python35 \
+                            port:py35-numpy
+    patchfiles-delete       patch-modules_python_CMakeLists.txt.diff
+    configure.args-delete   -DINSTALL_PYTHON_EXAMPLES=OFF \
+                            -DPYTHON_EXECUTABLE=OFF
+    configure.args-append   -DINSTALL_PYTHON_EXAMPLES=ON \
+                            -DPYTHON3_EXECUTABLE=${prefix}/bin/python3.5 \
+                            -DPYTHON3_LIBRARY=${prefix}/lib/libpython3.5.dylib \
+                            -DPYTHON3_INCLUDE_DIR=${frameworks_dir}/Python.framework/Versions/3.5/Headers \
+                            -DPYTHON3_PACKAGES_PATH=${frameworks_dir}/Python.framework/Versions/3.5/lib/python3.5/site-packages
+}
+
 variant tbb description {Use Intel TBB.} {
     depends_lib-append      port:tbb
     configure.args-replace  -DWITH_TBB=OFF \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20151212/05ab1ec6/attachment.html>


More information about the macports-changes mailing list