# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem      1.0
PortGroup       cmake 1.1
PortGroup       boost 1.0

name            orocos-rtt
version         1.10.2
revision        3
categories      devel graphics
maintainers     nomaintainer
description     Orocos Real-Time Toolkit
license         GPL-2

known_fail      yes

long_description \
    The Orocos Real-Time Toolkit (RTT) provides a C++ framework, or runtime, \
    targeting the implementation of (realtime and non-realtime) control \
    systems. It is sometimes refered to as the 'Open Real-Time Control \
    Services'.

boost.version   1.69

homepage        http://www.orocos.org/rtt/
master_sites    http://people.mech.kuleuven.be/~orocos/pub/stable/rtt/v${version}/
distname        ${name}-${version}-src

checksums       rmd160  ead2c2381de7bc9ec8fba4447c410d68fcfc988c \
                sha256  ca117a99483a12493aec243932bcea1b1c8eca2e8b80ef5e3277aeb46a630ad3 \
                size    3023161

worksrcdir      ${name}-${version}

post-destroot {
    # ugly code, we should find how to do that directly in CMake.
    set lib ${prefix}/lib/liborocos-rtt-macosx.${version}.dylib
    system "install_name_tool -id ${lib} ${destroot}${lib}"
}

variant corba description {build CORBA support using OmniORB} {
    depends_lib-append           port:omniORB
    configure.args-append       -DENABLE_CORBA=ON \
                                -DCORBA_IMPLEMENTATION=OMNIORB \
                                -DOMNIORB4_DIR=${prefix}/include
}

livecheck.type  regex
livecheck.url   ${master_sites}
livecheck.regex ${name}-(\\d+(?:\\.\\d+)*)
