# -*- 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

PortSystem          1.0
PortGroup           github 1.0

set real_version    0.6.24
set VMINOR          [lindex [split ${real_version} .] 1]
set VPATCH          [lindex [split ${real_version} .] 2]

github.setup        libexif libexif 0_${VMINOR}_${VPATCH}-release libexif-
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
version             ${real_version}
epoch               1
revision            0
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.

checksums           rmd160  bff739c42464b69d2fa302a6f95f240316ff6688 \
                    sha256  fef1ec4d1b56d90eb2cee748e8a13e62f86a1d753bac367a92dfd1c6b214c725 \
                    size    1139117

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

use_autoreconf      yes
autoreconf.args     -fvi

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

test.run            yes
test.target         check

variant doc description {Install extra documentation} {
    depends_build-append    path:bin/doxygen:doxygen \
                            path:bin/dot:graphviz
    configure.args-delete   --disable-docs
}