evil osx stuff

This commit is contained in:
Thomas Nagy 2011-11-19 13:21:02 +01:00
parent 7e904b7e74
commit e6f8d1e9ee
2 changed files with 3 additions and 3 deletions

View File

@ -635,8 +635,5 @@ def options(opt):
for i in 'qtdir qtbin qtlibs'.split():
opt.add_option('--'+i, type='string', default='', dest=i)
if sys.platform == "darwin":
opt.add_option('--no-qt4-framework', action="store_false", help='do not use the framework version of Qt4 in OS X', dest='use_qt4_osxframework',default=True)
opt.add_option('--translate', action="store_true", help="collect translation strings", dest="trans_qt4", default=False)

View File

@ -468,6 +468,9 @@ def unversioned_sys_platform():
elif s in ('SunOS', 'Solaris'):
return 'sunos'
else: s = s.lower()
if s == 'powerpc':
s = 'darwin'
if s == 'win32' or s.endswith('os2') and s != 'sunos2': return s
return re.split('\d+$', s)[0]