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

name                h3dutil
version             1.4.0
revision            4
categories          graphics
platforms           darwin
maintainers         {@SenseGraphics sensegraphics.com:support}
license             GPL-2+

description         Development files for h3dutil, a utility library for the H3D framework.

long_description    Development files for h3dutil, a utility library for the H3D framework. \
                    Includes vector and matrix math, image loading functions, thread \
                    handling and other common functions.

homepage            http://www.h3dapi.org/
master_sites        ftp://www.h3dapi.org/pub/releases/source/

checksums           rmd160  e5681e4064cc0af0096274165b7f55722940aa5b \
                    sha256  9a53d3ab7f8d7dd1513dd986f9d1057726356794bd51b05a2b8e97ab716e635d \
                    size    519223

depends_lib         port:dcmtk \
                    port:freeimage \
                    port:openexr2 \
                    port:zlib

conflicts_build-append  openexr
configure.args-append \
                    -DOpenEXR_INCLUDE_DIR=${prefix}/libexec/openexr2/include \
                    -DOpenEXR_Half_LIBRARY_RELEASE=${prefix}/libexec/openexr2/lib/libHalf.dylib \
                    -DOpenEXR_Iex_LIBRARY_RELEASE=${prefix}/libexec/openexr2/lib/libIex.dylib \
                    -DOpenEXR_IlmImf_LIBRARY_RELEASE=${prefix}/libexec/openexr2/lib/libIlmImf.dylib \
                    -DOpenEXR_IlmThread_LIBRARY_RELEASE=${prefix}/libexec/openexr2/lib/libIlmThread.dylib \
                    -DOpenEXR_Imath_LIBRARY_RELEASE=${prefix}/libexec/openexr2/lib/libImath.dylib

configure.post_args ${worksrcpath}/build

compiler.cxx_standard  2011
configure.cxxflags-append -std=gnu++11

livecheck.type      regex
livecheck.url       [lindex ${master_sites} 0]
livecheck.regex     ${name}-(\[0-9.\]+)${extract.suffix}
