summaryrefslogtreecommitdiff
path: root/recipes/tremor.recipe
blob: 93947479c0ebdf24d78bcfb1b84d36a2b36c8298 (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 = 'tremor'
    version = '1.2.1+r18641'
    licenses = [License.BSD_like]
    deps = ['libogg']
    config_sh = 'sh autogen.sh'

    files_libs = ['libvorbisidec']
    files_devel = [
        'include/tremor', 'lib/pkgconfig/vorbisidec.pc']

    def prepare(self):
        if self.config.target_arch == Architecture.ARMv7:
            if self.config.target_platform != Platform.IOS:
                self.new_env['CFLAGS'] = os.environ['CFLAGS'] + " -Wa,-mimplicit-it=thumb "
        elif self.config.target_arch == Architecture.ARM:
            self.new_env['CFLAGS'] = os.environ['CFLAGS'].replace('-mthumb', '')

    def configure(self):
        if self.config.target_platform == Platform.IOS:
            shell.replace(os.path.join(self.build_dir, 'configure.in'), {'-D_ARM_ASSEM_':''})
        super(recipe.Recipe, self).configure()