1 | # $Id$ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | PortGroup archcheck 1.0 |
---|
5 | PortGroup cmake 1.0 |
---|
6 | |
---|
7 | name orocos-ocl |
---|
8 | version 1.10.2 |
---|
9 | revision 0 |
---|
10 | set branch [join [lrange [split ${version} .] 0 1] .] |
---|
11 | categories devel |
---|
12 | maintainers nox openmaintainer |
---|
13 | description Orocos Component Library |
---|
14 | license LGPL-2.1 |
---|
15 | |
---|
16 | long_description \ |
---|
17 | The Orocos Component Library contains components for \ |
---|
18 | real-time control of robots and machines. |
---|
19 | |
---|
20 | homepage http://www.orocos.org/ocl |
---|
21 | platforms darwin |
---|
22 | master_sites http://orocos.org/stable/ocl/v${version} |
---|
23 | distfiles ${name}-${version}-src.tar.bz2 |
---|
24 | use_bzip2 yes |
---|
25 | checksums md5 6965c4b010beedbe591eb80f0d003ae2 |
---|
26 | use_parallel_build yes |
---|
27 | |
---|
28 | depends_build \ |
---|
29 | port:boost \ |
---|
30 | port:orocos-rtt |
---|
31 | |
---|
32 | archcheck.files \ |
---|
33 | lib/libboost_thread-mt.dylib \ |
---|
34 | lib/liborocos-rtt-macosx.dylib |
---|
35 | |
---|
36 | configure.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 | |
---|
49 | variant 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 | |
---|
62 | variant 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 | |
---|
73 | variant deployment description {build deployment} { |
---|
74 | configure.args-delete -DBUILD_DEPLOYMENT=NO |
---|
75 | |
---|
76 | configure.args-append -DBUILD_DEPLOYMENT=YES |
---|
77 | } |
---|
78 | |
---|
79 | variant reporting description {build reporting} { |
---|
80 | configure.args-delete -DBUILD_REPORTING=NO |
---|
81 | |
---|
82 | configure.args-append -DBUILD_REPORTING=YES |
---|
83 | } |
---|
84 | |
---|
85 | variant 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 | |
---|
97 | variant helloworld description {build "hello world" example} { |
---|
98 | configure.args-delete -DBUILD_HELLOWORLD=NO |
---|
99 | |
---|
100 | configure.args-append -DBUILD_HELLOWORLD=YES |
---|
101 | } |
---|
102 | |
---|
103 | livecheck.type regex |
---|
104 | livecheck.url ${master_sites} |
---|
105 | livecheck.regex ${name}-(\\d+(?:\\.\\d+)*) |
---|