# $Id: Portfile 86865 2011-11-06 00:32:25Z nicos@macports.org $

PortSystem 1.0

name             exiv2
version          0.22
homepage         http://www.exiv2.org/
description      EXIF and IPTC metadata manipulation library and tools
categories       graphics
platforms        darwin
license          GPL-2+
maintainers      vafer.org:tcurdt openmaintainer

master_sites     http://www.exiv2.org/

checksums        sha1    35211d853a986fe1b008fca14db090726e8dcce3 \
                 rmd160  068f3bc72e48a58bf3a3dfa2feeb8379557a34e7

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_lib      port:expat \
                 port:gettext \
                 port:libiconv \
                 port:zlib

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

post-configure {
	reinplace -E {s|-arch [a-z0-9_]+||g} ${worksrcpath}/config/exiv2.pc
}

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