openbsd-ports/graphics/py-matplotlib/Makefile

61 lines
1.6 KiB
Makefile
Raw Normal View History

2011-09-16 06:02:36 -04:00
# $OpenBSD: Makefile,v 1.40 2011/09/16 10:02:37 espie Exp $
VMEM_WARNING= Yes
COMMENT= Python charting and plotting API
DISTNAME= matplotlib-0.98.5.2
2010-08-30 17:24:15 -04:00
PKGNAME= py-${DISTNAME}
2011-09-16 06:02:36 -04:00
REVISION= 9
CATEGORIES= graphics devel math
HOMEPAGE= http://matplotlib.sourceforge.net/
# BSD-like
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
2007-11-13 12:10:25 -05:00
WANTLIB= X11 Xau Xcomposite Xcursor Xdmcp Xext Xfixes Xi Xinerama \
Xrandr Xrender Xdamage expat fontconfig freetype m z stdc++ \
2010-10-11 04:11:24 -04:00
atk-1.0 gdk-x11-2.0 cairo \
gdk_pixbuf-2.0 gio-2.0 glib-2.0 gmodule-2.0 \
2007-11-13 12:10:25 -05:00
gobject-2.0 gtk-x11-2.0 \
pango-1.0 pangocairo-1.0 pangoft2-1.0 pixman-1 \
pthread-stubs tcl85 tk85 xcb ffi png>=3 \
GL Xxf86vm drm gthread-2.0 xcb-render xcb-shm
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=matplotlib/}
MODULES= lang/python \
devel/gettext \
x11/tk
2010-11-17 03:05:12 -05:00
RUN_DEPENDS= math/py-numpy \
x11/py-gtk2 \
devel/py-tz \
devel/py-dateutil \
${MODPY_TKINTER_DEPENDS}
2006-12-16 07:22:32 -05:00
BUILD_DEPENDS= ${RUN_DEPENDS}
2010-11-17 03:05:12 -05:00
LIB_DEPENDS= graphics/png
2006-11-13 06:20:24 -05:00
MAKE_ENV+= EXTRA_INCLUDES="${WRKSRC} ${LOCALBASE}/include/libpng ${MODTCL_INCDIR} ${MODTK_INCDIR}" \
LDSHARED="${CC} -shared -fPIC"
NO_REGRESS= Yes
post-install:
# Make examples use MODPY_VER
(set -ex ; for fn in `find ${WRKSRC}/examples -name \*.py` ; do \
sed "1s/python\$$/python${MODPY_VERSION}/" < $${fn} > $${fn}__ ; \
mv $${fn}__ $${fn} ; \
done)
# examples
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/py-matplotlib
(set -e ; cd ${WRKSRC}/examples ; tar cf - . | \
(set -e ; cd ${PREFIX}/share/examples/py-matplotlib ; tar xf - ))
.include <bsd.port.mk>