[61018] trunk/dports/devel

nox at macports.org nox at macports.org
Sun Nov 29 19:27:35 PST 2009


Revision: 61018
          http://trac.macports.org/changeset/61018
Author:   nox at macports.org
Date:     2009-11-29 19:27:34 -0800 (Sun, 29 Nov 2009)
Log Message:
-----------
orocos-kdl: New port.

Added Paths:
-----------
    trunk/dports/devel/orocos-kdl/
    trunk/dports/devel/orocos-kdl/Portfile

Added: trunk/dports/devel/orocos-kdl/Portfile
===================================================================
--- trunk/dports/devel/orocos-kdl/Portfile	                        (rev 0)
+++ trunk/dports/devel/orocos-kdl/Portfile	2009-11-30 03:27:34 UTC (rev 61018)
@@ -0,0 +1,67 @@
+# $Id$
+
+PortSystem      1.0
+PortGroup       cmake 1.0
+
+name            orocos-kdl
+version         1.0.1
+set branch      [join [lrange [split ${version} .] 0 1] .]
+categories      devel graphics
+maintainers     nox openmaintainer
+description     Orocos Kinematics and Dynamics
+license         LGPLv2.1
+
+long_description \
+    The Kinematics and Dynamics Library (KDL) develops an application \
+    independent framework for modelling and computation of kinematic chains, \
+    such as robots, biomechanical human models, computer-animated figures, \
+    machine tools, etc. It provides class libraries for geometrical objects \
+    (point, frame, line, ...), kinematic chains of various families (serial, \
+    humanoid, parallel, mobile, ...), and their motion specification and \
+    interpolation.
+
+homepage        http://www.orocos.org/kdl
+platforms       darwin
+master_sites    http://people.mech.kuleuven.be/~rsmits/kdl/
+distname        ${name}-${version}-src
+use_bzip2       yes
+
+checksums       md5     eb17a59cb124e4deb676398f990fb406 \
+                sha1    649e0b6f1b41140b1bed8724d8ef478871e5d388 \
+                rmd160  6107eb5f2b81494939b9525f41eda58f64e4e9ae
+
+worksrcdir      kdl-${version}
+
+post-patch {
+    reinplace -E {s at src/orocos-kdl\.pc at orocos-kdl.pc@} \
+        ${worksrcpath}/src/CMakeLists.txt
+}
+
+depends_lib     port:eigen
+
+configure.args  -DEIGEN2_INCLUDE_DIR=${prefix}/include/eigen2 \
+                -DCMAKE_CXX_FLAGS=-I${prefix}/include/eigen2 \
+
+post-destroot {
+    # ugly code, we should find how to do that directly in CMake.
+    set lib ${prefix}/lib/liborocos-kdl.${branch}.dylib
+    system "install_name_tool -id ${lib} ${destroot}${lib}"
+}
+
+variant python26 description "Enable Python 2.6 bindings" {
+    depends_lib-append \
+        port:py26-sip \
+        port:python26
+
+    configure.args-append \
+        -DPYTHON_BINDINGS=1
+
+    post-destroot {    
+        # ugly code, we should find how to do that directly in CMake.
+        set libname liborocos-kdl.${branch}.dylib
+        set pylib ${prefix}/lib/python2.6/site-packages/PyKDL.so
+        system "install_name_tool -id ${pylib} ${destroot}${pylib}"
+        system "install_name_tool -change ${worksrcpath}/src/${libname} \
+            ${prefix}/lib/${libname} ${destroot}${pylib}"
+    }
+}


Property changes on: trunk/dports/devel/orocos-kdl/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/20091129/777a670e/attachment.html>


More information about the macports-changes mailing list