View | Details | Raw Unified | Return to bug 213636 | Differences between
and this patch

Collapse All | Expand All

(-)Makefile (-4 / +11 lines)
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
.if ${PYTHON_MAJOR_VER} == 3
73
GTKBACKEND_BROKEN=	GTK backend does not work with Python 3
74
GTKAGGBACKEND_BROKEN=	GTKAgg backend does not work with Python 3
75
.endif
76
70
.if defined(PACKAGE_BUILDING)
77
.if defined(PACKAGE_BUILDING)
71
GTKBACKEND_BUILD_DEPENDS=	Xvfb:x11-servers/xorg-vfbserver
78
GTKBACKEND_BUILD_DEPENDS=	Xvfb:x11-servers/xorg-vfbserver
72
GTKAGGBACKEND_BUILD_DEPENDS=	Xvfb:x11-servers/xorg-vfbserver
79
GTKAGGBACKEND_BUILD_DEPENDS=	Xvfb:x11-servers/xorg-vfbserver

Return to bug 213636