blob: 1e98b8662f9794748b7902817711a8044af59fb6 (
plain)
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
|
# -*- 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', 'lib/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()
|