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