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


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

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

    def prepare(self):
        if self.config.target_platform == Platform.IOS and \
            self.config.target_arch in [Architecture.X86, Architecture.X86_64]:
            self.append_env('LDFLAGS', '-Wl,-read_only_relocs,suppress')