summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/libxi/package.py
blob: 5025c73bf891bdd8a4c72323a3e7a2870f6d505e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Copyright 2013-2024 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.package import *


class Libxi(AutotoolsPackage, XorgPackage):
    """libXi - library for the X Input Extension."""

    homepage = "https://cgit.freedesktop.org/xorg/lib/libXi"
    xorg_mirror_path = "lib/libXi-1.7.6.tar.gz"

    license("MIT AND X11")

    version("1.7.6", sha256="4e88fa7decd287e58140ea72238f8d54e4791de302938c83695fc0c9ac102b7e")

    depends_on("pkgconfig", type="build")
    depends_on("libx11@1.6:")
    depends_on("libxext@1.0.99.1:")
    depends_on("libxfixes@5:")
    depends_on("fixesproto@5.0:")
    depends_on("xproto@7.0.13:")
    depends_on("xextproto@7.0.3:")
    depends_on("inputproto@2.2.99.1:")

    @property
    def libs(self):
        return find_libraries("libXi", self.prefix, shared=True, recursive=True)