# $Id: Portfile 96630 2012-08-15 23:09:59Z devans@macports.org $

PortSystem 1.0

name             exiv2
version          0.23
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    5f342bf642477526f41add11d6ee7787cdcd639f \
                 rmd160  ac58f8b5df70ee56c49d387f0666e5e2578d942e

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>"
