# -*- 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           github 1.0

github.setup        BelledonneCommunications ortp 5.2.16
github.tarball_from archive
revision            0

categories          devel
license             GPL-3
maintainers         nomaintainer

description         A Real-time Transport Protocol (RTP) library
long_description    \
    oRTP is a C library implementing the RTP protocol (rfc3550). It is \
    available for most unix clones (primilarly Linux and HP-UX), and \
    Microsoft Windows.

checksums           rmd160 6a5e145c6d1485a8b497349268fa62c2cf4adb13 \
                    sha256 4415aa720c6cbc4cd975dde14492e36446177d29f9fcf5b10aa499e7f6c1fbff \
                    size 245228

depends_lib         port:bctoolbox

patchfiles          patch-fix-Frameworks-path.diff \
                    patch-fix-gcc-build.diff \
                    patch-legacy.diff

configure.args-append \
                    -DENABLE_DOC=NO \
                    -DENABLE_STATIC=NO \
                    -DENABLE_UNIT_TESTS=NO

compiler.cxx_standard \
                    2011

variant docs description {Build and install documentation in HTML format} {
    depends_build-append \
                    path:bin/doxygen:doxygen

    configure.args-replace \
                    -DENABLE_DOC=NO -DENABLE_DOC=YES

    post-destroot {
        move ${destroot}${prefix}/share/doc/ortp-5.0.0/html \
            ${destroot}${prefix}/share/doc/ortp
    }
}

github.livecheck.regex  {([0-9.]+)}
