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

name            liblo
epoch           1
version         0.32
revision        0
categories      audio
maintainers     nomaintainer
license         LGPL-2.1
description     Lightweight Open Sound Control implementation.
long_description liblo is an implementation of the Open Sound Control \
                protocol for POSIX systems.
homepage        https://liblo.sourceforge.net/
master_sites    sourceforge:project/liblo/liblo/${version}

checksums       rmd160  59209e9d446414c23026cf497a7c7e1a1480f7d3 \
                sha256  5df05f2a0395fc5ac90f6b538b8c82bb21941406fd1a70a765c7336a47d70208 \
                size    675496

patchfiles      dynamic_lookup-11.patch

# Does not have dependencies, so does not need -I flag, and -I flag causes configure error with clang
# https://sourceforge.net/p/liblo/bugs/34/
configure.cppflags

configure.args  --disable-silent-rules \
                --enable-static

post-destroot {
    set docdir ${destroot}${prefix}/share/doc/${name}
    xinstall -d ${docdir}
    xinstall -m 644 -W ${worksrcpath} \
        AUTHORS \
        COPYING \
        ChangeLog \
        NEWS \
        README \
        TODO \
        ${docdir}
}