summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/libxcb/package.py
blob: b2543be5da7dca8e963aa90c504213f4cee61ad7 (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
from spack import *

class Libxcb(Package):
    """The X protocol C-language Binding (XCB) is a replacement
    for Xlib featuring a small footprint, latency hiding, direct
    access to the protocol, improved threading support, and
    extensibility."""

    homepage = "http://xcb.freedesktop.org/"
    url      = "http://xcb.freedesktop.org/dist/libxcb-1.11.tar.gz"

    version('1.11', '1698dd837d7e6e94d029dbe8b3a82deb')
    version('1.11.1', '118623c15a96b08622603a71d8789bf3')
    depends_on("python")
    depends_on("xcb-proto")
    depends_on("pkg-config")

    # depends_on('pthread')    # Ubuntu: apt-get install libpthread-stubs0-dev
    # depends_on('xau')        # Ubuntu: apt-get install libxau-dev

    def patch(self):
        filter_file('typedef struct xcb_auth_info_t {', 'typedef struct {', 'src/xcb.h')


    def install(self, spec, prefix):
        configure("--prefix=%s" % prefix)

        make()
        make("install")