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

61 lines
2.1 KiB
Python
Raw Normal View History

# Copyright 2013-2019 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 import *
import sys
2016-08-10 16:50:00 +08:00
class Pixman(AutotoolsPackage):
"""The Pixman package contains a library that provides low-level
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
pixel manipulation features such as image compositing and
trapezoid rasterization."""
homepage = "http://www.pixman.org"
url = "http://cairographics.org/releases/pixman-0.32.6.tar.gz"
2019-02-14 04:26:51 +08:00
version('0.38.0', sha256='a7592bef0156d7c27545487a52245669b00cf7e70054505381cff2136d890ca8')
version('0.34.0', sha256='21b6b249b51c6800dc9553b65106e1e37d0e25df942c90531d4c3997aa20a88e')
version('0.32.6', sha256='3dfed13b8060eadabf0a4945c7045b7793cc7e3e910e748a8bb0f0dc3e794904')
depends_on('pkgconfig', type='build')
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('libpng')
2018-05-07 22:51:27 +08:00
# As discussed here:
# https://bugs.freedesktop.org/show_bug.cgi?id=104886
# __builtin_shuffle was removed in clang 5.0.
# From version 9.1 apple-clang is based on clang 5.0.
# Patch is obtained from above link.
2019-04-15 20:49:02 +08:00
patch('clang.patch', when='@0.34%clang@9.1.0-apple:')
2018-05-07 22:51:27 +08:00
@run_before('build')
def patch_config_h_for_intel(self):
config_h = join_path(self.stage.source_path, 'config.h')
# Intel disguises itself as GNU, but doesn't implement
# the same builtin functions. This causes in this case
# a positive detection of GCC vector extensions, which
# is bound to fail at compile time because Intel has no
# __builtin_shuffle. See also:
#
# https://software.intel.com/en-us/forums/intel-c-compiler/topic/758013
#
if '%intel' in self.spec:
filter_file(
r'#define HAVE_GCC_VECTOR_EXTENSIONS /\*\*/',
'/* #undef HAVE_GCC_VECTOR_EXTENSIONS */',
config_h
)
def configure_args(self):
args = [
'--enable-libpng',
'--disable-gtk',
]
if sys.platform == 'darwin':
args.append('--disable-mmx')
return args