summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorOmar Padron <omar.padron@kitware.com>2019-08-22 14:08:07 -0400
committerChuck Atkins <chuck.atkins@kitware.com>2019-08-22 14:08:07 -0400
commit47238b9714d6ef32e7867ac915936cc5bd6599fd (patch)
tree9b2882f79945cb25fcdbef74d8a6e47a94be8b86 /var
parent892a552495bf66403932c81489954df8b19a33b0 (diff)
downloadspack-47238b9714d6ef32e7867ac915936cc5bd6599fd.tar.gz
spack-47238b9714d6ef32e7867ac915936cc5bd6599fd.tar.bz2
spack-47238b9714d6ef32e7867ac915936cc5bd6599fd.tar.xz
spack-47238b9714d6ef32e7867ac915936cc5bd6599fd.zip
new package: libglvnd (#12183)
* new package: libglvnd * remove virtual provides from libglvnd libglvnd does not provide them directly, but through implementations that depend on it. * fix flake8 errors * libglvnd: fix style/remove unecessary variants * remove older libglvnd version * explicitly enable all libglvnd stubs * libglvnd: conflict with non-linux platform
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/libglvnd/package.py45
1 files changed, 45 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/libglvnd/package.py b/var/spack/repos/builtin/packages/libglvnd/package.py
new file mode 100644
index 0000000000..4f6fb0b938
--- /dev/null
+++ b/var/spack/repos/builtin/packages/libglvnd/package.py
@@ -0,0 +1,45 @@
+# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other
+# Spack Project Developers. See the top-level COPYRIGHT file for details.
+#
+# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+
+from spack import *
+
+
+class Libglvnd(AutotoolsPackage):
+ """The GL Vendor-Neutral Dispatch library
+
+ libglvnd is a vendor-neutral dispatch layer for arbitrating OpenGL API
+ calls between multiple vendors. It allows multiple drivers from different
+ vendors to coexist on the same filesystem, and determines which vendor to
+ dispatch each API call to at runtime.
+
+ Both GLX and EGL are supported, in any combination with OpenGL and OpenGL
+ ES."""
+
+ homepage = "https://github.com/NVIDIA/libglvnd"
+ url = "https://github.com/NVIDIA/libglvnd/releases/download/v1.1.1/libglvnd-1.1.1.tar.gz"
+ git = "https://github.com/NVIDIA/libglvnd.git"
+
+ version('master', branch='master')
+
+ version('1.1.1', sha256='71918ed1261e4eece18c0b74b50dc62c0237b8d526e83277ef078554544720b9')
+
+ conflicts('platform=darwin', msg='libglvnd is linux specific')
+ conflicts('platform=bgq', msg='libglvnd is linux specific')
+
+ depends_on('libxext')
+ depends_on('libx11')
+ depends_on('glproto')
+
+ @when('@master')
+ def autoreconf(self, spec, prefix):
+ autogen = Executable('./autogen.sh')
+ autogen()
+
+ def configure_args(self):
+ return [
+ '--enable-egl',
+ '--enable-gles',
+ '--enable-glx'
+ ]