summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/cairo/package.py
blob: 8255e869bea222285418c162e16e96200b18f1c8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
from spack import *

class Cairo(Package):
    """Cairo is a 2D graphics library with support for multiple output devices."""
    homepage = "http://cairographics.org"
    url      = "http://cairographics.org/releases/cairo-1.14.0.tar.xz"

    version('1.14.0', 'fc3a5edeba703f906f2241b394f0cced')

    depends_on("libpng")
    depends_on("glib")
    depends_on("pixman")
    depends_on("fontconfig@2.10.91:") # Require newer version of fontconfig.

    def install(self, spec, prefix):
        configure("--prefix=%s" % prefix,
                  "--disable-trace", # can cause problems with libiberty
                  "--enable-tee")
        make()
        make("install")