blob: 0bd7ec1c2e025ff7a12372fe9e88b435a8011fe8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
# ex:ts=8
# Ports collection makefile for: py-matplotlib
# Date created: Aug 4, 2004
# Whom: ijliao
#
# $FreeBSD$
#
PORTNAME= matplotlib
PORTVERSION= 0.80
PORTREVISION= 1
CATEGORIES= math python
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= ports@FreeBSD.org
COMMENT= A plotting library uses a syntax familiar to matlab users
BUILD_DEPENDS= ${PYNUMERIC} \
${PYTHON_SITELIBDIR}/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinter \
${LOCALBASE}/lib/libagg.a:${PORTSDIR}/graphics/agg
LIB_DEPENDS= freetype.9:${PORTSDIR}/print/freetype2
RUN_DEPENDS= ${PYNUMERIC} \
${PYTHON_SITELIBDIR}/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinter
.if defined(PACKAGE_BUILDING)
BUILD_DEPENDS+= Xvfb:${X_VFBSERVER_PORT}
.endif
USE_REINPLACE= yes
USE_PYTHON= 2.2+
USE_PYDISTUTILS= yes
USE_GNOME= gtk20 pygtk2
CFLAGS+= -I${X11BASE}/include
DATADIR= ${PREFIX}/share/py-${PORTNAME}
EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME}
PLISTDIR= ${PYTHON_SITELIBDIR}/${PORTNAME} ${PYTHON_SITELIBDIR}/dateutil ${PYTHON_SITELIBDIR}/pytz \
${PYTHON_SITELIBDIR}/pylab* ${DATADIR}
.if !defined(NOPORTDOCS)
PLISTDIR+= ${EXAMPLESDIR}
.endif
.include <bsd.port.pre.mk>
.if ( ${OSVERSION} < 500000)
USE_GCC= 3.4
.endif
post-patch:
@${GREP} -lR "share/matplotlib" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} \
-e "s,share/matplotlib,share/py-matplotlib,g"
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${EXAMPLESDIR}
${CP} -R ${WRKSRC}/examples/ ${EXAMPLESDIR}
.endif
.for dir in ${PLISTDIR}
@${FIND} ${dir} ! -type d | \
${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
@${FIND} ${dir} -type d | ${SORT} -r | \
${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
.endfor
.include <bsd.port.post.mk>
|