# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python from cerbero.tools.libtool import LibtoolLibrary class Recipe(recipe.Recipe): name = 'libtheora' version = '1.1.1' licenses = [{License.BSD: ['COPYING'], License.Misc: ['LICENSE']}] stype = SourceType.TARBALL url = 'xiph://theora/%(name)s-%(version)s.tar.bz2' tarball_checksum = 'b6ae1ee2fa3d42ac489287d3ec34c5885730b1296f0801ae577a35193d3affbc' deps = ['libogg'] btype = BuildType.MESON meson_options = { 'doc': 'disabled', 'examples': 'disabled', 'spec': 'disabled', } patches = [ 'libtheora/0001-Add-meson-build-system.patch', 'libtheora/0001-meson-fix-build-with-assembly-enabled-on-32-bit-x86.patch', 'libtheora/0001-theora-fix-library-so-versioning-and-add-darwin_vers.patch', ] files_libs = ['libtheora', 'libtheoradec', 'libtheoraenc'] files_devel = ['include/theora', '%(libdir)s/pkgconfig/theora.pc', '%(libdir)s/pkgconfig/theoraenc.pc', '%(libdir)s/pkgconfig/theoradec.pc'] def post_install(self): # Meson does not generate la files LibtoolLibrary('theora', None, None, None, self.config.libdir, self.config.target_platform, deps=['ogg']).save() LibtoolLibrary('theoradec', None, None, None, self.config.libdir, self.config.target_platform, deps=['ogg']).save() LibtoolLibrary('theoraenc', None, None, None, self.config.libdir, self.config.target_platform, deps=['ogg']).save() super().post_install()