# -*- 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.1
revision            0
checksums           rmd160  5c5662fded197e3d1831fec42d90caf0ac850f9b \
                    sha256  9f3174561fd26904b23f0db5e560971cbf9b3cbda0b280f04d5c379d03bf234c \
                    size    4567161

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
github.tarball_from archive

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      -DBUILD_SHARED_LIBS=ON

test.run            yes

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