blob: 9aff79dd508bb05b431895bd1dcdae1e9cefda24 (
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
|
# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python
class Recipe(recipe.Recipe):
name = 'libdv'
version = '1.0.0'
licenses = [License.LGPLv2_1Plus]
autoreconf = True
files_libs = ['libdv']
files_devel = ['include/libdv', 'lib/pkgconfig/libdv.pc']
def prepare(self):
if self.config.variants.nox11:
self.configure_options += ' --disable-xv --without-x'
if self.config.target_platform == Platform.WINDOWS:
self.configure_options += ' --disable-asm'
self.append_env = {'LDFLAGS': '-lpthread'}
elif self.config.target_platform == Platform.DARWIN:
self.configure_options += ' --disable-asm'
elif self.config.target_platform == Platform.ANDROID:
if self.config.target_arch in [Architecture.X86, Architecture.X86_64]:
self.configure_options += ' --disable-asm'
self.autoreconf = True
elif self.config.target_platform == Platform.IOS:
if self.config.target_arch in [Architecture.X86, Architecture.X86_64]:
self.configure_options += ' --disable-asm'
|