diff options
author | Andoni Morales Alastruey <ylatuya@gmail.com> | 2012-04-18 19:13:13 +0200 |
---|---|---|
committer | Andoni Morales Alastruey <ylatuya@gmail.com> | 2012-04-18 19:15:19 +0200 |
commit | 6305f31f6e1ded24714efe895fe6471ca6c43b96 (patch) | |
tree | d2856126629504f9b1bb3426246f84ccf65854ec /config | |
parent | f7b9a13a4528f2f2e1030034ee48178f287b6551 (diff) |
darwin.config: add leopard specific config properly
Diffstat (limited to 'config')
-rw-r--r-- | config/darwin.config | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/config/darwin.config b/config/darwin.config index d0bcc38..8ed1df5 100644 --- a/config/darwin.config +++ b/config/darwin.config @@ -15,19 +15,20 @@ if target_arch == Architecture.X86_64: prefix=prefix or os.path.expanduser('~/cerbero/dist/osx_x86_64') sources=sources or os.path.expanduser('~/cerbero/sources/osx_x86_64') cache_file='osx_x86_64' - osx_sdk_version='10.6' elif target_arch == Architecture.X86: build='i386-apple-darwinx' prefix=prefix or os.path.expanduser('~/cerbero/dist/osx_i386') sources=sources or os.path.expanduser('~/cerbero/sources/osx_i386') cache_file='osx_i386' - osx_sdk_version='10.6' elif target_arch == Architecture.PPC: build='powerpc-apple-darwinx' prefix=prefix or os.path.expanduser('~/cerbero/dist/osx_ppc') sources=sources or os.path.expanduser('~/cerbero/sources/osx_ppc') cache_file='osx_ppc' osx_sdk_version='10.5' + +if distro_version == DistroVersion.LEOPARD: + osx_sdk_version = '10.5' # autotools in OSX 10.5 (Leopard) are a bit oldy/broken. # Bootstraping the system with macports seems to be enough to build. # sudo port install git automake libtool gtk-doc @@ -40,6 +41,8 @@ elif target_arch == Architecture.PPC: os.environ['CC'] = 'gcc-4.2' os.environ['CXX'] = 'g++-4.2' os.environ['CPP'] = 'cpp-4.2' +else: + osx_sdk_version = '10.6' sdk_root = '/Developer/SDKs/MacOSX%s.sdk' % osx_sdk_version sdk='-mmacosx-version-min=%s -isysroot %s' % (osx_sdk_version, sdk_root) |