freebsd-ports/math/py-matplotlib/Makefile
Kris Kennaway 3ddfc30188 Partially fix package building by adding a dependency on Xvfb in the
PACKAGE_BUILDING case.  Mark BROKEN because this package is still
missing a dependency.

Approved by:	portmgr (self)
2005-01-01 22:19:36 +00:00

59 lines
1.5 KiB
Makefile

# ex:ts=8
# Ports collection makefile for: py-matplotlib
# Date created: Aug 4, 2004
# Whom: ijliao
#
# $FreeBSD$
#
PORTNAME= matplotlib
PORTVERSION= 0.60.2
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
BROKEN= Missing dependency
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} ${DATADIR}
.if !defined(NOPORTDOCS)
PLISTDIR+= ${EXAMPLESDIR}
.endif
.include <bsd.port.pre.mk>
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>