spack/var/spack/repos/builtin/packages/libdrm/package.py

37 lines
1.6 KiB
Python
Raw Normal View History

# Copyright 2013-2021 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)
2015-02-07 09:24:55 +08:00
from spack import *
2016-08-10 16:50:00 +08:00
class Libdrm(AutotoolsPackage):
"""A userspace library for accessing the DRM, direct rendering manager,
on Linux, BSD and other systems supporting the ioctl interface."""
2015-02-07 09:24:55 +08:00
homepage = "https://dri.freedesktop.org/libdrm/"
2020-02-12 08:57:18 +08:00
url = "https://dri.freedesktop.org/libdrm/libdrm-2.4.59.tar.gz"
version('2.4.100', sha256='6a5337c054c0c47bc16607a21efa2b622e08030be4101ef4a241c5eb05b6619b')
version('2.4.81', sha256='64036c5e0668fdc2b820dcc0ebab712f44fd2c2147d23dc5a6e003b19f0d3e9f')
version('2.4.75', sha256='a411bff814b4336c8908dcbd045cd89fdc7afedc75b795d897d462e467cbb01d')
version('2.4.70', sha256='73615b9c1c4852e5ce045efa19c866e8df98e396b2443bf859eea05574ecb64f')
version('2.4.59', sha256='ed9d03a92c2d80e6310cc350db3430620f1659ae084a07c6824cee7bc81ae8fa')
version('2.4.33', sha256='bd2a8fecf28616f2157ca33ede691c139cc294ed2d0c4244b62ca7d22e98e5a4')
2015-02-07 09:24:55 +08:00
depends_on('pkgconfig', type='build')
depends_on('libpciaccess@0.10:')
Package all of Xorg/X11/XCB (#1740) * Updates to Mesa and other Xorg packages * Add packages for all Xorg Protocol extensions * Add packages for first half of Xorg libraries * Add packages for remaining Xorg libraries * Add packages for all Xorg utilities * Add packages for Xorg documentation tools * Add build deps to Xorg protocol headers * Add packages for XCB * Add build deps to Xorg libraries * Add build deps to Xorg utilities * Add packages for Xorg fonts and font-related utilities * Change font deptype from build to default I wasn't sure which deptype was appropriate at first since none of the packages are actually linked together. I initially chose the build deptype for this reason. However, the font packages don't install into their own prefix. They install into font-config. If font-config is a build dependency, that means you can uninstall it without uninstalling the font packages, which wouldn't make sense since they install into font-config. So I switched them back to the default deptype. * Minor formatting changes to ncview * Add half-way done xorg-server package * Add packages for Xorg test suites, not yet tested! * Add packages for Xorg data * Add first quarter of Xorg apps * Add more packages for Xorg apps * Add dependencies to mesa * Remove comments from mesa package * Flake8 * Add more packages for Xorg apps * Add more packages for Xorg apps * Add more packages for Xorg apps * Add more packages for Xorg apps * Add more packages for Xorg apps * Add package for Sublime Text * Add packages for remaining Xorg apps * Revisit testing packages, add missing dependencies * Add dependencies, clean up FIXMEs
2016-10-12 00:42:20 +08:00
depends_on('libpthread-stubs')
def configure_args(self):
args = []
args.append('--enable-static')
if self.version <= Version('2.4.70'):
# Needed to fix build for spack/spack#1740, but breaks newer
# builds/compilers
args.append('LIBS=-lrt')
if self.spec.satisfies('%gcc@10.0.0:'):
args.append('CFLAGS=-fcommon')
return args