summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/pixman/package.py
diff options
context:
space:
mode:
Diffstat (limited to 'var/spack/repos/builtin/packages/pixman/package.py')
-rw-r--r--var/spack/repos/builtin/packages/pixman/package.py28
1 files changed, 13 insertions, 15 deletions
diff --git a/var/spack/repos/builtin/packages/pixman/package.py b/var/spack/repos/builtin/packages/pixman/package.py
index c780fd64aa..4191550803 100644
--- a/var/spack/repos/builtin/packages/pixman/package.py
+++ b/var/spack/repos/builtin/packages/pixman/package.py
@@ -1,13 +1,13 @@
##############################################################################
-# Copyright (c) 2013-2016, Lawrence Livermore National Security, LLC.
+# Copyright (c) 2013-2017, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory.
#
# This file is part of Spack.
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
# LLNL-CODE-647188
#
-# For details, see https://github.com/llnl/spack
-# Please also see the LICENSE file for our notice and the LGPL.
+# For details, see https://github.com/spack/spack
+# Please also see the NOTICE and LICENSE files for our notice and the LGPL.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License (as
@@ -26,7 +26,7 @@ from spack import *
import sys
-class Pixman(Package):
+class Pixman(AutotoolsPackage):
"""The Pixman package contains a library that provides low-level
pixel manipulation features such as image compositing and
trapezoid rasterization."""
@@ -37,18 +37,16 @@ class Pixman(Package):
version('0.34.0', 'e80ebae4da01e77f68744319f01d52a3')
version('0.32.6', '3a30859719a41bd0f5cccffbfefdd4c2')
- depends_on('pkg-config', type='build')
+ depends_on('pkg-config@0.9.0:', type='build')
depends_on('libpng')
- def install(self, spec, prefix):
- config_args = ["--prefix=" + prefix,
- "--disable-gtk"]
+ def configure_args(self):
+ args = [
+ '--enable-libpng',
+ '--disable-gtk',
+ ]
- if sys.platform == "darwin":
- config_args.append("--disable-mmx")
+ if sys.platform == 'darwin':
+ args.append('--disable-mmx')
- configure(*config_args)
-
- make()
- make('check')
- make('install')
+ return args