summaryrefslogtreecommitdiff
path: root/recipes/wavpack.recipe
blob: c12487ba5f7596fb99166fd865def8e84c5cf304 (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
26
# -*- 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'
    tarball_checksum = '1af7eaccbf560271013d4179d98ef6fc681a2bb3603382577eeba73d438785f4'
    licenses = [{License.BSD_like: ['COPYING']}]
    autoreconf = True
    configure_options = ' --disable-apps '

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

    async 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 '

        await super(Recipe, self).configure()