# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python from cerbero.tools.libtool import LibtoolLibrary class Recipe(recipe.Recipe): name = 'opencore-amr' version = '0.1.6' stype = SourceType.TARBALL url = 'sf://.tar.gz' tarball_checksum = '483eb4061088e2b34b358e47540b5d495a96cd468e361050fae615b1809dc4a1' licenses = [License.Apachev2] btype = BuildType.MESON meson_options = { 'examples': 'disabled', } patches = ['opencore-amr/0001-Add-Meson-build-system.patch'] files_libs = ['libopencore-amrnb', 'libopencore-amrwb'] files_devel = ['include/opencore-amrwb', 'include/opencore-amrnb', '%(libdir)s/pkgconfig/opencore-amrwb.pc', '%(libdir)s/pkgconfig/opencore-amrnb.pc'] def post_install(self): # Meson does not generate la files LibtoolLibrary('libopencore-amrnb', None, None, None, self.config.libdir, self.config.target_platform).save() LibtoolLibrary('libopencore-amrwb', None, None, None, self.config.libdir, self.config.target_platform).save() super().post_install()