summaryrefslogtreecommitdiff
path: root/recipes/wavpack.recipe
blob: b78156006307275d50c4c82afe80d5d8e070c690 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# -*- 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 = '4.70.0'
    stype = SourceType.TARBALL
    url = 'http://www.wavpack.com/wavpack-4.70.0.tar.bz2'
    licenses = [License.BSD_like]

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

    def configure(self):
        if self.config.target_platform == Platform.ANDROID:
            self.autoreconf = True
            shell.replace(os.path.join(self.build_dir, 'Makefile.am'),
                {'SUBDIRS = src include cli man': 'SUBDIRS = src include man'})
        super(Recipe, self).configure()