Ticket #23523: orocos-kdl-Portfile.txt

File orocos-kdl-Portfile.txt, 2.1 KB (added by kiwi.2008@…, 14 years ago)
Line 
1# $Id$
2
3PortSystem              1.0
4
5name                    orocos-kdl
6version                 1.0.1
7revision                0
8categories              devel
9maintainers             nobody
10description             Orocos Kinematics and Dynamics Library
11long_description        Orocos project to supply RealTime usable kinematics and dynamics code, \
12                                                it contains code for rigid body kinematics calculations and \
13                                                representations for kinematic structures and their inverse and forward \
14                                                kinematic solvers.
15platforms               darwin
16homepage                http://orocos.org/
17master_sites                    http://people.mech.kuleuven.be/~rsmits/kdl
18distfiles               orocos-kdl-${version}-src.tar.bz2
19worksrcdir                              kdl-${version}
20use_bzip2               yes
21checksums                               md5 eb17a59cb124e4deb676398f990fb406
22use_parallel_build      yes
23
24depends_build   port:cmake \
25                                port:boost \
26                                port:cppunit \
27                                port:eigen
28
29configure.pre_args  -DCMAKE_INSTALL_PREFIX=${prefix} \
30                                        -DOROCOS_TARGET=macosx \
31                                        -DOROCOS_INSTALL=${prefix} \
32                                        -DCMAKE_INCLUDE_PATH=${prefix}/include/eigen2 \
33                                        -DENABLE_CORBA=OFF \
34                                        -DOROCOS_PLUGIN=OFF \
35                                        -DPYTHON_BINDINGS=OFF
36
37configure.cmd   cmake
38
39variant corba description {build CORBA support using OmniORB} {
40
41    depends_build-append port:omniORB \
42                                                 lib:orocos-rtt-corba-macosx:orocos-rtt
43
44    configure.pre_args-delete       -DENABLE_CORBA=OFF
45
46    configure.pre_args-append       -DENABLE_CORBA=ON \
47                                                                        -DCORBA_IMPLEMENTATION=OMNIORB \
48                                                                -DOMNIORB4_DIR=/opt/local/include
49}
50
51variant plugin description {build Orocos plugin} {     
52
53    depends_build-append lib:orocos-rtt-corba-macosx:orocos-rtt
54
55    configure.pre_args-delete       -DOROCOS_PLUGIN=OFF
56
57    configure.pre_args-append       -DOROCOS_PLUGIN=ON
58}
59
60variant python25 description {build bindings for Python 2.5} {
61
62    depends_build-append   port:python25 \
63                               port:py25-sip
64
65    configure.pre_args-delete       -DPYTHON_BINDINGS=OFF
66
67    configure.pre_args-append       -DPYTHON_BINDINGS=ON \
68                                    -DCMAKE_PREFIX_PATH=${prefix}/Library/Frameworks/Python.framework/Versions/2.5/
69}
70