[74407] trunk/dports/science
mmoll at macports.org
mmoll at macports.org
Wed Dec 15 14:20:13 PST 2010
Revision: 74407
http://trac.macports.org/changeset/74407
Author: mmoll at macports.org
Date: 2010-12-15 14:20:05 -0800 (Wed, 15 Dec 2010)
Log Message:
-----------
science/ompl: new port; Open Motion Planning Library
Added Paths:
-----------
trunk/dports/science/ompl/
trunk/dports/science/ompl/Portfile
Added: trunk/dports/science/ompl/Portfile
===================================================================
--- trunk/dports/science/ompl/Portfile (rev 0)
+++ trunk/dports/science/ompl/Portfile 2010-12-15 22:20:05 UTC (rev 74407)
@@ -0,0 +1,93 @@
+# $Id$
+
+PortSystem 1.0
+PortGroup cmake 1.0
+
+name ompl
+version 0.9.0
+categories science
+maintainers mmoll
+description The Open Motion Planning Library (OMPL)
+long_description The Open Motion Planning Library (OMPL) consists of a set \
+ of sampling-based motion planning algorithms.
+homepage http://ompl.kavrakilab.org
+platforms darwin
+license BSD
+master_sites sourceforge
+checksums md5 8bf1d03743bd9d9cb5423d315d943c5e \
+ sha1 c92f1d73245f745d272a13c43b4722c9b50a897a \
+ rmd160 33f6189f415e5e7d32ede6d4d211d5c363c53c2a
+distname ${name}-${version}-Source
+depends_lib-append port:boost port:ode
+test.run yes
+
+configure.args-append -DOMPL_BUILD_TESTS=OFF -DOMPL_BUILD_DEMOS=OFF
+
+# The +app variant includes all the content of the regular OMPL version, but
+# adds a simple GUI and an extra library with bindings to the assimp and pqp
+# libraries. The cascade of dependencies due to pyqt4 is rather large, so by
+# default the +app variant is not enabled. Also, the additions to OMPL in
+# this variant are distributed under a slightly different license than the
+# regular OMPL version.
+variant app description {Include GUI and extra demo code} {
+ distname omplapp-${version}-Source
+ license multiple
+ pre-extract {
+ ui_warn "The +app variant causes some extra code to be compiled that is
+distributed under the Rice University Software Distribution License. For
+details, please read:
+http://ompl.kavrakilab.org/license.html#ricelicense"
+ }
+ depends_lib-append port:assimp port:pqp
+ checksums md5 08569db537122a416caa4c5c1f1da782 \
+ sha1 2acbdc3c9786e098f33db73c5f68fa29636c2b7d \
+ rmd160 1ed0b593d8c853b0a8a16054b7dbbb358337faf5
+}
+
+variant python26 description {Use python2.6 for python bindings} conflicts python27 {
+ depends_lib-append port:python26
+ if { [variant_isset app] } {
+ depends_lib-append port:py26-pyqt4 port:py26-opengl
+ post-destroot {
+ reinplace "s|#!/usr/bin/env python|#!${prefix}/bin/python2.6|g" \
+ ${destroot}${prefix}/bin/ompl_app
+ }
+ } else {
+ # ompl +app contains pre-generated python binding code, ompl does not
+ build.target update_bindings all
+ depends_build-append port:py26-pyplusplus-devel
+ }
+ configure.env-append PYTHON_EXEC=${prefix}/bin/python2.6
+}
+
+variant python27 description {Use python2.7 for python bindings} conflicts python26 {
+ depends_lib-append port:python27
+ if { [variant_isset app] } {
+ depends_lib-append port:py27-pyqt4 port:py27-opengl
+ post-destroot {
+ reinplace "s|#!/usr/bin/env python|#!${prefix}/bin/python2.6|g" \
+ ${destroot}${prefix}/bin/ompl_app
+ }
+ } else {
+ # ompl +app contains pre-generated python binding code, ompl does not
+ build.target update_bindings all
+ depends_build-append port:py27-pyplusplus-devel
+ }
+ configure.env-append PYTHON_EXEC=${prefix}/bin/python2.7
+}
+
+# enable one python variant so that the python bindings can be compiled
+if { ![variant_isset python26] && ![variant_isset python27] } {
+ default_variants +python26
+}
+
+# the python bindings rely on Boost.Python, so make sure it is installed.
+pre-fetch {
+ if {![file exists ${prefix}/lib/libboost_python-mt.dylib]} {
+ return -code error "Please reinstall boost with the +python26 or +python27 variant enabled."
+ }
+}
+
+livecheck.type regex
+livecheck.url http://ompl.kavrakilab.org/download.html
+livecheck.regex (\[0-9.\]+), released
Property changes on: trunk/dports/science/ompl/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20101215/4ccb8cfd/attachment-0001.html>
More information about the macports-changes
mailing list