<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[138996] trunk/dports/science/ompl/Portfile</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="https://trac.macports.org/changeset/138996">138996</a></dd>
<dt>Author</dt> <dd>mmoll@macports.org</dd>
<dt>Date</dt> <dd>2015-07-26 16:47:09 -0700 (Sun, 26 Jul 2015)</dd>
</dl>

<h3>Log Message</h3>
<pre>ompl: don't use pre-generated python bindings now that llvm-gcc42 works on OS X 10.10. The bindings may be dependent on OS X or Boost version.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkdportsscienceomplPortfile">trunk/dports/science/ompl/Portfile</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkdportsscienceomplPortfile"></a>
<div class="modfile"><h4>Modified: trunk/dports/science/ompl/Portfile (138995 => 138996)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/science/ompl/Portfile        2015-07-26 20:38:32 UTC (rev 138995)
+++ trunk/dports/science/ompl/Portfile        2015-07-26 23:47:09 UTC (rev 138996)
</span><span class="lines">@@ -8,6 +8,7 @@
</span><span class="cx"> 
</span><span class="cx"> name                ompl
</span><span class="cx"> version             1.0.0
</span><ins>+revision            1
</ins><span class="cx"> categories          science
</span><span class="cx"> maintainers         mmoll
</span><span class="cx"> description         The Open Motion Planning Library (OMPL)
</span><span class="lines">@@ -17,20 +18,27 @@
</span><span class="cx"> platforms           darwin
</span><span class="cx"> license             BSD
</span><span class="cx"> master_sites        https://bitbucket.org/ompl/ompl/downloads
</span><del>-distfiles           ${name}-${version}-Source${extract.suffix} ${name}-bindings-${version}${extract.suffix}
-checksums           ${name}-${version}-Source${extract.suffix} \
-                        sha1    9d89dd0e9c358ddfc5c0b3c0aa92b4d101c72756 \
-                        rmd160  f85e4f1b501306c08f72f110d61c805ae2668b73 \
-                    ${name}-bindings-${version}${extract.suffix} \
-                        sha1    822c6967958e979f98afda47cd2abba5cd4ddbcc \
-                        rmd160  ab62f7c73f0689a718d9961b081f8168540c8e6d
-worksrcdir          ${name}-${version}-Source
</del><ins>+distname            ${name}-${version}-Source
+checksums           rmd160  f85e4f1b501306c08f72f110d61c805ae2668b73 \
+                    sha256  9bb6242ca723ab49b31fc5ac343a580cb7e6229bcf876c503c235f4cdd75376b
</ins><span class="cx"> depends_lib-append  port:boost port:ode port:flann port:triangle
</span><span class="cx"> 
</span><span class="cx"> # We &quot;inherit&quot; the compiler blacklist from the Boost port, since OMPL depends heavily on Boost.
</span><span class="cx"> compiler.blacklist {clang &lt; 421} macports-clang-2.9 macports-clang-3.0 *llvm-gcc-4.2 *gcc-4.0 gcc-3.3
</span><span class="cx"> 
</span><ins>+# no universal of gccxml-devel
+universal_variant   no
</ins><span class="cx"> configure.args-append   -DOMPL_BUILD_DEMOS=OFF
</span><ins>+# generate the extra C++ code needed for Python bindings. This code seems
+# 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 &quot;-j 2&quot; } else { set cj &quot;&quot; }
+    system &quot;cd ${cmake.build_dir}; ${build.cmd} ${cj} update_bindings&quot;
+}
+configure.args-append   -DOMPL_BUILD_DEMOS=OFF
</ins><span class="cx"> 
</span><span class="cx"> # The +app variant includes all the content of the regular OMPL version, but
</span><span class="cx"> # adds a simple GUI and an extra library with bindings to the assimp and fcl
</span><span class="lines">@@ -49,14 +57,9 @@
</span><span class="cx">     depends_build-append port:pkgconfig
</span><span class="cx">     depends_lib-append  port:assimp port:fcl
</span><span class="cx">     configure.args-append -DOMPLAPP_PQP=OFF -DOMPLAPP_RESOURCE_DIR=${prefix}/share/ompl/resources
</span><del>-    distfiles           omplapp-${version}-Source${extract.suffix} omplapp-bindings-${version}${extract.suffix}
-    checksums           omplapp-${version}-Source${extract.suffix} \
-                            sha1    4d7d77ed9cdc58718ab664e11e5c9127ba4287cf \
-                            rmd160  a5b07eac786560faeeee0ff72162cc363035bf28 \
-                        omplapp-bindings-${version}${extract.suffix} \
-                            sha1    d322137cb6940075cdd4cb12676fda7a2df99ca5 \
-                            rmd160  73bdb2379e278ef5c98b162cd65a6b1605e661ca
-    worksrcdir          omplapp-${version}-Source
</del><ins>+    distname            omplapp-${version}-Source
+    checksums           rmd160  a5b07eac786560faeeee0ff72162cc363035bf28 \
+                        sha256  2a7aa0374c1f11b83a54c2d35104e732e5c439804117a968dad10994390e8a7a
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> set pythons_suffixes {27 34}
</span><span class="lines">@@ -84,6 +87,7 @@
</span><span class="cx">     set c [lreplace ${pythons_ports} ${i} ${i}]
</span><span class="cx">     eval [subst {
</span><span class="cx">         variant ${p} description &quot;Use Python ${v} for python bindings&quot; conflicts ${c} debug {
</span><ins>+            depends_build-append    port:py${s}-pyplusplus
</ins><span class="cx">             depends_lib-append      port:${p}
</span><span class="cx">             configure.args-append   -DPYTHON_EXEC=${prefix}/bin/python${v}
</span><span class="cx"> 
</span></span></pre>
</div>
</div>

</body>
</html>