summaryrefslogtreecommitdiff
path: root/recipes/zlib.recipe
blob: c2499423a7f3fb53125a3f432ec9c40b3914ff3d (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
# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python
from cerbero.tools.libtool import LibtoolLibrary


class Recipe(recipe.Recipe):
    name = 'zlib'
    version = '1.2.12'
    stype = SourceType.TARBALL
    btype = BuildType.MESON
    url = 'https://zlib.net/fossils/zlib-%(version)s.tar.gz'
    tarball_checksum = '91844808532e5ce316b3c010929493c0244f3d37593afd6de04f71821d5136d9'
    licenses = [{License.BSD_like: ['README']}]
    patches = [
        'zlib/0001-Add-a-meson-port.patch',
        'zlib/0001-zconf.h-Check-that-HAVE_UNISTD_H-is-not-0.patch',
        'zlib/0001-meson-add-the-DSTDC-define-to-include-standard-C-hea.patch',
    ]
    files_libs = ['libz']
    files_devel = ['include/zlib.h', 'include/zconf.h', '%(libdir)s/pkgconfig/zlib.pc']

    def post_install(self):
        libtool_la = LibtoolLibrary('z', 1, 2, 12, self.config.libdir,
                self.config.target_platform)
        libtool_la.save()
        super().post_install()