summaryrefslogtreecommitdiff
path: root/recipes/libogg.recipe
blob: 635a71f7168697d439147305633cb1ed13887303 (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
# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python
from cerbero.utils import shell


class Recipe(recipe.Recipe):
    name = 'libogg'
    version = '1.3.5'
    stype = SourceType.TARBALL
    url = 'xiph://ogg/%(name)s-%(version)s.tar.xz'
    tarball_checksum = 'c4d91be36fc8e54deae7575241e03f4211eb102afb3fc0775fbbc1b740016705'
    licenses = [{License.BSD_like: ['COPYING']}]
    patches = []

    files_libs = ['libogg']
    files_devel = ['include/ogg', 'lib/pkgconfig/ogg.pc', 'share/aclocal/ogg.m4']

    async def configure(self):
        if self.config.target_platform == Platform.IOS:
            if Architecture.is_arm(self.config.target_arch):
                # These optimizations make the linker think the object file is not
                # for the arm architecture
                shell.replace (os.path.join(self.build_dir, 'configure.ac'),
                               {'-O4': '-O2'})
                self.autoreconf = True
        await super(recipe.Recipe, self).configure()