Portfile

# $Id: Portfile 22752 2007-03-13 14:10:16Z takanori@macports.org $

PortSystem 1.0
name gphoto2
version 2.3.1
categories graphics
maintainers nomaintainer@macports.org
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 00da102280dd5743d8f8b80173b4dd26 \
sha1 553668806d45d7db5926eb3963863a58da9032c1 \
rmd160 77b4325acbbace03ab5a70251f0b36d6c6d1a586
depends_lib port:gettext \
port:jpeg \
port:libexif \
port:libgphoto2 \
port:libiconv \
port:libusb \
port:pkgconfig \
port:popt \
port:readline

configure.env CFLAGS="-I${prefix}/include" LDFLAGS="-L${prefix}/lib" \
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}
}