# -*- 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        g-truc glm 1.0.3
github.tarball_from archive
revision            0

checksums           rmd160  bb7efde1f71d731857c87fe8194f6b01d4e878f1 \
                    sha256  6775e47231a446fd086d660ecc18bcd076531cfedd912fbd66e576b118607001 \
                    size    4597748

categories          devel
license             MIT
maintainers         nomaintainer

description         OpenGL Mathematics (GLM) C++ library
long_description    OpenGL Mathematics (GLM) is a C++ \
                    mathematics library for graphics software based \
                    on the OpenGL Shading Language (GLSL) specification.

homepage            https://glm.g-truc.net

patchfiles          patch-remove-werror.diff

compiler.cxx_standard 1998

# error: "GLM requires Clang 3.4 / Apple Clang 6.0 or higher"
# error: "GLM requires GCC 4.6 or higher"
compiler.blacklist  macports-clang-3.3 {clang < 600} gcc-3.* {*gcc-4.[0-5]}

configure.args-append \
                    -DBUILD_SHARED_LIBS=ON \
                    -DGLM_BUILD_TESTS=ON

test.run            yes

post-destroot {
    # install documentation
    copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${name}
}
