summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/xfwp/package.py
blob: 250df59853ee0d4a77d1b117f5974b5dc40c99ca (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
# Copyright 2013-2022 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 Xfwp(AutotoolsPackage, XorgPackage):
    """xfwp proxies X11 protocol connections, such as through a firewall."""

    homepage = "https://cgit.freedesktop.org/xorg/app/xfwp"
    xorg_mirror_path = "app/xfwp-1.0.3.tar.gz"

    version('1.0.3', sha256='6fe243bde0374637e271a3f038b5d6d79a04621fc18162727782392069c5c04d')

    depends_on('libice')

    depends_on('xproto')
    depends_on('xproxymanagementprotocol')
    depends_on('pkgconfig', type='build')
    depends_on('util-macros', type='build')

    # Fixes this and a long list of other compilation errors:
    # io.c:1039:7: error: implicit declaration of function 'swab'
    def setup_build_environment(self, env):
        env.append_flags('CPPFLAGS', '-D_GNU_SOURCE')