2016-05-12 12:22:25 +08:00
|
|
|
##############################################################################
|
|
|
|
# Copyright (c) 2013-2016, 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.
|
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU Lesser General Public License (as
|
|
|
|
# published by the Free Software Foundation) version 2.1, February 1999.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful, but
|
|
|
|
# WITHOUT ANY WARRANTY; without even the IMPLIED WARRANTY OF
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the terms and
|
|
|
|
# conditions of the GNU Lesser General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU Lesser General Public
|
|
|
|
# License along with this program; if not, write to the Free Software
|
|
|
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
##############################################################################
|
2014-12-26 08:09:42 +08:00
|
|
|
from spack import *
|
2016-10-06 17:43:34 +08:00
|
|
|
import sys
|
2014-12-26 08:09:42 +08:00
|
|
|
|
2016-08-10 16:50:00 +08:00
|
|
|
|
2014-12-26 08:09:42 +08:00
|
|
|
class Pixman(Package):
|
|
|
|
"""The Pixman package contains a library that provides low-level
|
2016-10-12 00:42:20 +08:00
|
|
|
pixel manipulation features such as image compositing and
|
|
|
|
trapezoid rasterization."""
|
|
|
|
|
2014-12-26 08:09:42 +08:00
|
|
|
homepage = "http://www.pixman.org"
|
|
|
|
url = "http://cairographics.org/releases/pixman-0.32.6.tar.gz"
|
|
|
|
|
2016-10-12 00:42:20 +08:00
|
|
|
version('0.34.0', 'e80ebae4da01e77f68744319f01d52a3')
|
2014-12-26 08:09:42 +08:00
|
|
|
version('0.32.6', '3a30859719a41bd0f5cccffbfefdd4c2')
|
|
|
|
|
2016-10-12 00:42:20 +08:00
|
|
|
depends_on('pkg-config', type='build')
|
|
|
|
depends_on('libpng')
|
2014-12-26 08:09:42 +08:00
|
|
|
|
|
|
|
def install(self, spec, prefix):
|
2016-10-06 17:43:34 +08:00
|
|
|
config_args = ["--prefix=" + prefix,
|
|
|
|
"--disable-gtk"]
|
|
|
|
|
|
|
|
if sys.platform == "darwin":
|
|
|
|
config_args.append("--disable-mmx")
|
|
|
|
|
|
|
|
configure(*config_args)
|
|
|
|
|
2014-12-26 08:09:42 +08:00
|
|
|
make()
|
2016-10-12 00:42:20 +08:00
|
|
|
make('check')
|
|
|
|
make('install')
|