Ticket #23523: orocos-ocl-Portfile.txt

File orocos-ocl-Portfile.txt, 2.8 KB (added by kiwi.2008@…, 14 years ago)
Line 
1# $Id$
2
3PortSystem              1.0
4PortGroup               archcheck 1.0
5PortGroup               cmake 1.0
6
7name                    orocos-ocl
8version                 1.10.2
9revision                0
10set branch              [join [lrange [split ${version} .] 0 1] .]
11categories              devel
12maintainers             nox openmaintainer
13description             Orocos Component Library
14license                 LGPL-2.1
15
16long_description \
17        The Orocos Component Library contains components for \
18        real-time control of robots and machines.
19
20homepage                        http://www.orocos.org/ocl
21platforms                       darwin
22master_sites                    http://orocos.org/stable/ocl/v${version}
23distfiles                               ${name}-${version}-src.tar.bz2
24use_bzip2                               yes
25checksums                               md5 6965c4b010beedbe591eb80f0d003ae2
26use_parallel_build              yes
27
28depends_build \
29        port:boost \
30        port:orocos-rtt
31
32archcheck.files \
33    lib/libboost_thread-mt.dylib \
34    lib/liborocos-rtt-macosx.dylib
35
36configure.args-append \
37        -DCMAKE_INSTALL_NAME_DIR=${prefix}/lib \
38        -DOROCOS_INSTALL=${prefix} \
39        -DOROCOS_TARGET=macosx \
40        -DENABLE_CORBA=OFF \
41        -DBUILD_DEPLOYMENT=NO \
42        -DBUILD_REPORTING=NO \
43        -DBUILD_TASKBROWSER=NO \
44        -DBUILD_MOTION=NO \
45        -DBUILD_NAXES=NO \
46        -DBUILD_CARTESIAN=NO \
47        -DBUILD_HELLOWORLD=NO
48
49variant corba description {build CORBA support using OmniORB} {
50
51    depends_build-append \
52                port:omniORB \
53                lib:orocos-rtt-corba-macosx:orocos-rtt
54
55    configure.args-delete       -DENABLE_CORBA=OFF
56
57    configure.args-append       -DENABLE_CORBA=ON \
58                                                                -DCORBA_IMPLEMENTATION=OMNIORB \
59                                -DOMNIORB4_DIR=${prefix}/include
60}
61
62variant taskbrowser description {build taskbrowser} {
63    depends_build-append                port:readline
64
65    configure.args-delete       -DBUILD_TASKBROWSER=NO
66
67        # the CMAKE_PREFIX_PATH ensures we find MacPorts' readline, and not the
68        # default readline in /usr (which is too far out of date for us)
69    configure.args-append       -DBUILD_TASKBROWSER=YES \
70                                                                -DCMAKE_PREFIX_PATH=${prefix}
71}
72
73variant deployment description {build deployment} {
74    configure.args-delete       -DBUILD_DEPLOYMENT=NO
75
76    configure.args-append       -DBUILD_DEPLOYMENT=YES
77}
78
79variant reporting description {build reporting} {
80    configure.args-delete       -DBUILD_REPORTING=NO
81
82    configure.args-append       -DBUILD_REPORTING=YES
83}
84
85variant motion_control description {build motion control (nAxes and Cartesian)} {
86    configure.args-delete       -DBUILD_MOTION=NO \
87                                                                -DBUILD_NAXES=NO \
88                                                                -DBUILD_CARTESIAN=NO
89
90    configure.args-append               -DBUILD_MOTION=YES \
91                                                                -DBUILD_NAXES=YES \
92                                                                -DBUILD_CARTESIAN=YES
93       
94        depends_build                           lib:orocos-kdl-1.0.0:orocos-kdl
95}
96
97variant helloworld description {build "hello world" example} {
98    configure.args-delete       -DBUILD_HELLOWORLD=NO
99
100    configure.args-append       -DBUILD_HELLOWORLD=YES
101}
102
103livecheck.type  regex
104livecheck.url   ${master_sites}
105livecheck.regex ${name}-(\\d+(?:\\.\\d+)*)