Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
'--with-gtk=no',
'--with-qt=no',
'--with-x=no',
'--with-jpeg=no',
'--with-imagemagick=no',
'--enable-pthread=no',
'--enable-video=no',
'--enable-shared=yes',
'--enable-static=no',
_env=env)
shprint(sh.make, '-j' + str(cpu_count()), _env=env)
libs = ['zbar/.libs/libzbar.so']
self.install_libs(arch, *libs)
recipe = LibZBarRecipe()
def build_arch(self, arch):
super(LibZBarRecipe, self).build_arch(arch)
env = self.get_recipe_env(arch)
with current_directory(self.get_build_dir(arch.arch)):
shprint(sh.Command('autoreconf'), '-vif', _env=env)
shprint(
sh.Command('./configure'),
'--host=' + arch.toolchain_prefix,
'--target=' + arch.toolchain_prefix,
'--prefix=' + self.ctx.get_python_install_dir(),
# Python bindings are compiled in a separated recipe
'--with-python=no',
'--with-gtk=no',
'--with-qt=no',
'--with-x=no',
'--with-jpeg=no',
'--with-imagemagick=no',
'--enable-pthread=no',