summaryrefslogtreecommitdiff
path: root/recipes/speex.recipe
blob: cf8d61e5a1fde51dcd49963f13eec9d4697063a2 (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.tools.libtool import LibtoolLibrary

class Recipe(recipe.Recipe):
    name = 'speex'
    version = '1.2.1'
    stype = SourceType.TARBALL
    url = 'xiph://.tar.gz'
    tarball_checksum = '4b44d4f2b38a370a2d98a78329fefc56a0cf93d1c1be70029217baae6628feea'
    licenses = [{License.BSD_like: ['COPYING']}]
    btype = BuildType.MESON
    meson_options = {
        'test-binaries': 'disabled',
        'tools': 'disabled',
    }

    files_libs = ['libspeex']
    files_devel = ['include/speex', '%(libdir)s/pkgconfig/speex.pc']

    # https://gitlab.xiph.org/xiph/speex/-/merge_requests/12
    patches = ['speex/0001-Add-Meson-build-system.patch']

    def post_install(self):
        # Meson does not generate la files
        LibtoolLibrary('libspeex', None, None, None, self.config.libdir, self.config.target_platform).save()
        super().post_install()