spack/var/spack/repos/builtin/packages/mesa-glu/package.py
Chuck Atkins 9f848205e4 mesa: re-written to new meson build system (#10482)
* mesa: re-writen to new meson build system

* xorg-server: Remove unneeded mesa dependency

* glx: provide the virtual GLX package

* Convert most "mesa" dependencies to use virtual gl and glx dependencies

* mesa: Switch to always building from the git repo instead of a tarball

* Use gl and glx version ranges instead of exact versions

* glx: provide a default package

* add auto to swr variant

* Revert "add auto to swr variant"

This reverts commit 2e7cd8a8ac.

* update mesa package to version 19.0

* set +glx by default only when running on linux

* fix style issues in geant4 package

* remove virtual package "egl"
2019-05-01 17:57:33 -05:00

28 lines
794 B
Python

# 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 MesaGlu(AutotoolsPackage):
"""This package provides the Mesa OpenGL Utility library."""
homepage = "https://www.mesa3d.org"
url = "https://www.mesa3d.org/archive/glu/glu-9.0.0.tar.gz"
version('9.0.0', 'bbc57d4fe3bd3fb095bdbef6fcb977c4')
depends_on('gl@3:')
provides('glu@1.3')
@property
def libs(self):
for dir in ['lib64', 'lib']:
libs = find_libraries('libGLU', join_path(self.prefix, dir),
shared=True, recursive=False)
if libs:
return libs