blob: 0019255ba7926dd831d5ecb988cfbad2c6b52156 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python
class Recipe(recipe.Recipe):
name = 'libffi'
version = '3.0.10'
license = 'BSD-like'
files_libs = ['libffi']
files_devel = ['lib/libffi-3.0.10', 'lib/pkgconfig/libffi.pc']
def prepare(self):
if self.config.target_platform == Platform.DARWIN:
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*'
self.make = 'make -C %s' % dir
self.make_install = 'make -C %s install' % dir
|