summaryrefslogtreecommitdiff
path: root/recipes/vo-aacenc.recipe
blob: 0b6e44df4c905b92bda74bf0d070246ee9d76248 (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 = 'vo-aacenc'
    version = '0.1.3'
    licenses = [License.Apachev2]
    btype = BuildType.MESON
    stype = SourceType.TARBALL
    url = 'sf://opencore-amr/%(name)s-%(version)s.tar.gz'
    tarball_checksum = 'e51a7477a359f18df7c4f82d195dab4e14e7414cbd48cf79cc195fc446850f36'

    files_libs = ['libvo-aacenc']
    files_devel = ['include/vo-aacenc',
        '%(libdir)s/pkgconfig/vo-aacenc.pc']

    patches = [
        # https://wrapdb.mesonbuild.com/v2/vo-aacenc_0.1.3-1/get_patch
        f'{name}/0001-Add-Meson-build.patch',
    ]

    def post_install(self):
        LibtoolLibrary('vo-aacenc', 0, 1, 3, self.config.libdir,
                self.config.target_platform).save()
        super().post_install()