summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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":