summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/libtiff/package.py20
1 files changed, 14 insertions, 6 deletions
diff --git a/var/spack/repos/builtin/packages/libtiff/package.py b/var/spack/repos/builtin/packages/libtiff/package.py
index 7f392457e7..5bde7d3ab6 100644
--- a/var/spack/repos/builtin/packages/libtiff/package.py
+++ b/var/spack/repos/builtin/packages/libtiff/package.py
@@ -56,16 +56,24 @@ class Libtiff(AutotoolsPackage):
conflicts('+webp', when='@:4.0.9')
# https://gitlab.com/libtiff/libtiff/-/merge_requests/243
- patch('no-include-root.patch', when='@4.3.0')
+ patch('no-include-root.patch', when='@4.3.0 platform=darwin')
- depends_on('automake', when='@4.3.0', type='build')
- depends_on('autoconf', when='@4.3.0', type='build')
- depends_on('libtool', when='@4.3.0', type='build')
- depends_on('m4', when='@4.3.0', type='build')
+ depends_on('gl', when='@4.3.0 platform=darwin')
+ depends_on('glu', when='@4.3.0 platform=darwin')
+ depends_on('freeglut', when='@4.3.0 platform=darwin')
+ depends_on('libsm', when='@4.3.0 platform=darwin')
+ depends_on('libice', when='@4.3.0 platform=darwin')
+ depends_on('libxi', when='@4.3.0 platform=darwin')
+ depends_on('libx11', when='@4.3.0 platform=darwin')
+
+ depends_on('automake', when='@4.3.0 platform=darwin', type='build')
+ depends_on('autoconf', when='@4.3.0 platform=darwin', type='build')
+ depends_on('libtool', when='@4.3.0 platform=darwin', type='build')
+ depends_on('m4', when='@4.3.0 platform=darwin', type='build')
@property
def force_autoreconf(self):
- return self.spec.satisfies('@4.3.0')
+ return self.spec.satisfies('@4.3.0 platform=darwin')
def patch(self):
# Remove flags not recognized by the NVIDIA compiler