summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorgreen-br <thomas.green@bristol.ac.uk>2024-11-18 20:43:23 +0000
committerGitHub <noreply@github.com>2024-11-18 12:43:23 -0800
commit2c4ac02adf6d052670a9584db8673cc1094dd400 (patch)
tree15556f3e8ef7f34ff7c897744f16277b4f6bdeb0 /var
parent7f76490b316cc3a486422c2e591710a2675f31cf (diff)
downloadspack-2c4ac02adf6d052670a9584db8673cc1094dd400.tar.gz
spack-2c4ac02adf6d052670a9584db8673cc1094dd400.tar.bz2
spack-2c4ac02adf6d052670a9584db8673cc1094dd400.tar.xz
spack-2c4ac02adf6d052670a9584db8673cc1094dd400.zip
Add option to not build GUI for WxWidgets. (#47526)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/wxwidgets/package.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/wxwidgets/package.py b/var/spack/repos/builtin/packages/wxwidgets/package.py
index 6b896039b1..232aec767b 100644
--- a/var/spack/repos/builtin/packages/wxwidgets/package.py
+++ b/var/spack/repos/builtin/packages/wxwidgets/package.py
@@ -35,11 +35,12 @@ class Wxwidgets(AutotoolsPackage):
depends_on("cxx", type="build") # generated
variant("opengl", default=False, description="Enable OpenGL support")
+ variant("gui", default=True, description="Enable GUI support.")
patch("math_include.patch", when="@3.0.1:3.0.2")
depends_on("pkgconfig", type="build")
- depends_on("gtkplus")
+ depends_on("gtkplus", when="+gui")
depends_on("mesa-glu", when="+opengl")
@when("@:3.0.2")
@@ -52,6 +53,8 @@ class Wxwidgets(AutotoolsPackage):
if self.spec.satisfies("+opengl"):
options.append("--with-opengl")
+ if not self.spec.satisfies("+gui"):
+ options.append("--disable-gui")
# see https://trac.wxwidgets.org/ticket/17639
if spec.satisfies("@:3.1.0") and sys.platform == "darwin":