# $Id: Portfile 54147 2009-07-21 23:52:48Z brett@macports.org $

PortSystem          1.0
name                gphoto2
version             2.4.4
revision            1
categories          graphics
maintainers         nomaintainer
description         command line interface to libgphoto2.
long_description \
   gphoto2 is the command line interface to libgphoto2.  It allows almost \
   everything that libgphoto2 can do.

platforms           darwin

homepage            http://www.gphoto.org/proj/gphoto2/
master_sites        sourceforge:gphoto
use_bzip2           yes

checksums           md5     bcc5621e09802e114c7f72a6f6172230 \
                    sha1    dc10455a0a3a90b3101bc94706469852454c8bd8 \
                    rmd160  b222df465736898cc0bc78c5d21e4bb624f1cb87

depends_build       path:bin/pkg-config:pkgconfig
depends_lib         port:gettext \
                    port:jpeg \
                    port:libexif \
                    port:libgphoto2 \
                    port:libiconv \
                    port:libusb-compat \
                    port:popt \
                    port:readline

configure.cflags-append   -I${prefix}/include
configure.env       POPT_CFLAGS="-I${prefix}/include" \
                    POPT_LIBS="-L${prefix}/lib -lpopt"
configure.args      --without-cdk --without-aalib

destroot.target     install-strip
post-destroot {
   xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
   xinstall -m 644 -W ${worksrcpath} COPYING ChangeLog INSTALL NEWS README \
      TODO ${destroot}${prefix}/share/doc/${name}
}

