source: trunk/dports/devel/orocos-kdl/Portfile

Last change on this file was 133621, checked in by jmr@…, 2 years ago

orocos-kdl: add RTT plugin variant (#25144)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.4 KB
Line 
1# $Id: Portfile 133621 2015-03-06 23:56:53Z ryandesign@macports.org $
2
3PortSystem      1.0
4PortGroup       cmake 1.0
5
6name            orocos-kdl
7version         1.0.2
8revision        2
9set branch      [join [lrange [split ${version} .] 0 1] .]
10categories      devel
11maintainers     nomaintainer
12description     Orocos Kinematics and Dynamics
13license         LGPL-2.1
14
15long_description \
16    The Kinematics and Dynamics Library (KDL) develops an application \
17    independent framework for modelling and computation of kinematic chains, \
18    such as robots, biomechanical human models, computer-animated figures, \
19    machine tools, etc. It provides class libraries for geometrical objects \
20    (point, frame, line, ...), kinematic chains of various families (serial, \
21    humanoid, parallel, mobile, ...), and their motion specification and \
22    interpolation.
23
24homepage        http://www.orocos.org/kdl
25platforms       darwin
26master_sites    http://people.mech.kuleuven.be/~rsmits/kdl/
27distname        ${name}-${version}-src
28use_bzip2       yes
29
30checksums       md5     4f786fcf415d2db64681ad487c25f419 \
31                sha1    dd06fe5bff8dfa1940fc80cd2b2f84ce25bea4e7 \
32                rmd160  c98d51f8f2039d54acd4ef5fd95981b6f228c95f
33
34worksrcdir      kdl-${version}
35
36post-patch {
37    reinplace {s/SIP_VERSION GREATER/SIP_VERSION STRGREATER/} \
38        ${worksrcpath}/config/FindSIPandPython.cmake
39}
40
41depends_build-append \
42    port:pkgconfig
43depends_lib \
44    port:eigen
45
46configure.args-append \
47    -DCMAKE_CXX_FLAGS=-I${prefix}/include/eigen2 \
48    -DCMAKE_INSTALL_NAME_DIR=${prefix}/lib \
49    -DEIGEN2_INCLUDE_DIR=${prefix}/include/eigen2 \
50    -DOROCOS_INSTALL=${prefix} \
51    -DOROCOS_PLUGIN=0 \
52    -DOROCOS_TARGET=macosx
53
54variant plugin description "Enable Orocos RTT plugin" {
55    depends_lib-append  port:orocos-rtt \
56                        port:boost
57    configure.args-delete   -DOROCOS_PLUGIN=0
58    configure.args-append   -DOROCOS_PLUGIN=1
59}
60
61variant python26 description "Enable Python 2.6 bindings" {
62    post-patch {
63        reinplace {s:\*\.sip:PyKDL/&:} \
64            ${worksrcpath}/src/bindings/python/CMakeLists.txt
65        reinplace {/#set/s:.*:INSTALL(FILES \${SIP_FILES} DESTINATION share/sip/PyKDL):} \
66            ${worksrcpath}/src/bindings/python/CMakeLists.txt
67    }
68
69    depends_lib-append \
70        port:py26-sip \
71        port:python26
72
73    configure.args-append \
74        -DPYTHON_BINDINGS=1
75}
76
77livecheck.type  regex
78livecheck.url   ${master_sites}
79livecheck.regex ${name}-(\\d+(?:\\.\\d+)*)
Note: See TracBrowser for help on using the repository browser.