# $Id$
PortSystem 1.0
name                glm
version             0.9.6.3
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     acd0b517c37ed25c3f11ee155ee8257e \
                    sha1    fb3cf9cc21cc87546fb94fa9e1773b1e4bf87cd5 \
                    rmd160  60ec79d1644aca8167d23d867dd393315f01891c
use_zip             yes
use_configure       no
build {}
worksrcdir          ${name}
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       http://sourceforge.net/projects/ogl-math/files/
livecheck.regex     "${name}-(\[0-9.\]+\[0-9\])"