blob: c9b73d7b5917d23ea828a19579a1e8aa8d72817e (
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 = 'a52dec'
version = '0.7.4'
stype = SourceType.TARBALL
url = 'http://liba52.sourceforge.net/files/a52dec-0.7.4.tar.gz'
licenses = [License.GPLv2Plus]
configure_options = '--with-pic --enable-shared'
autoreconf = True
patches = ['a52dec/0002-Fix-link-cross-compiling-to-x86-in-darwin-platforms.patch',
'a52dec/0003-Disable-AC_C_ALWAYS_INLINE.patch',
'a52dec/0004-configure-let-us-decide-if-we-really-want-PIC-or-not.patch']
files_libs = ['liba52']
files_bins = ['a52dec']
files_devel = ['include/a52dec']
def prepare(self):
if self.config.target_platform == Platform.ANDROID:
self.configure_options += ' --disable-oss'
self.append_env['CFLAGS'] = " -fPIC "
|