summaryrefslogtreecommitdiff
path: root/recipes/libogg.recipe
blob: 3af7e2cc882b453abb314c0af1bb22c5409b2706 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python
from cerbero.tools.libtool import LibtoolLibrary

class Recipe(recipe.Recipe):
    name = 'libogg'
    version = '1.3.5'
    stype = SourceType.TARBALL
    url = 'xiph://ogg/%(name)s-%(version)s.tar.xz'
    tarball_checksum = 'c4d91be36fc8e54deae7575241e03f4211eb102afb3fc0775fbbc1b740016705'
    licenses = [{License.BSD_like: ['COPYING']}]
    btype = BuildType.MESON
    patches = [
        'libogg/0001-Add-Meson-build-system.patch',
        'libogg/0002-meson-fix-exports-and-library-name-with-MingW.patch',
    ]

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

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