View | Details | Raw Unified | Return to bug 161716
Collapse All | Expand All

(-)b/Makefile (-22 / +18 lines)
Lines 8-14 Link Here
8
8
9
PORTNAME=	matplotlib
9
PORTNAME=	matplotlib
10
PORTVERSION=	1.0.1
10
PORTVERSION=	1.0.1
11
PORTREVISION=	1
11
PORTREVISION=	2
12
CATEGORIES=	math python
12
CATEGORIES=	math python
13
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}/
13
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}/
14
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
14
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
Lines 23-33 LIB_DEPENDS= freetype.9:${PORTSDIR}/print/freetype2 \ Link Here
23
		png.6:${PORTSDIR}/graphics/png
23
		png.6:${PORTSDIR}/graphics/png
24
RUN_DEPENDS=	${PYNUMPY}
24
RUN_DEPENDS=	${PYNUMPY}
25
25
26
USE_PYTHON=	2.4+
26
USE_PYTHON=	2.6-2.7
27
USE_PYDISTUTILS=	yes
27
USE_PYDISTUTILS=	yes
28
CFLAGS+=	-I${LOCALBASE}/include
28
CFLAGS+=	-I${LOCALBASE}/include
29
29
30
OPTIONS=        GTKBACKEND	"GTK backend support"		ON \
30
OPTIONS=	GTKBACKEND	"GTK backend support"		ON \
31
		GTKAGGBACKEND	"GTKAgg backend support"	ON \
31
		GTKAGGBACKEND	"GTKAgg backend support"	ON \
32
		TKAGGBACKEND	"TKAgg backend support"		ON \
32
		TKAGGBACKEND	"TKAgg backend support"		ON \
33
		WXAGGBACKEND	"WXAgg backend support"		OFF
33
		WXAGGBACKEND	"WXAgg backend support"		OFF
Lines 47-69 USE_GNOME= gtk20 pygtk2 Link Here
47
.endif
47
.endif
48
48
49
.if defined(WITH_GTKBACKEND) && !defined(WITHOUT_GTKBACKEND)
49
.if defined(WITH_GTKBACKEND) && !defined(WITHOUT_GTKBACKEND)
50
GTK_BACKEND=True
50
GTK_BACKEND=	True
51
51
52
PLIST_SUB+= GTKBACKEND=""
52
PLIST_SUB+=	GTKBACKEND=""
53
.else
53
.else
54
GTK_BACKEND=False
54
GTK_BACKEND=	False
55
55
56
PLIST_SUB+= GTKBACKEND="@comment "
56
PLIST_SUB+=	GTKBACKEND="@comment "
57
.endif
57
.endif
58
58
59
.if defined(WITH_GTKAGGBACKEND)
59
.if defined(WITH_GTKAGGBACKEND)
60
GTKAGG_BACKEND=True
60
GTKAGG_BACKEND=	True
61
61
62
PLIST_SUB+= GTKAGGBACKEND=""
62
PLIST_SUB+=	GTKAGGBACKEND=""
63
.else
63
.else
64
GTKAGG_BACKEND=False
64
GTKAGG_BACKEND=	False
65
65
66
PLIST_SUB+= GTKAGGBACKEND="@comment "
66
PLIST_SUB+=	GTKAGGBACKEND="@comment "
67
.endif
67
.endif
68
68
69
.if defined(WITH_TKAGGBACKEND)
69
.if defined(WITH_TKAGGBACKEND)
Lines 73-99 RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkint Link Here
73
USE_TCL_RUN=	yes
73
USE_TCL_RUN=	yes
74
USE_TK_RUN=	yes
74
USE_TK_RUN=	yes
75
75
76
TKAGG_BACKEND=True
76
TKAGG_BACKEND=	True
77
77
78
PLIST_SUB+= TKAGGBACKEND=""
78
PLIST_SUB+=	TKAGGBACKEND=""
79
.else
79
.else
80
TKAGG_BACKEND=False
80
TKAGG_BACKEND=	False
81
81
82
PLIST_SUB+= TKAGGBACKEND="@comment "
82
PLIST_SUB+=	TKAGGBACKEND="@comment "
83
.endif
83
.endif
84
84
85
.if defined(WITH_WXAGGBACKEND)
85
.if defined(WITH_WXAGGBACKEND)
86
USE_WX=	2.6
86
USE_WX=		2.8+
87
WX_COMPS=	python
87
WX_COMPS=	python
88
CONFIGURE_ENV+=	WX_CONFIG="${WX_CONFIG}"
88
CONFIGURE_ENV+=	WX_CONFIG="${WX_CONFIG}"
89
89
90
WXAGG_BACKEND=True
90
WXAGG_BACKEND=	True
91
92
PLIST_SUB+= WXAGGBACKEND=""
93
.else
91
.else
94
WXAGG_BACKEND=False
92
WXAGG_BACKEND=	False
95
96
PLIST_SUB+= WXAGGBACKEND="@comment "
97
.endif
93
.endif
98
94
99
.include <bsd.port.pre.mk>
95
.include <bsd.port.pre.mk>
(-)b/files/patch-setupext.py (-6 / +7 lines)
Lines 1-16 Link Here
1
--- setupext.py.orig	2010-07-07 09:41:55.000000000 +0800
1
--- setupext.py.orig	2010-07-07 05:41:55.000000000 +0400
2
+++ setupext.py	2011-06-27 16:14:58.000000000 +0800
2
+++ setupext.py	2011-10-16 18:49:43.000000000 +0400
3
@@ -68,6 +68,9 @@
3
@@ -68,6 +68,10 @@
4
     'freebsd4' : ['/usr/local', '/usr'],
4
     'freebsd4' : ['/usr/local', '/usr'],
5
     'freebsd5' : ['/usr/local', '/usr'],
5
     'freebsd5' : ['/usr/local', '/usr'],
6
     'freebsd6' : ['/usr/local', '/usr'],
6
     'freebsd6' : ['/usr/local', '/usr'],
7
+    'freebsd7' : ['/usr/local', '/usr'],
7
+    'freebsd7' : ['/usr/local', '/usr'],
8
+    'freebsd8' : ['/usr/local', '/usr'],
8
+    'freebsd8' : ['/usr/local', '/usr'],
9
+    'freebsd9' : ['/usr/local', '/usr'],
9
+    'freebsd9' : ['/usr/local', '/usr'],
10
+    'freebsd10': ['/usr/local', '/usr'],
10
     'sunos5' : [os.getenv('MPLIB_BASE') or '/usr/local',],
11
     'sunos5' : [os.getenv('MPLIB_BASE') or '/usr/local',],
11
     'gnukfreebsd5' : ['/usr/local', '/usr'],
12
     'gnukfreebsd5' : ['/usr/local', '/usr'],
12
     'gnukfreebsd6' : ['/usr/local', '/usr'],
13
     'gnukfreebsd6' : ['/usr/local', '/usr'],
13
@@ -789,7 +792,7 @@
14
@@ -789,7 +793,7 @@
14
         module.libraries.extend(wxlibs)
15
         module.libraries.extend(wxlibs)
15
         return
16
         return
16
 
17
 
Lines 19-25 Link Here
19
 
20
 
20
 # Make sure you use the Tk version given by Tkinter.TkVersion
21
 # Make sure you use the Tk version given by Tkinter.TkVersion
21
 # or else you'll build for a wrong version of the Tcl
22
 # or else you'll build for a wrong version of the Tcl
22
@@ -828,8 +831,12 @@
23
@@ -828,8 +832,12 @@
23
                 gotit = False
24
                 gotit = False
24
 
25
 
25
     if gotit:
26
     if gotit:
Lines 33-39 Link Here
33
     else:
34
     else:
34
         print_status("Tkinter", "no")
35
         print_status("Tkinter", "no")
35
     if explanation is not None:
36
     if explanation is not None:
36
@@ -1092,9 +1099,9 @@
37
@@ -1092,9 +1100,9 @@
37
 
38
 
38
         # Add final versions of directories and libraries to module lists
39
         # Add final versions of directories and libraries to module lists
39
         tcl_lib, tcl_inc, tk_lib, tk_inc = result
40
         tcl_lib, tcl_inc, tk_lib, tk_inc = result
(-)b/pkg-plist (-1 lines)
Lines 50-56 Link Here
50
%%GTKBACKEND%%%%PYTHON_SITELIBDIR%%/matplotlib/backends/_backend_gdk.so
50
%%GTKBACKEND%%%%PYTHON_SITELIBDIR%%/matplotlib/backends/_backend_gdk.so
51
%%GTKAGGBACKEND%%%%PYTHON_SITELIBDIR%%/matplotlib/backends/_gtkagg.so
51
%%GTKAGGBACKEND%%%%PYTHON_SITELIBDIR%%/matplotlib/backends/_gtkagg.so
52
%%TKAGGBACKEND%%%%PYTHON_SITELIBDIR%%/matplotlib/backends/_tkagg.so
52
%%TKAGGBACKEND%%%%PYTHON_SITELIBDIR%%/matplotlib/backends/_tkagg.so
53
%%WXAGGBACKEND%%%%PYTHON_SITELIBDIR%%/matplotlib/backends/_wxagg.so
54
%%PYTHON_SITELIBDIR%%/matplotlib/backends/backend_agg.py
53
%%PYTHON_SITELIBDIR%%/matplotlib/backends/backend_agg.py
55
%%PYTHON_SITELIBDIR%%/matplotlib/backends/backend_agg.pyc
54
%%PYTHON_SITELIBDIR%%/matplotlib/backends/backend_agg.pyc
56
%%PYTHON_SITELIBDIR%%/matplotlib/backends/backend_agg.pyo
55
%%PYTHON_SITELIBDIR%%/matplotlib/backends/backend_agg.pyo

Return to bug 161716