Ticket #15123: patch-config_darwin.py.diff.diff
File patch-config_darwin.py.diff.diff, 1.4 KB (added by cpettitt@…, 17 years ago) |
---|
-
patch-config_darwin.py.diff
old new 1 --- config_darwin.py.orig 2008-0 3-29 08:45:44.000000000 +11002 +++ config_darwin.py 2008-04-25 20:50:36.000000000 +10001 --- config_darwin.py.orig 2008-04-25 06:48:32.000000000 -0700 2 +++ config_darwin.py 2008-04-25 06:49:01.000000000 -0700 3 3 @@ -4,6 +4,8 @@ 4 4 from glob import glob 5 5 from distutils.sysconfig import get_python_inc … … 9 9 class Dependency: 10 10 libext = '.a' 11 11 def __init__(self, name, checkhead, checklib, libs): 12 @@ -86,11 +88,11 @@ 12 @@ -30,6 +32,9 @@ 13 if os.path.isfile(path): 14 self.lib_dir = dir 15 break 16 + if self.name == 'SDL': 17 + inc = '-I' + '/usr/X11R6/include' 18 + self.cflags = inc + ' ' + self.cflags 19 if self.lib_dir and self.inc_dir: 20 print self.name + ' '[len(self.name):] + ': found' 21 self.found = 1 22 @@ -86,11 +91,11 @@ 13 23 print self.name + ' '[len(self.name):] + ': not found' 14 24 15 25 DEPS = [ … … 26 36 Dependency('PNG', 'png.h', 'libpng', ['png']), 27 37 Dependency('JPEG', 'jpeglib.h', 'libjpeg', ['jpeg']), 28 38 Dependency('SCRAP', '','',[]) 29 @@ -101,8 +10 3,8 @@39 @@ -101,8 +106,8 @@ 30 40 global DEPS 31 41 32 42 print 'Hunting dependencies...'