# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 81877 2011-08-06 11:20:49Z jmr@macports.org $

PortSystem      1.0

name            libexif
version         0.6.20
categories      graphics
license         LGPL-2+
maintainers     nomaintainer
description     EXIF parsing library

long_description \
    Most digital cameras produce EXIF files, which are JPEG files \
    with extra tags that contain information about the image. The \
    EXIF library allows you to parse an EXIF file and read the \
    data from those tags.

homepage        http://libexif.sourceforge.net/
platforms       darwin
master_sites    sourceforge:project/${name}/${name}/${version}
use_bzip2       yes

checksums           md5     19844ce6b5d075af16f0d45de1e8a6a3 \
                    sha1    d7cce9098169269695852db20d24350c2d3c10fe \
                    rmd160  87d952677a02a788211b1f2e02f49d2264c22b5c

depends_build   port:pkgconfig
depends_lib     port:gettext \
                port:libiconv

configure.args  --with-doc-dir=${prefix}/share/doc/${name}-${version} \
                --disable-docs

use_parallel_build  yes

test.run        yes
test.target     check

variant doc description {Install extra documentation} {
    depends_build-append    port:doxygen
    configure.args-delete   --disable-docs
}

livecheck.type      regex
livecheck.url       http://sourceforge.net/projects/libexif/files/
livecheck.regex     /${name}-(\[0-9.\]+)\\.tar
