blob: 760a2b6a42ace2337af9da8bf2638d9fc2bab8ce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# -*- 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
patches = []
files_libs = ['libspandsp']
files_devel = ['include/spandsp', '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']
|