[151640] trunk/dports/science/ompl/Portfile

mmoll at macports.org mmoll at macports.org
Thu Aug 18 18:54:23 PDT 2016


Revision: 151640
          https://trac.macports.org/changeset/151640
Author:   mmoll at macports.org
Date:     2016-08-18 18:54:23 -0700 (Thu, 18 Aug 2016)
Log Message:
-----------
science/ompl: only make python bindings if a python variant is active

Modified Paths:
--------------
    trunk/dports/science/ompl/Portfile

Modified: trunk/dports/science/ompl/Portfile
===================================================================
--- trunk/dports/science/ompl/Portfile	2016-08-19 01:53:30 UTC (rev 151639)
+++ trunk/dports/science/ompl/Portfile	2016-08-19 01:54:23 UTC (rev 151640)
@@ -32,10 +32,12 @@
 # somewhat dependent on compiler and/or boost version, so we can't
 # pre-generate them and make them available as an extra download.
 post-configure {
-    # enable parallel build on at most 2 cores. Generating the bindings
-    # uses large amounts of memory, so don't use more cores.
-    if { ${use_parallel_build} } { set cj "-j 2" } else { set cj "" }
-    system -W ${cmake.build_dir} "${build.cmd} ${cj} update_bindings"
+    if {[variant_isset python27] || [variant_isset python34] || [variant_isset python35]} {
+        # enable parallel build on at most 2 cores. Generating the bindings
+        # uses large amounts of memory, so don't use more cores.
+        if { ${use_parallel_build} } { set cj "-j 2" } else { set cj "" }
+        system -W ${cmake.build_dir} "${build.cmd} ${cj} update_bindings"
+    }
 }
 configure.args-append   -DOMPL_BUILD_DEMOS=OFF
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160818/2741845c/attachment.html>


More information about the macports-changes mailing list