summaryrefslogtreecommitdiff
path: root/recipes/libass.recipe
blob: 952d64531fc80b3737a61256bbbe2f8a92095235 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python


class Recipe(recipe.Recipe):
    name = 'libass'
    version = '0.12.3'
    licenses = [License.BSD_like]
    stype = SourceType.TARBALL
    url = 'https://github.com/libass/libass/releases/download/{0}/libass-{0}.tar.gz'.format(version)
    deps = ['freetype', 'fontconfig', 'libpng', 'fribidi']
    make_check = None
    autoreconf = True

    files_libs = ['libass']
    files_devel = ['include/ass', 'lib/pkgconfig/libass.pc']

    def prepare(self):
        if self.config.target_platform == Platform.IOS:
            self.append_env = {'LDFLAGS': '-Wl,-read_only_relocs,suppress'}