From c7ed23c7f09b48dd100a81690bdb540950a14cbe Mon Sep 17 00:00:00 2001 From: Christopher Denter Date: Tue, 10 May 2011 00:41:28 +0200 Subject: [PATCH] core-sdl: Make it compile on OSX with SDL 1.3 checked out from hg via homebrew --- setup.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index fab0dcb24..a638f8491 100644 --- a/setup.py +++ b/setup.py @@ -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)