import os class MonoLlvmPackage (GitHubPackage): def __init__(self): GitHubPackage.__init__(self, 'mono', 'llvm', '3.0', revision='8b1520c8aae53e219cf80cdc0f02ad96600887d6', configure_flags=[ '--enable-optimized', '--enable-assertions=no', '--enable-targets="x86,x86_64"'] ) # This package would like to be lipoed. self.needs_lipo = True # TODO: find out which flags are causing issues. reset ld_flags for the # package self.ld_flags = [] self.cpp_flags = [] def arch_build(self, arch): Package.profile.arch_build(arch, self) if arch == 'darwin-64': # 64-bit build pass self.local_configure_flags.extend(['--build=x86_64-apple-darwin11.2.0']) if arch == 'darwin-32': self.local_configure_flags.extend(['--build=i386-apple-darwin11.2.0']) # LLVM says that libstdc++4.6 is broken and we should use libstdc++4.7. # This switches it to the right libstdc++. if Package.profile.name == 'darwin': self.local_configure_flags.extend(['--enable-libcpp=yes']) MonoLlvmPackage()