0abdbe5a7d
Former-commit-id: 7467d4b717762eeaf652d77f1486dd11ffb1ff1f
21 lines
867 B
Python
21 lines
867 B
Python
class Automake (GnuPackage):
|
|
|
|
def __init__(self):
|
|
GnuPackage.__init__(self, 'automake', '1.13', override_properties={
|
|
'build_dependency': True})
|
|
self.extra_stage_files = [
|
|
'share/automake-%{version}/Automake/Config.pm']
|
|
|
|
def arch_build(self, arch):
|
|
if arch == 'darwin-universal':
|
|
self.local_ld_flags = ['-arch i386', '-arch x86_64']
|
|
self.local_gcc_flags = ['-arch i386', '-arch x86_64']
|
|
elif arch == 'darwin-32':
|
|
self.local_ld_flags = ['-arch i386', '-m32']
|
|
self.local_gcc_flags = ['-arch i386', '-m32']
|
|
self.local_configure_flags = ['--build=i386-apple-darwin13.0.0']
|
|
elif arch == 'darwin-64':
|
|
self.local_ld_flags = ['-arch x86_64 -m64']
|
|
self.local_gcc_flags = ['-arch x86_64 -m64']
|
|
Automake()
|