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

PortSystem          1.0

name                libgphoto2
version             2.5.10
categories          devel
platforms           darwin
maintainers         ryandesign openmaintainer
license             LGPL-2+

description         The gphoto2 digital camera library

long_description    The gphoto2 library can be used by applications to \
                    access various digital camera models.

homepage            http://www.gphoto.org/proj/libgphoto2/
master_sites        sourceforge:project/gphoto/libgphoto/${version}
use_bzip2           yes

checksums           rmd160  bfd0ecd78161d7202e999efb38714e6c7a33dad1 \
                    sha256  8d8668d432ba595c7466442aec2cf553bdf8782ec171291dbc65717c633a4ef2

depends_build       port:pkgconfig

depends_lib         path:bin/dbus-daemon:dbus \
                    port:gettext \
                    port:jpeg \
                    port:libexif \
                    port:libiconv \
                    port:libusb-compat \
                    port:libxml2 \
                    port:libtool \
                    port:gd2

configure.args      --with-drivers=all \
                    --with-libexif=${prefix} \
                    ac_cv_prog_AWK=/usr/bin/awk

variant doxygen description {Use doxygen to generate API docs} {
    depends_build-append    port:doxygen \
                            path:bin/dot:graphviz
}
if {![variant_isset doxygen]} {
    configure.args-append   ac_cv_path_DOXYGEN=false
}

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