summaryrefslogtreecommitdiff
path: root/recipes/cairo.recipe
blob: b3f1fed1273c84e81fde45060ac0c83b903d2d86 (plain)
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
28
29
30
31
32
33
34
35
36
# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python


class Recipe(recipe.Recipe):
    name = 'cairo'
    version = '1.10.2'
    # either LGPLv2.1 or MPLv1.1
    licenses = [License.LGPLv2_1]
    deps = ['glib', 'libpng', 'zlib', 'pixman', 'fontconfig', 'freetype']

    files_libs = ['libcairo', 'libcairo-gobject', 'libcairo-script-interpreter']
    files_devel = [
        'lib/pkgconfig/cairo-fc.pc',
        'lib/pkgconfig/cairo.pc',
        'lib/pkgconfig/cairo-ps.pc',
        'lib/pkgconfig/cairo-ft.pc',
        'lib/pkgconfig/cairo-pdf.pc',
        'lib/pkgconfig/cairo-svg.pc',
        'lib/pkgconfig/cairo-gobject.pc',
        'lib/pkgconfig/cairo-png.pc',
        'include/cairo',
        ]
    platform_files_devel = {
        Platform.WINDOWS: [ 'lib/pkgconfig/cairo-win32-font.pc',
                            'lib/pkgconfig/cairo-win32.pc'],
        Platform.LINUX: ['lib/pkgconfig/cairo-xlib-xrender.pc',
                         'lib/pkgconfig/cairo-xlib.pc'],
        Platform.DARWIN: ['lib/pkgconfig/cairo-quartz-font.pc',
                         'lib/pkgconfig/cairo-quartz-image.pc',
                         'lib/pkgconfig/cairo-quartz.pc',
                         ]
    }

    def prepare(self):
        if self.config.target_platform == Platform.DARWIN:
            self.configure_options += '--without-x --enable-quartz-font --enable-quartz-image'