# -*- 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()