summaryrefslogtreecommitdiff
path: root/recipes/opencore-amr.recipe
blob: cb2f1b594d71664c1481cb90618da9fc8eed0639 (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 = 'opencore-amr'
    version = '0.1.6'
    stype = SourceType.TARBALL
    url = 'sf://.tar.gz'
    tarball_checksum = '483eb4061088e2b34b358e47540b5d495a96cd468e361050fae615b1809dc4a1'
    licenses = [License.Apachev2]
    btype = BuildType.MESON
    meson_options = {
        'examples': 'disabled',
    }

    patches = ['opencore-amr/0001-Add-Meson-build-system.patch']

    files_libs = ['libopencore-amrnb', 'libopencore-amrwb']
    files_devel = ['include/opencore-amrwb', 'include/opencore-amrnb',
        'lib/pkgconfig/opencore-amrwb.pc', 'lib/pkgconfig/opencore-amrnb.pc']

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