summaryrefslogtreecommitdiff
path: root/recipes/opencore-amr.recipe
blob: b7848c9aea379a75054e1fd13c91841f5f737c75 (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',
        '%(libdir)s/pkgconfig/opencore-amrwb.pc', '%(libdir)s/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()