# $Id: Portfile 80401 2011-07-12 08:51:03Z ryandesign@macports.org $

PortSystem          1.0
PortGroup           cmake 1.0

name                indi

version             0.8
set branch          [join [lrange [split ${version} .] 0 1] .]

categories          science

maintainers         gmail.com:jtomshine

description         distributed control protocol for astronomical instrumentation
long_description    INDI is a distributed control protocol designed to \
                    operate astronomical instrumentation. INDI is small, \
                    flexible, easy to parse, and scalable. It supports common \
                    DCS functions such as remote control, data acquisition, \
                    monitoring, and a lot more.  With INDI, you have a total \
                    transparent control over your instruments so you can get \
                    more science with less time.
                    
homepage            http://www.indilib.org/
master_sites        sourceforge:project/indi/indilib/${branch}

platforms           darwin

distname            libindi_${version}

checksums           sha1    5bf30b66f57f4e5dd63b38798e9eacc853c59d9b \
                    rmd160  882f8f99df1d24fa36c58e2090a9f6baaee00df7
                    
depends_lib         port:libnova \
                    port:zlib \
                    port:libusb \
                    port:boost \
                    port:libusb-compat \
                    port:cfitsio

worksrcdir          libindi-${version}

configure.args-append \
                   -DWITH_CFITSIO=ON \
                   -DWITH_FLI=OFF \
                   -DNOVA_INCLUDE_DIR=${prefix}/include/libnova \
                   -DNOVA_LIBRARIES=${prefix}/lib/libnova.a \
                   ${worksrcpath}

livecheck.type      sourceforge
livecheck.regex     /libindi_(\[0-9.\]+)${extract.suffix}
