summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorCyrus Harrison <cyrush@llnl.gov>2021-04-08 05:14:14 -0700
committerGitHub <noreply@github.com>2021-04-08 14:14:14 +0200
commit68cec598dcd801763a5b3ec957ad79927ac52012 (patch)
tree9f745af505c1b0fd01985280aecaaeea0fb63a0d /var
parent65563946e3d937966ea462b3920fa631f2ee0a83 (diff)
downloadspack-68cec598dcd801763a5b3ec957ad79927ac52012.tar.gz
spack-68cec598dcd801763a5b3ec957ad79927ac52012.tar.bz2
spack-68cec598dcd801763a5b3ec957ad79927ac52012.tar.xz
spack-68cec598dcd801763a5b3ec957ad79927ac52012.zip
glfw: make it build on MacOS (#22626)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/glfw/package.py27
1 files changed, 16 insertions, 11 deletions
diff --git a/var/spack/repos/builtin/packages/glfw/package.py b/var/spack/repos/builtin/packages/glfw/package.py
index ff6ceb5953..45d3da1180 100644
--- a/var/spack/repos/builtin/packages/glfw/package.py
+++ b/var/spack/repos/builtin/packages/glfw/package.py
@@ -26,14 +26,19 @@ class Glfw(CMakePackage):
version('3.0.4', sha256='a4e7c57db2086803de4fc853bd472ff8b6d2639b9aa16e6ac6b19ffb53958caf')
version('3.0.3', sha256='7a182047ba6b1fdcda778b79aac249bb2328b6d141188cb5df29560715d01693')
- depends_on('libxrandr')
- depends_on('libxinerama')
- depends_on('libxcursor')
- depends_on('libxdamage')
- depends_on('libxft')
- depends_on('libxi')
- depends_on('libxmu')
- depends_on('freetype')
- depends_on('fontconfig')
- depends_on('doxygen', type='build')
- depends_on('pkgconfig', type='build')
+ variant("doc", default=False, description="Build documentation")
+
+ # dependencies
+ depends_on('doxygen', type='build', when="+doc")
+
+ # linux only dependencies
+ depends_on('libxrandr', when='platform=linux')
+ depends_on('libxinerama', when='platform=linux')
+ depends_on('libxcursor', when='platform=linux')
+ depends_on('libxdamage', when='platform=linux')
+ depends_on('libxft', when='platform=linux')
+ depends_on('libxi', when='platform=linux')
+ depends_on('libxmu', when='platform=linux')
+ depends_on('freetype', when='platform=linux')
+ depends_on('fontconfig', when='platform=linux')
+ depends_on('pkgconfig', type='build', when='platform=linux')