# $Id: Portfile 67652 2010-05-15 13:30:41Z ryandesign@macports.org $

PortSystem 1.0

name             exiv2
version          0.19
homepage         http://www.exiv2.org/
description      EXIF and IPTC metadata manipulation library and tools
categories       graphics
platforms        darwin
maintainers      vafer.org:tcurdt openmaintainer

master_sites     http://www.exiv2.org/

checksums        md5     f52fb75a2cb7512f1484deab76473e13 \
                 sha1    4ab8d830094f2842bc286d8e7fb03100ca7f07b1 \
                 rmd160  263267fb75341a6eb60e5201b88bfea11ef18eea

long_description Exiv2 comprises of a C++ library and a command line utility \
                 which allows you to manipulate EXIF and IPTC image metadata.

configure.args   --with-libiconv-prefix=${prefix}	\
                 --with-libintl-prefix=${prefix}	\
                 --with-zlib=${prefix}				\
                 --with-expat=${prefix}

depends_build    port:libtool

depends_lib      port:expat \
                 port:gettext \
                 port:libiconv \
                 port:zlib

destroot.destdir prefix=${destroot}${prefix}

post-configure {
	# It's too much of a PITA to autoreconf
	delete ${worksrcpath}/libtool
	ln -s ${prefix}/bin/glibtool ${worksrcpath}/libtool
	reinplace -E {s|-arch [a-z0-9_]+||g} ${worksrcpath}/config/exiv2.pc
}

livecheck.regex "(?i)<title>${name} (\\d+(?:\\.\\d+)*)</title>"
