summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/glm/package.py
blob: ecae89f1e8b0f08698a4a63874149961351049f2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
from spack import *


class Glm(Package):
    """
    OpenGL Mathematics (GLM) is a header only C++ mathematics library for graphics software based on
    the OpenGL Shading Language (GLSL) specification.
    """

    homepage = "https://github.com/g-truc/glm"
    url = "https://github.com/g-truc/glm/archive/0.9.7.1.tar.gz"

    version('0.9.7.1', '61af6639cdf652d1cdd7117190afced8')
    
    depends_on ("cmake")

    def install(self, spec, prefix):
        with working_dir('spack-build', create=True):
            cmake('..', *std_cmake_args)
            make()
            make("install")