summaryrefslogtreecommitdiff
path: root/recipes/pango.recipe
blob: 8abe0c812e1179ca2991478408a3b5e764879891 (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
# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python


class Recipe(recipe.Recipe):
    name = 'pango'
    version = '1.28.4'
    autoreconf = True
    license = License.LGPLv2_1
    configure_options = '--with-included-modules '
    deps = ['cairo', 'fontconfig', 'freetype']

    files_libs = ['libpangocairo-1.0', 'libpango-1.0', 'libpangoft2-1.0']
    files_bins = ['pango-querymodules', 'pango-view']
    files_devel = ['include/pango-1.0',
        'lib/pkgconfig/pangoft2.pc', 'lib/pkgconfig/pango.pc',
        'lib/pkgconfig/pangocairo.pc']
    platform_files_libs = {
        Platform.WINDOWS: ['libpangowin32-1.0'],
        Platform.LINUX: ['libpangox-1.0'],
    }
    platform_files_devel = {
        Platform.WINDOWS: ['lib/pkgconfig/pangowin32.pc'],
        Platform.LINUX: ['lib/pkgconfig/pangox.pc'],
    }

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