PortSystem          1.0

name                libirman
version             0.5.2

categories          sysutils
license             GPL-2+
maintainers         nomaintainer
platforms           darwin
description         interface with Irman-compatible IR receivers
long_description    Libirman enables interfacing with Irman-compatible infra-red receivers \
                    such as the IRToy and PCIR. 

homepage            https://sourceforge.net/projects/libirman/
master_sites        sourceforge
checksums           rmd160  9956c55638a7c754e65cc4fedfb32a6afbe9a070 \
                    sha256  43e58d7cd22b3a4c4dc8dcf8542a269ebcb4d8f6ceea0577b9fc882898f09a47

depends_build       port:pkgconfig

use_autoreconf      yes
autoreconf.args-append  --force --install

configure.args      --without-plugin --enable-swtest --disable-silent-rules

post-destroot {
    xinstall -m 0644 -W ${worksrcpath} COPYING COPYING.lib NEWS \
        ${destroot}${prefix}/share/doc/${name}
}

variant lirc description {install irman plugin for LIRC} {
    depends_lib-append port:lirc
    configure.args-replace --without-plugin --with-plugin
    long_description-append  Provides both a library and a plugin for LIRC.
}
default_variants    +lirc
