core-sdl: Make it compile on OSX with SDL 1.3 checked out from hg via homebrew

This commit is contained in:
Christopher Denter 2011-05-10 00:41:28 +02:00
parent 23ae570a9f
commit c7ed23c7f0
1 changed files with 6 additions and 1 deletions

View File

@ -152,7 +152,12 @@ if True:
# simple extensions
sdl_libraries = ['SDL']
sdl_includes = ['/usr/include/SDL']
if platform == 'darwin':
# Paths as per homebrew (modified formula to use hg checkout)
sdl_includes = ['/usr/local/Cellar/sdl/HEAD/include/SDL']
extra_link_args += ['-L', '/usr/local/Cellar/sdl/HEAD/lib']
else:
sdl_includes = ['/usr/include/SDL']
for pyx in (x for x in pyx_files if not 'graphics' in x):
pxd = [x for x in pxd_files if not 'graphics' in x]
module_name = get_modulename_from_file(pyx)