source: orange/install-scripts/mac/fink/matplotlib-py.patch @ 9179:601102019a60

Revision 9179:601102019a60, 1.9 KB checked in by mitar, 2 years ago (diff)

Added our own version of matplotlib Fink package so that it works on Mac OS X 10.7.

RevLine 
[9179]1diff -Nurd matplotlib-1.0.1.orig/setup.cfg matplotlib-1.0.1/setup.cfg
2--- matplotlib-1.0.1.orig/setup.cfg 1969-12-31 19:00:00.000000000 -0500
3+++ matplotlib-1.0.1/setup.cfg  2011-06-07 21:42:17.000000000 -0400
4@@ -0,0 +1,6 @@
5+[gui_support]
6+gtk = True
7+gtkagg = True
8+tkagg = True
9+wxagg = False
10+macosx = True
11diff -Nurd matplotlib-1.0.1.orig/setup.py matplotlib-1.0.1/setup.py
12--- matplotlib-1.0.1.orig/setup.py  2010-07-06 21:41:55.000000000 -0400
13+++ matplotlib-1.0.1/setup.py   2011-06-07 21:43:20.000000000 -0400
14@@ -264,6 +264,9 @@
15 except NameError: additional_params = {}
16 
17 for mod in ext_modules:
18+    mod.include_dirs.append('@PREFIX@/include')
19+    mod.library_dirs.append('@PREFIX@/lib')
20+
21     if options['verbose']:
22         mod.extra_compile_args.append('-DVERBOSE')
23 
24diff -Nurd matplotlib-1.0.1.orig/setupext.py matplotlib-1.0.1/setupext.py
25--- matplotlib-1.0.1.orig/setupext.py   2010-07-06 21:41:55.000000000 -0400
26+++ matplotlib-1.0.1/setupext.py    2011-06-07 21:44:14.000000000 -0400
27@@ -63,7 +63,8 @@
28     # people to :
29     #   make -f make.osx fetch deps mpl_build mpl_install
30 
31-    'darwin' : [],
32+    'darwin' : ['@PREFIX@/lib/freetype219', '@PREFIX@',
33+                '/usr/X11', '/usr/X11R6', '/usr'],
34 
35     'freebsd4' : ['/usr/local', '/usr'],
36     'freebsd5' : ['/usr/local', '/usr'],
37@@ -1011,6 +1012,17 @@
38         module.library_dirs.extend([os.path.join(sys.prefix, 'dlls')])
39 
40     elif sys.platform == 'darwin':
41+        tcl_inc = "@PREFIX@/include"
42+        tk_inc = "@PREFIX@/include"
43+        tcl_lib = "@PREFIX@/lib"
44+        tk_lib = "@PREFIX@/lib"
45+        tk_ver = ""
46+        # Add final versions of directories and libraries to module lists
47+        module.include_dirs.extend([tcl_inc, tk_inc])
48+        module.library_dirs.extend([tcl_lib, tk_lib])
49+        module.libraries.extend(['tk' + tk_ver, 'tcl' + tk_ver])
50+
51+    elif False:
52         # this config section lifted directly from Imaging - thanks to
53         # the effbot!
54 
Note: See TracBrowser for help on using the repository browser.