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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python
from cerbero.tools.libtool import LibtoolLibrary
class Recipe(recipe.Recipe):
name = 'tiff'
version = '4.5.0'
stype = SourceType.TARBALL
url = 'https://download.osgeo.org/libtiff/tiff-%(version)s.tar.gz'
tarball_checksum = 'c7a1d9296649233979fa3eacffef3fa024d73d05d589cb622727b5b08c423464'
licenses = [{License.BSD_like: ['LICENSE.md']}]
deps = [ 'zlib', 'libjpeg-turbo' ]
btype = BuildType.MESON
meson_options = {
# enabled options
'jpeg': 'enabled',
'zlib': 'enabled',
# disabled options
'gl': 'disabled',
'jbig': 'disabled',
'lerc': 'disabled',
'lzma': 'disabled',
'tests': 'disabled',
'webp': 'disabled',
'zstd': 'disabled',
}
patches = [
'tiff/0001-Add-meson-build-based-on-wrapdb-version-4.5.0-3.patch',
'tiff/0002-tiff-add-gl-option-to-disable-OpenGL-support.patch',
'tiff/0003-tiff-add-tests-option-to-disable-building-of-tests.patch',
'tiff/0004-tiff-fix-library-name-and-lib-versioning.patch',
]
files_libs = ['libtiff']
files_devel = ['include/tiffvers.h', 'include/tiffio.h', 'include/tiff.h',
'include/tiffconf.h', '%(libdir)s/pkgconfig/libtiff-4.pc']
def post_install(self):
# Meson does not generate la files
libtool_la = LibtoolLibrary('libtiff', None, None, None, self.config.libdir, self.config.target_platform)
libtool_la.save()
super().post_install()
|