# -*- 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.target_platform == Platform.WINDOWS: self.configure_options = ' --disable-asm --disable-xv --without-x' self.append_env = {'LDFLAGS': '-lpthread'} if self.config.target_platform == Platform.DARWIN: self.configure_options += ' --disable-asm --disable-xv --without-x' if self.config.target_platform == Platform.ANDROID: self.configure_options = ' --disable-xv --without-x' if self.config.target_arch == Architecture.X86: self.configure_options += ' --disable-asm' self.autoreconf = True if self.config.target_platform == Platform.IOS: self.configure_options = ' --disable-xv --without-x' if self.config.target_arch == Architecture.X86: self.configure_options += ' --disable-asm'