# -*- 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
# $Id: Portfile 64226 2010-02-26 15:25:44Z snc@macports.org $

PortSystem          1.0

name                eibd
version             0.0.4
revision            1
categories          net
platforms           darwin

maintainers         uwe-arzt.de:mail

description         eibd provides an interface to the EIB / KNX bus
long_description    Eibd provides over a TCP/IP and/or unix domain sockets \
                    access to the EIB bus using a simple protocol. It provides \
                    access at layer 4 as well as to high level mangement function. \
                    Multiple concurrent users are supported. A special bus monitor \
                    mode call vBusmonitor is implemented, which delivers all \
                    traffic, which eibd passes, but not disturbs send activities.

homepage            https://www.auto.tuwien.ac.at/~mkoegler/index.php/eibd

fetch.type          git
git.url             http://www.auto.tuwien.ac.at/~mkoegler/git/bcusdk.git
git.branch          744614b7d09d1bc1c86ae75b567125e60275e384
worksrcdir          bcusdk-${version}

depends_build       port:pkgconfig \
                    port:argp-standalone

depends_lib         port:pthsem \
                    port:libxml2

# build only eibd, if there are requests add variants
pre-configure {
    system "cd ${worksrcpath} && aclocal -I m4 -I ${prefix}/share/aclocal && autoheader"
    system "cd ${worksrcpath} && automake -a --foreign && autoconf"
}

configure.args     --enable-onlyeibd \
                   --enable-eibnetip \
                   --enable-eibnetiptunnel \
                   --enable-eibnetipserver

