# $Id: Portfile 106767 2013-06-07 13:58:41Z mmoll@macports.org $
PortSystem 1.0
name                glm
version             0.9.4.4
categories          devel
platforms           darwin
supported_archs     noarch
license             MIT
maintainers         openmaintainer mmoll
description         OpenGL Mathematics (GLM) C++ library
long_description    OpenGL Mathematics (GLM) is a header only C++ \
                    mathematics library for graphics software based \
                    on the OpenGL Shading Language (GLSL) specification.
homepage            http://glm.g-truc.net/
master_sites        sourceforge:project/ogl-math/${name}-${version}
checksums           md5     3118904f39befdb7063168316b6a33f1 \
                    sha1    a4f24a9721caf50791c75b740fa2474f95b6c228 \
                    rmd160  80bbd8a19981953e63e6aeae6c7a538e1acd6598
use_zip             yes
use_configure       no
build {}
destroot {
    copy ${worksrcpath}/${name} ${destroot}${prefix}/include/${name}
    delete ${destroot}${prefix}/include/${name}/CMakeLists.txt
    xinstall -d ${destroot}${prefix}/share/doc
    copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${name}
}

livecheck.type      regex
livecheck.url       ${homepage}
livecheck.regex     "Download GLM (\[0-9.\]+\[0-9\])"
