the Fink project is an effort to port
popular Unix programs to Mac OS X
Info2: <<
# https://github.com/matplotlib/matplotlib/issues/434
Package: matplotlib-py%type_pkg[python]
Version: 1.1.0
Revision: 2
Distribution: (%type_pkg[python] = 24) 10.4, (%type_pkg[python] = 24) 10.5
Type: python (2.4 2.5 2.6 2.7)
Source: mirror:sourceforge:matplotlib/matplotlib-%v.tar.gz
Source-MD5: 57a627f30b3b27821f808659889514c2
# FIX: libpng15 failed to work.
Maintainer: Kurt Schwehr
Depends: <<
atk1-shlibs (>= 1.20.0-1),
cairo-shlibs (>= 1.6-1),
configobj-py%type_pkg[python],
dateutil-py%type_pkg[python],
fontconfig2-shlibs (>= 2.4.1-1),
freetype219-shlibs (>= 2.3.5-1),
glib2-shlibs (>= 2.14.0-1),
gtk+2-shlibs (>= 2.12.0-1),
libgettext8-shlibs,
libiconv,
libpng14-shlibs,
pango1-xft2-ft219-shlibs (>= 1.18.4-4),
pygobject2-py%type_pkg[python],
pygtk2-gtk-py%type_pkg[python],
python%type_pkg[python],
pytz-py%type_pkg[python],
numpy-py%type_pkg[python],
tcltk-shlibs,
tetex-base,
x11-shlibs
<<
BuildDepends: <<
fink (>= 0.24.12),
atk1 (>= 1.20.0-1),
cairo (>= 1.6-1),
expat1,
fontconfig2-dev (>= 2.4.1-1),
freetype219 (>= 2.3.5-1),
gettext-bin,
gettext-tools,
glib2-dev (>= 2.14.0-1),
glitz,
gtk+2-dev (>= 2.12.0-1),
libgettext8-dev,
libiconv-dev,
libpng14,
pango1-xft2-ft219-dev (>= 1.18.4-4),
pixman (>= 0.10.0-1),
pkgconfig (>= 0.21-1),
pygobject2-py%type_pkg[python]-dev,
pygtk2-gtk-py%type_pkg[python]-dev,
distribute-py%type_pkg[python],
tcltk-dev,
x11-dev,
xft2-dev
<<
GCC: 4.0
# Apple clang and gcc 4.6 compiler gags on matplotlib
#SetCC: llvm-gcc-4.2
#SetCC: gcc-fsf-4.6
#SetCXX: g++-fsf-4.6
NoSetCPPFLAGS: True
SetCPPFLAGS: -I%p/include/pygtk-2.0 -I%p/lib/freetype219/include/freetype2 -I%p/lib/fontconfig2/include -DNSIG=32
NoSetLDFLAGS: True
SetLDFLAGS: -L%p/lib/freetype219/lib -L%p/lib/fontconfig2/lib
PatchFile: %{ni}.patch
PatchFile-MD5: 758179e681590f68d65f36344a5e268f
PatchScript: sed 's|@PREFIX@|%p|g' < %{PatchFile} | patch -p1
CompileScript: <<
#!/bin/sh -ev
export PATH=%p/lib/freetype219:$PATH
export PKG_CONFIG_PATH="%p/lib/pango-ft219/lib/pkgconfig:%p/lib/fontconfig2/lib/pkgconfig:%p/lib/freetype219/lib/pkgconfig:$PKG_CONFIG_PATH"
%p/bin/python%type_raw[python] setup.py build
<<
# --compiler=%p/bin/g++-fsf-4.6
InstallScript: <<
#!/bin/sh -ev
export PATH=%p/lib/freetype219:$PATH
export PKG_CONFIG_PATH="%p/lib/pango-ft219/lib/pkgconfig:%p/lib/fontconfig2/lib/pkgconfig:%p/lib/freetype219/lib/pkgconfig:$PKG_CONFIG_PATH"
%p/bin/python%type_raw[python] setup.py install --root %d
mkdir -p %i/share/doc/%n
cp -R examples %i/share/doc/%n
<<
License: OSI-Approved
DocFiles: README.txt TODO INSTALL CHANGELOG
# API_CHANGES
Description: Pure python 2D plotting with a Matlab syntax
DescDetail: <<
Produces publication quality figures using in a variety of hardcopy
formats (PNG, JPG, TIFF, PS) and interactive GUI environments
across platforms. matplotlib can be used in python scripts,
interactively from the python shell (ala matlab or mathematica),
in web application servers generating dynamic charts, or embedded
in applications.
Includes GTK, TkAgg, GTKAgg, SVG, PS and Agg backends.
<<
DescPackaging: <<
Checks for qt, qt4, cairo (their python bindings) but doesn't use
those test results, so don't bother setting dependencies or forcing
non-detection of them.
<<
DescPort: <<
-DNSIG is only need for the build of the py25 variant. Don't know why.
<<
Homepage: http://matplotlib.sf.net
DescUsage: <<
The pylab frontend is broken on x86_64.
<<
<<
diff -Nurd matplotlib-1.0.1.orig/setup.cfg matplotlib-1.0.1/setup.cfg
--- matplotlib-1.0.1.orig/setup.cfg 1969-12-31 19:00:00.000000000 -0500
+++ matplotlib-1.0.1/setup.cfg 2011-06-07 21:42:17.000000000 -0400
@@ -0,0 +1,6 @@
+[gui_support]
+gtk = True
+gtkagg = True
+tkagg = True
+wxagg = False
+macosx = True
diff -Nurd matplotlib-1.0.1.orig/setup.py matplotlib-1.0.1/setup.py
--- matplotlib-1.0.1.orig/setup.py 2010-07-06 21:41:55.000000000 -0400
+++ matplotlib-1.0.1/setup.py 2011-06-07 21:43:20.000000000 -0400
@@ -264,6 +264,9 @@
except NameError: additional_params = {}
for mod in ext_modules:
+ mod.include_dirs.append('@PREFIX@/include')
+ mod.library_dirs.append('@PREFIX@/lib')
+
if options['verbose']:
mod.extra_compile_args.append('-DVERBOSE')
diff -Nurd matplotlib-1.0.1.orig/setupext.py matplotlib-1.0.1/setupext.py
--- matplotlib-1.0.1.orig/setupext.py 2010-07-06 21:41:55.000000000 -0400
+++ matplotlib-1.0.1/setupext.py 2011-06-07 21:44:14.000000000 -0400
@@ -63,7 +63,8 @@
# people to :
# make -f make.osx fetch deps mpl_build mpl_install
- 'darwin' : [],
+ 'darwin' : ['@PREFIX@/lib/freetype219', '@PREFIX@',
+ '/usr/X11', '/usr/X11R6', '/usr'],
'freebsd4' : ['/usr/local', '/usr'],
'freebsd5' : ['/usr/local', '/usr'],
@@ -1011,6 +1012,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!