blob: e8b1f7ccef48a523fadd41937ae8349246cd54a3 (
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
|
# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python
class Recipe(recipe.Recipe):
name = 'spandsp'
version = '0.0.6'
stype = SourceType.TARBALL
url = 'http://www.soft-switch.org/downloads/spandsp/spandsp-0.0.6.tar.gz'
licenses = [License.LGPLv2_1Plus]
deps = ['tiff']
allow_parallel_build = False
config_sh = 'sh ./autogen.sh && sh ./configure'
patches = [ 'spandsp/0001-spandsp-do-not-compile-has_X86FEATURE-symbols.patch',
'spandsp/0002-Define-LIBSPANDSP_EXPORTS-when-building-the-spandsp-.patch',
'spandsp/0003-Use-BUILT_SOURCES-to-generate-extra-headers.patch' ]
files_libs = ['libspandsp']
files_devel = ['include/spandsp', 'include/spandsp.h', 'lib/pkgconfig/spandsp.pc']
def prepare(self):
# Workaround broken autoconf test in cross compilation
if self.config.arch != self.config.target_arch or self.config.target_platform == Platform.ANDROID:
self.new_env['ac_cv_func_malloc_0_nonnull'] = 'yes'
self.new_env['ac_cv_func_realloc_0_nonnull'] = 'yes'
if self.config.target_platform == Platform.WINDOWS:
self.patches += ['spandsp/0001-Fix-build-for-windows-using-mingw.patch']
|