diff -Nurd -x'*~' matplotlib-0.99.1.orig/setup.cfg matplotlib-0.99.1/setup.cfg
--- matplotlib-0.99.1.orig/setup.cfg	2009-09-24 04:41:39.000000000 +0200
+++ matplotlib-0.99.1/setup.cfg	2009-09-28 16:53:51.000000000 +0200
@@ -22,8 +22,8 @@
 #           is the default behavior
 #
 ## Date/timezone support:
-pytz = True
-dateutil = True
+pytz = False
+dateutil = False
 
 
 [gui_support]
@@ -51,10 +51,10 @@
 #           otherwise skip silently. This is the default
 #           behavior
 #
-#gtk = False
-#gtkagg = False
+gtk = True
+gtkagg = True
 tkagg = True
-wxagg = True
+wxagg = False
 macosx = True
 
 [rc_options]
diff -Nurd -x'*~' matplotlib-0.99.1.orig/setup.py matplotlib-0.99.1/setup.py
--- matplotlib-0.99.1.orig/setup.py	2008-05-29 18:47:15.000000000 -0400
+++ matplotlib-0.99.1/setup.py	2008-06-18 13:30:19.000000000 -0400
@@ -242,6 +242,8 @@
 for mod in ext_modules:
     if options['verbose']:
         mod.extra_compile_args.append('-DVERBOSE')
+        mod.include_dirs.append('@PREFIX@/include')
+        mod.library_dirs.append('@PREFIX@/lib')
 
 print 'pymods', py_modules
 print 'packages', packages
diff -Nurd -x'*~' matplotlib-0.99.1.orig/setupext.py matplotlib-0.99.1/setupext.py
--- matplotlib-0.99.1.orig/setupext.py	2009-08-23 07:27:32.000000000 +0200
+++ matplotlib-0.99.1/setupext.py	2009-09-28 17:06:40.000000000 +0200
@@ -50,14 +50,14 @@
     'linux2' : ['/usr/local', '/usr'],
     'linux'  : ['/usr/local', '/usr',],
     'cygwin' : ['/usr/local', '/usr',],
-    '_darwin' : ['/sw/lib/freetype2', '/sw/lib/freetype219', '/usr/local',
-                '/usr', '/sw'],
+    'darwin' : ['@PREFIX@/lib/freetype2', '/@PREFIX@',
+                '/usr/X11', '/usr/X11R6', '/usr'],
     # it appears builds with darwin are broken because of all the
     # different flags the deps can be compile with, so I am pushing
     # people to :
     #   make -f make.osx fetch deps mpl_build mpl_install
 
-    'darwin' : [],
+    # 'darwin' : [],
 
     'freebsd4' : ['/usr/local', '/usr'],
     'freebsd5' : ['/usr/local', '/usr'],
@@ -981,6 +981,17 @@
         module.library_dirs.extend([os.path.join(sys.prefix, 'dlls')])
 
     elif sys.platform == 'darwin':
+        tcl_inc = "@PREFIX@/include"
+        tk_inc = "@PREFIX@/include"
+        tcl_lib = "@PREFIX@/lib"
+        tk_lib = "@PREFIX@/lib"
+        tk_ver = ""
+        # Add final versions of directories and libraries to module lists
+        module.include_dirs.extend([tcl_inc, tk_inc])
+        module.library_dirs.extend([tcl_lib, tk_lib])
+        module.libraries.extend(['tk' + tk_ver, 'tcl' + tk_ver])
+
+    elif False:
         # this config section lifted directly from Imaging - thanks to
         # the effbot!
 
