# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python from cerbero.tools.libtool import LibtoolLibrary class Recipe(recipe.Recipe): name = 'sbc' version = '2.0' stype = SourceType.TARBALL url = 'https://www.kernel.org/pub/linux/bluetooth/sbc-%(version)s.tar.xz' tarball_checksum = '8f12368e1dbbf55e14536520473cfb338c84b392939cc9b64298360fd4a07992' licenses = [License.LGPLv2_1Plus] btype = BuildType.MESON meson_options = { 'tester': 'disabled', 'tools': 'disabled', } files_libs = ['libsbc'] files_devel = ['include/sbc/sbc.h', '%(libdir)s/pkgconfig/sbc.pc'] patches = ['sbc/0001-sbc-Use-stdint.h.patch', 'sbc/0002-Don-t-use-NEON-with-aarch64-on-Clang.patch', 'sbc/0003-sbc.h-Define-ssize_t-when-building-with-MSVC.patch', # From https://gitlab.freedesktop.org/tpm/sbc 'sbc/0004-Add-support-for-Meson-build-system.patch', 'sbc/0005-Fix-build-with-MSVC.patch'] def post_install(self): # Meson does not generate la files LibtoolLibrary('libsbc', None, None, None, self.config.libdir, self.config.target_platform).save() super().post_install()