# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python class Recipe(recipe.Recipe): name = 'libffi' version = '3.0.11' licenses = [License.BSD_like] files_libs = ['libffi'] files_devel = ['lib/libffi-3.0.11', 'lib/pkgconfig/libffi.pc'] def prepare(self): if self.config.target_platform in [Platform.DARWIN, Platform.IOS]: if self.config.target_arch == Architecture.X86_64: dir = 'x86_64-apple-darwin*' elif self.config.target_arch == Architecture.X86: dir = 'i386-apple-darwin*' elif self.config.target_arch == Architecture.PPC: dir = 'powerpc-apple-darwin*' elif self.config.target_arch == Architecture.ARMv7: dir = 'arm-apple-darwin*' self.make = 'make -C %s' % dir self.make_install = 'make -C %s install' % dir