# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           cmake 1.1
PortGroup           github 1.0

github.setup        cdcseacave TinyEXIF 1.0.3
revision            1
checksums           rmd160  f31c7eefe046e111ae95db95cb03270243f9f9d4 \
                    sha256  e45d097b1375c8fb3a01ddda9769b0e55a7c1b4a27433a62e30adef026d92ac4 \
                    size    7711614

categories          graphics
maintainers         {ryandesign @ryandesign} openmaintainer
license             BSD

description         tiny ISO-compliant C++ EXIF and XMP parsing library for JPEG

long_description    ${name} is a tiny, lightweight C++ library for parsing the \
                    metadata existing inside JPEG files.

github.tarball_from archive

depends_lib         port:tinyxml2

compiler.cxx_standard \
                    2011

configure.args      -DBUILD_DEMO=OFF \
                    -DBUILD_SHARED_LIBS=ON \
                    -DBUILD_STATIC_LIBS=ON

# Fix build with CMake >= 4.
# https://github.com/cdcseacave/TinyEXIF/issues/22
configure.args-append \
                    -DCMAKE_POLICY_VERSION_MINIMUM=3.5
