# $Id: Portfile 60619 2009-11-17 06:50:31Z blb@macports.org $

PortSystem          1.0

name                indi

version             0.6

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

platforms           darwin

distname            libindi0_${version}
master_sites        sourceforge

checksums           md5 49218ad15a40dfa8a2366a2694477595 \
                    sha1 70b6a4cf4447874a0cf65dd8ece2d77dc397826d \
                    rmd160 1ec9fd8daa04db458b80ab2e153a6025faa0406f
                    
depends_lib         port:libnova \
                    port:zlib \
                    port:libusb 

depends_build       port:cmake

worksrcdir          libindi0-${version}

configure.cmd      ${prefix}/bin/cmake
configure.pre_args -DCMAKE_INSTALL_PREFIX=${prefix} \
configure.args     -DWITH_CFITSIO=OFF \
                   -DWITH_FLI=OFF \
                   -DNOVA_INCLUDE_DIR=${prefix}/include/libnova \
                   -DNOVA_LIBRARIES=${prefix}/lib/libnova.a \
                   ${worksrcpath}
destroot.env       CMAKE_INSTALL_PREFIX=${destroot}${prefix}

