Lines 1-9
Link Here
|
1 |
# Created by: ijliao |
|
|
2 |
# $FreeBSD$ |
1 |
# $FreeBSD$ |
3 |
|
2 |
|
4 |
PORTNAME= matplotlib |
3 |
PORTNAME= matplotlib |
5 |
PORTVERSION= 1.5.3 |
4 |
PORTVERSION= 1.5.3 |
6 |
PORTREVISION= 2 |
5 |
PORTREVISION= 3 |
7 |
DISTVERSIONPREFIX= v |
6 |
DISTVERSIONPREFIX= v |
8 |
CATEGORIES= math python |
7 |
CATEGORIES= math python |
9 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
8 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
Lines 27-39
Link Here
|
27 |
|
26 |
|
28 |
USE_GITHUB= yes |
27 |
USE_GITHUB= yes |
29 |
|
28 |
|
30 |
USES= compiler:c++11-lib gettext pkgconfig python:2.7 shebangfix uniquefiles:dirs |
29 |
USES= compiler:c++11-lib gettext pkgconfig python shebangfix uniquefiles:dirs |
31 |
USE_PYTHON= autoplist distutils |
30 |
USE_PYTHON= autoplist distutils |
32 |
CFLAGS+= -I${LOCALBASE}/include |
31 |
CFLAGS+= -I${LOCALBASE}/include |
33 |
|
32 |
|
34 |
OPTIONS_DEFINE= EXAMPLES GTKBACKEND GTKAGGBACKEND QT4AGGBACKEND \ |
33 |
OPTIONS_DEFINE= EXAMPLES GTKBACKEND GTKAGGBACKEND QT4AGGBACKEND \ |
35 |
QT5AGGBACKEND TKAGGBACKEND WXAGGBACKEND |
34 |
QT5AGGBACKEND TKAGGBACKEND WXAGGBACKEND |
36 |
OPTIONS_DEFAULT= GTKBACKEND GTKAGGBACKEND TKAGGBACKEND |
35 |
OPTIONS_DEFAULT= TKAGGBACKEND |
|
|
36 |
.if ${PYTHON_MAJOR_VER} == 2 |
37 |
OPTIONS_DEFAULT+= GTKBACKEND GTKAGGBACKEND |
38 |
.endif |
37 |
OPTIONS_SUB= yes |
39 |
OPTIONS_SUB= yes |
38 |
GTKBACKEND_DESC= GTK backend support |
40 |
GTKBACKEND_DESC= GTK backend support |
39 |
GTKBACKEND_VARS= GTK_BACKEND=True |
41 |
GTKBACKEND_VARS= GTK_BACKEND=True |
Lines 67-72
Link Here
|
67 |
|
69 |
|
68 |
PORTEXAMPLES= * |
70 |
PORTEXAMPLES= * |
69 |
|
71 |
|
|
|
72 |
.include "bsd.port.options.mk" |
73 |
|
74 |
.if ${PYTHON_MAJOR_VER} == 3 |
75 |
.if ${PORT_OPTIONS:MGTKBACKEND} |
76 |
BROKEN= GTK backend does not work with Python 3 |
77 |
.elif ${PORT_OPTIONS:MGTKAGGBACKEND} |
78 |
BROKEN= GTKAgg backend does not work with Python 3 |
79 |
.endif |
80 |
.endif |
81 |
|
82 |
.include "bsd.port.pre.mk" |
83 |
|
70 |
.if defined(PACKAGE_BUILDING) |
84 |
.if defined(PACKAGE_BUILDING) |
71 |
GTKBACKEND_BUILD_DEPENDS= Xvfb:x11-servers/xorg-vfbserver |
85 |
GTKBACKEND_BUILD_DEPENDS= Xvfb:x11-servers/xorg-vfbserver |
72 |
GTKAGGBACKEND_BUILD_DEPENDS= Xvfb:x11-servers/xorg-vfbserver |
86 |
GTKAGGBACKEND_BUILD_DEPENDS= Xvfb:x11-servers/xorg-vfbserver |
Lines 104-107
Link Here
|
104 |
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR} |
118 |
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR} |
105 |
${CP} -R ${WRKSRC}/examples/ ${STAGEDIR}${EXAMPLESDIR} |
119 |
${CP} -R ${WRKSRC}/examples/ ${STAGEDIR}${EXAMPLESDIR} |
106 |
|
120 |
|
107 |
.include <bsd.port.mk> |
121 |
.include "bsd.port.post.mk" |