set branch [join [lrange [split ${version} .] 0 1] .]
description Orocos Kinematics and Dynamics
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 \
homepage http://www.orocos.org/kdl
master_sites http://people.mech.kuleuven.be/~rsmits/kdl/
distname ${name}-${version}-src
checksums md5 4f786fcf415d2db64681ad487c25f419 \
sha1 dd06fe5bff8dfa1940fc80cd2b2f84ce25bea4e7 \
rmd160 c98d51f8f2039d54acd4ef5fd95981b6f228c95f
worksrcdir kdl-${version}
reinplace {s/SIP_VERSION GREATER/SIP_VERSION STRGREATER/} \
${worksrcpath}/config/FindSIPandPython.cmake
-DCMAKE_CXX_FLAGS=-I${prefix}/include/eigen2 \
-DCMAKE_INSTALL_NAME_DIR=${prefix}/lib \
-DEIGEN2_INCLUDE_DIR=${prefix}/include/eigen2 \
-DOROCOS_INSTALL=${prefix} \
variant plugin description "Enable Orocos RTT plugin" {
depends_lib-append port:orocos-rtt \
configure.args-delete -DOROCOS_PLUGIN=0
configure.args-append -DOROCOS_PLUGIN=1
variant python26 description "Enable Python 2.6 bindings" {
reinplace {s:\*\.sip:PyKDL/&:} \
${worksrcpath}/src/bindings/python/CMakeLists.txt
reinplace {/#set/s:.*:INSTALL(FILES \${SIP_FILES} DESTINATION share/sip/PyKDL):} \