--- config_darwin.py.orig 2016-08-21 06:28:55.000000000 +1000
+++ config_darwin.py 2017-07-08 16:04:22.000000000 +1000
from distutils.sysconfig import get_python_inc
from config_unix import DependencyProg
+localbase = os.environ.get('LOCALBASE', '')
FrameworkDependency('IMAGE', 'SDL_image.h', 'libSDL_image', 'SDL_image')],
[Dependency('MIXER', ['SDL_mixer.h', 'SDL/SDL_mixer.h'], 'libSDL_mixer', ['SDL_mixer']),
FrameworkDependency('MIXER', 'SDL_mixer.h', 'libSDL_mixer', 'SDL_mixer')],
- FrameworkDependency('PORTTIME', 'CoreMidi.h', 'CoreMidi', 'CoreMIDI'),
+ FrameworkDependency('PORTTIME', 'CoreMIDI.h', 'CoreMIDI', 'CoreMIDI'),
FrameworkDependency('QUICKTIME', 'QuickTime.h', 'QuickTime', 'QuickTime'),
Dependency('PNG', 'png.h', 'libpng', ['png']),
Dependency('JPEG', 'jpeglib.h', 'libjpeg', ['jpeg']),
print ('Hunting dependencies...')
- incdirs = ['/usr/local/include', '/usr/local/include/SDL',
- '/opt/local/include/freetype2/freetype']
- #libdirs = ['/usr/local/lib', '/usr/X11/lib', '/opt/local/lib']
- libdirs = ['/usr/local/lib', '/opt/local/lib']
+ incdirs = [localbase+'/include']
+ libdirs = [localbase+'/lib']
if isinstance(d, (list, tuple)):