Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

osx macports vs homebrew patch

  • Loading branch information...
commit 4afc552719cb6a7ff31fcb5e6f5c70863023300b 1 parent 4593a68
@gaborpapp gaborpapp authored
Showing with 8 additions and 4 deletions.
  1. +8 −4 SConstruct
View
12 SConstruct
@@ -95,10 +95,14 @@ if env['PLATFORM'] == 'win32':
LibPaths += [ "/MinGW/lib" ]
if env['PLATFORM'] == 'darwin':
- IncludePaths += ['/opt/local/include', '/opt/local/include/freetype2',
- '/usr/X11/include', '/usr/X11/include/freetype2']
- LibPaths += ['/usr/X11/lib']
- if os.path.exists('/opt/local/lib'): LibPaths += ['/opt/local/lib']
+ if os.path.exists('/opt/local/lib'):
+ # macports
+ IncludePaths += ['/opt/local/include', '/opt/local/include/freetype2']
+ LibPaths += ['/opt/local/lib']
+ else:
+ # homebrew
+ IncludePaths += ['/usr/X11/include', '/usr/X11/include/freetype2']
+ LibPaths += ['/usr/X11/lib']
env.Append(CPPPATH = IncludePaths)
env.Append(LIBPATH = LibPaths)
Please sign in to comment.
Something went wrong with that request. Please try again.