1class Autoconf (GnuPackage): 2 3 def __init__(self): 4 GnuPackage.__init__(self, 'autoconf', '2.69', override_properties={ 5 'build_dependency': True}) 6 self.extra_stage_files = ['share/autoconf/autom4te.cfg'] 7 8 def install(self): 9 Package.install(self) 10 aclocal_dir = os.path.join(self.staged_prefix, "share", "aclocal") 11 if not os.path.exists(aclocal_dir): 12 os.makedirs(aclocal_dir) 13 14 def arch_build(self, arch): 15 if arch == 'darwin-universal': 16 self.local_ld_flags = ['-arch i386', '-arch x86_64'] 17 self.local_gcc_flags = ['-arch i386', '-arch x86_64'] 18 elif arch == 'darwin-32': 19 self.local_ld_flags = ['-arch i386', '-m32'] 20 self.local_gcc_flags = ['-arch i386', '-m32'] 21 self.local_configure_flags = ['--build=i386-apple-darwin11.2.0'] 22 elif arch == 'darwin-64': 23 self.local_ld_flags = ['-arch x86_64 -m64'] 24 self.local_gcc_flags = ['-arch x86_64 -m64'] 25 26 27Autoconf() 28