# $Id: Portfile 120313 2014-05-22 23:48:57Z mmoll@macports.org $
PortSystem 1.0
name                glm
version             0.9.5.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     5aff891cf4b658829e3f0907e6544780 \
                    sha1    e5035b496390b0f05afc823f3930186139c9b2bf \
                    rmd160  654d471f763ce2d64983010f78ca45a819194abc
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\])"
