2006-06-13 13:19:08 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.15 2006/06/13 13:25:31 bernd Exp $
|
2005-07-09 06:14:04 +00:00
|
|
|
|
|
|
|
SHARED_ONLY= Yes
|
2004-11-11 04:05:25 +00:00
|
|
|
|
|
|
|
COMMENT= "Python charting and plotting API"
|
|
|
|
|
2005-09-19 02:05:20 +00:00
|
|
|
DISTNAME= matplotlib-0.83.2
|
2006-06-13 13:19:08 +00:00
|
|
|
PKGNAME= py-${DISTNAME}p3
|
2004-11-11 04:05:25 +00:00
|
|
|
CATEGORIES= graphics devel
|
|
|
|
|
|
|
|
HOMEPAGE= http://matplotlib.sourceforge.net/
|
|
|
|
|
|
|
|
MAINTAINER= Damien Miller <djm@openbsd.org>
|
|
|
|
|
2005-01-28 00:17:26 +00:00
|
|
|
MODULES= lang/python \
|
|
|
|
devel/gettext
|
2004-11-11 04:05:25 +00:00
|
|
|
|
|
|
|
# BSD-like
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2006-06-13 13:19:08 +00:00
|
|
|
WANTLIB= X11 fontconfig freetype m z stdc++ \
|
|
|
|
atk-1.0.0.0 gdk-x11-2.0.0.0 cairo \
|
2005-02-02 23:16:18 +00:00
|
|
|
gdk_pixbuf-2.0.0.0 glib-2.0.0.0 gmodule-2.0.0.0 \
|
2006-01-20 07:58:06 +00:00
|
|
|
gobject-2.0.0.0 gtk-x11-2.0.0.0 \
|
2006-06-13 13:19:08 +00:00
|
|
|
pango-1.0.0.0 pangocairo-1.0.0.0 pangoft2-1.0.0.0
|
2004-11-11 04:05:25 +00:00
|
|
|
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=matplotlib/}
|
|
|
|
|
|
|
|
RUN_DEPENDS= ::math/py-Numeric \
|
|
|
|
::x11/py-gtk2 \
|
|
|
|
::devel/py-tz \
|
|
|
|
::devel/py-dateutil
|
2005-03-15 07:17:38 +00:00
|
|
|
BUILD_DEPENDS= ${RUN_DEPENDS} \
|
|
|
|
::devel/pkgconfig
|
2005-01-28 00:17:26 +00:00
|
|
|
LIB_DEPENDS= png.3::graphics/png
|
2004-11-11 04:05:25 +00:00
|
|
|
|
|
|
|
MAKE_ENV+= EXTRA_INCLUDES="${WRKSRC} ${LOCALBASE}/include/libpng"
|
|
|
|
|
2005-07-09 06:14:04 +00:00
|
|
|
# The matplotlib distributors seem to have an uncanny knack for breaking
|
2005-09-19 01:42:11 +00:00
|
|
|
# update-patches by shipping .orig and .rej files, over several releases...
|
2004-11-11 04:05:25 +00:00
|
|
|
post-extract:
|
2005-09-19 01:42:11 +00:00
|
|
|
@find ${WRKSRC} -type f -name \*.orig -o -name \*.rej | xargs -r rm -f
|
2004-11-11 04:05:25 +00:00
|
|
|
|
|
|
|
post-install:
|
2005-07-09 06:14:04 +00:00
|
|
|
# examples
|
2004-11-11 12:41:33 +00:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/py-matplotlib
|
2005-07-09 06:14:04 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/README ${WRKSRC}/examples/*.glade \
|
2004-11-11 12:41:33 +00:00
|
|
|
${PREFIX}/share/examples/py-matplotlib
|
2005-07-09 06:14:04 +00:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/examples/*.py \
|
|
|
|
${PREFIX}/share/examples/py-matplotlib
|
|
|
|
# examples/data
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/py-matplotlib/data
|
2004-11-11 04:05:25 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/data/* \
|
2004-11-11 12:41:33 +00:00
|
|
|
${PREFIX}/share/examples/py-matplotlib/data
|
2005-07-09 06:14:04 +00:00
|
|
|
# examples/widgets
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/py-matplotlib/widgets
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/widgets/README \
|
|
|
|
${PREFIX}/share/examples/py-matplotlib/widgets
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/examples/widgets/*.py \
|
|
|
|
${PREFIX}/share/examples/py-matplotlib/widgets
|
2004-11-11 04:05:25 +00:00
|
|
|
|
2005-01-17 23:56:43 +00:00
|
|
|
VMEM_WARNING= Yes
|
2004-11-11 04:05:25 +00:00
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|