From 68cec598dcd801763a5b3ec957ad79927ac52012 Mon Sep 17 00:00:00 2001 From: Cyrus Harrison Date: Thu, 8 Apr 2021 05:14:14 -0700 Subject: glfw: make it build on MacOS (#22626) --- var/spack/repos/builtin/packages/glfw/package.py | 27 ++++++++++++++---------- 1 file 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') -- cgit v1.2.3-70-g09d2