# -*- 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            radarsat1 liblo 0.36
revision                0
epoch                   1

categories              audio
license                 LGPL-2.1+
homepage                https://liblo.sourceforge.net
maintainers             {sethm.id.au:dev @McDaMastR} \
                        openmaintainer

description             Lightweight Open Sound Control implementation
long_description        liblo is an implementation of the Open Sound Control \
                        protocol for POSIX systems.

checksums               rmd160  fbabe1fb27a2f1b3fc8a49bd44bd3536792fd831 \
                        sha256  c08d14832e8dcf8f06840405824a4f9611a0cb3daed0198946326c740941c8b6 \
                        size    681340

cmake.source_dir        ${worksrcpath}/cmake

compiler.c_standard     2011
compiler.cxx_standard   2011

configure.args-append   -DCMAKE_BUILD_WITH_INSTALL_RPATH=OFF \
                        -DWITH_EXAMPLES=OFF

test.run                yes
test.cmd                ctest
test.target

post-destroot {
    set destdocdir  ${destroot}${prefix}/share/doc/${name}

    xinstall -d ${destdocdir}
    xinstall -W ${worksrcpath} -m 644 \
        AUTHORS \
        COPYING \
        ChangeLog \
        NEWS \
        README \
        TODO \
        ${destdocdir}
}
