blob: 23b8e1b284867e06768367aff155a8220265c5f6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# -*- 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.11'
stype = SourceType.TARBALL
btype = BuildType.MESON
url = 'https://zlib.net/fossils/zlib-%(version)s.tar.gz'
licenses = [License.BSD_like]
meson_options = {'default-library': 'both'}
patches = ['zlib/0001-win32-fix-dll-name.patch',
'zlib/0001-Fix-test-builds-to-use-the-built-libz-headers-librar.patch',
'zlib/0001-Add-a-meson-port.patch']
files_libs = ['libz']
files_devel = ['include/zlib.h', 'include/zconf.h', 'lib/pkgconfig/zlib.pc']
def post_install(self):
libtool_la = LibtoolLibrary('z', 1, 2, 11, self.config.libdir,
self.config.target_platform)
libtool_la.save()
|