2019-01-01 14:04:23 +08:00
|
|
|
# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other
|
2018-10-08 04:52:23 +08:00
|
|
|
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
2016-05-12 12:22:25 +08:00
|
|
|
#
|
2018-10-08 04:52:23 +08:00
|
|
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
|
|
|
|
2015-02-07 09:24:55 +08:00
|
|
|
from spack import *
|
2017-03-17 22:09:09 +08:00
|
|
|
import sys
|
2015-02-07 09:24:55 +08:00
|
|
|
|
2016-08-10 16:50:00 +08:00
|
|
|
|
2015-02-07 09:24:55 +08:00
|
|
|
class Libdrm(Package):
|
2017-06-30 19:48:43 +08:00
|
|
|
"""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
|
|
|
|
2016-10-12 00:42:20 +08:00
|
|
|
homepage = "http://dri.freedesktop.org/libdrm/"
|
2015-02-07 09:24:55 +08:00
|
|
|
url = "http://dri.freedesktop.org/libdrm/libdrm-2.4.59.tar.gz"
|
|
|
|
|
2017-06-30 19:48:43 +08:00
|
|
|
version('2.4.81', 'dc575dd661a082390e9f1366ca5734b0')
|
2017-05-26 11:19:59 +08:00
|
|
|
version('2.4.75', '743c16109d91a2539dfc9cc56130d695')
|
2016-10-12 00:42:20 +08:00
|
|
|
version('2.4.70', 'a8c275bce5f3d71a5ca25e8fb60df084')
|
2015-02-07 09:24:55 +08:00
|
|
|
version('2.4.59', '105ac7af1afcd742d402ca7b4eb168b6')
|
2015-02-09 08:09:13 +08:00
|
|
|
version('2.4.33', '86e4e3debe7087d5404461e0032231c8')
|
2015-02-07 09:24:55 +08:00
|
|
|
|
2017-11-23 23:05:38 +08:00
|
|
|
depends_on('pkgconfig', type='build')
|
2017-03-17 22:09:09 +08:00
|
|
|
depends_on('libpciaccess@0.10:', when=(sys.platform != 'darwin'))
|
2016-10-12 00:42:20 +08:00
|
|
|
depends_on('libpthread-stubs')
|
2016-03-31 11:18:04 +08:00
|
|
|
|
2015-02-07 09:24:55 +08:00
|
|
|
def install(self, spec, prefix):
|
2016-10-12 00:42:20 +08:00
|
|
|
configure('--prefix={0}'.format(prefix),
|
|
|
|
'--enable-static',
|
|
|
|
'LIBS=-lrt') # This fixes a bug with `make check`
|
2015-02-07 09:24:55 +08:00
|
|
|
|
|
|
|
make()
|
2016-10-12 00:42:20 +08:00
|
|
|
make('check')
|
|
|
|
make('install')
|