summaryrefslogtreecommitdiff
path: root/recipes/wavpack.recipe
blob: e2f79ff0f29c63863cbac4785590f7fa86df8ed9 (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 = 'wavpack'
    version = '5.1.0'
    stype = SourceType.TARBALL
    url = 'https://github.com/dbry/WavPack/archive/%(version)s.tar.gz'
    tarball_dirname = 'WavPack-%(version)s'
    licenses = [License.BSD_like]
    autoreconf = True
    configure_options = ' --disable-apps '

    files_libs = ['libwavpack']
    files_devel = ['include/wavpack', 'lib/pkgconfig/wavpack.pc']

    def configure(self):
        shell.replace(os.path.join(self.build_dir, 'Makefile.am'),
            {'SUBDIRS = src include cli man': 'SUBDIRS = src include man'})
        if self.config.target_arch not in [Architecture.X86, Architecture.X86_64, Architecture.ARMv7, Architecture.ARMv7S] or self.config.target_platform == Platform.IOS:
            self.configure_options += ' --disable-asm '

        super(Recipe, self).configure()