summaryrefslogtreecommitdiff
path: root/recipes/dav1d.recipe
blob: c8209d2197cd0c770b3320b30e2553b1fed5e595 (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
27
28
# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python

from cerbero.tools.libtool import LibtoolLibrary
import shutil

class Recipe(recipe.Recipe):
    name = 'dav1d'
    version = '1.1.0'
    stype = SourceType.TARBALL
    url = 'https://download.videolan.org/pub/videolan/%(name)s/%(version)s/%(name)s-%(version)s.tar.xz'
    tarball_checksum = 'fb57aae7875f28c30fb3dbae4a3683d27e2f91dde09ce5c60c22cef9bc58dfd1'
    licenses = [{License.BSD_like: ['COPYING']}]

    btype = BuildType.MESON
    meson_options = {
        'enable_tools': 'false',
        'enable_examples': 'false',
        'enable_tests': 'false',
    }

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

    def post_install(self):
        libtool_la = LibtoolLibrary('dav1d', None, None, None, self.config.libdir,
                                    self.config.target_platform)
        libtool_la.save()
        super().post_install()