diff options
Diffstat (limited to 'var/spack/repos/builtin/packages/glew/package.py')
-rw-r--r-- | var/spack/repos/builtin/packages/glew/package.py | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/var/spack/repos/builtin/packages/glew/package.py b/var/spack/repos/builtin/packages/glew/package.py index 24c7da7a1a..6202f89da6 100644 --- a/var/spack/repos/builtin/packages/glew/package.py +++ b/var/spack/repos/builtin/packages/glew/package.py @@ -9,18 +9,24 @@ class Glew(CMakePackage): homepage = "http://glew.sourceforge.net/" url = "https://github.com/nigels-com/glew/releases/download/glew-2.1.0/glew-2.1.0.tgz" + root_cmakelists_dir = "build/cmake" + version('2.2.0', sha256='d4fc82893cfb00109578d0a1a2337fb8ca335b3ceccf97b97e5cc7f08e4353e1') version('2.1.0', sha256='04de91e7e6763039bc11940095cd9c7f880baba82196a7765f727ac05a993c95') version('2.0.0', sha256='c572c30a4e64689c342ba1624130ac98936d7af90c3103f9ce12b8a0c5736764') - depends_on("gl") # glu is optional if -DGLEW_NO_GLU is used by dependents - depends_on('libsm') - depends_on('libice') + depends_on('gl') + depends_on('glx', when='platform=linux') - root_cmakelists_dir = "build/cmake" + # glu is already forcibly disabled in the CMakeLists.txt. This prevents + # it from showing up in the .pc file + patch('remove-pkgconfig-glu-dep.patch') + + def cmake_args(self): + args = [ + self.define('BUILD_UTILS', True), + self.define('GLEW_REGAL', False), + self.define('GLEW_OSMESA', False), + ] - @run_after('cmake') - def patch_glew_pc(self): - # https://github.com/Homebrew/legacy-homebrew/issues/22025 - # Note: This file is generated only after cmake is run - filter_file(r'Requires: glu', '', 'glew.pc') + return args |