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


class Recipe(recipe.Recipe):
    name = 'pango'
    version = '1.30.1'
    stype = SourceType.TARBALL
    url = 'http://ftp.gnome.org/pub/GNOME/sources/pango/1.30/pango-1.30.1.tar.xz'
    autoreconf = True
    autoreconf_sh = 'ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS" autoreconf -ivf '
    licenses = [License.LGPLv2Plus]
    configure_options = '--with-included-modules --enable-static --disable-gtk-doc'
    deps = ['cairo', 'fontconfig', 'freetype', 'gtk-doc-lite']

    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.LINUX:
            self.configure_options += ' --disable-gtk-doc'
        if self.config.target_platform in [Platform.DARWIN, Platform.ANDROID, Platform.IOS]:
            self.configure_options += ' --without-x '