summaryrefslogtreecommitdiff
path: root/recipes/libogg.recipe
blob: 10680f4a8dc8104565b4a42b79ad2dad769a8034 (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
# -*- 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.0'
    licenses = [License.BSD_like]

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

    def prepare(self):
        if self.config.target_platform == Platform.IOS:
            self.autoreconf = True

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