mirror of
https://github.com/openbsd/ports.git
synced 2026-06-18 07:24:23 +02:00
71 lines
1.6 KiB
Makefile
71 lines
1.6 KiB
Makefile
COMMENT = Python charting and plotting API
|
|
|
|
MODPY_DISTV = 3.8.3
|
|
DISTNAME = matplotlib-${MODPY_DISTV}
|
|
PKGNAME = py-${DISTNAME}
|
|
REVISION = 3
|
|
|
|
CATEGORIES = graphics devel math
|
|
|
|
HOMEPAGE = https://matplotlib.org/
|
|
|
|
MAINTAINER = Daniel Dickman <daniel@openbsd.org>
|
|
|
|
# BSD-like
|
|
PERMIT_PACKAGE = Yes
|
|
|
|
WANTLIB += ${COMPILER_LIBCXX} freetype m png qhull_r z
|
|
|
|
COMPILER = base-clang ports-gcc base-gcc
|
|
|
|
MODULES = lang/python
|
|
|
|
MODPY_PI = Yes
|
|
MODPY_PYBUILD = setuptools_scm
|
|
|
|
MODPY_TEST_LINK_SO = Yes
|
|
MODPY_TEST_LINK_SRC = ${WRKSRC}/lib
|
|
|
|
BUILD_DEPENDS = devel/py-certifi>=2020.06.20 \
|
|
devel/py-pybind11>=2.6 \
|
|
math/qhull \
|
|
math/py-numpy>=1.25 \
|
|
textproc/py-sphinx
|
|
|
|
RUN_DEPENDS= devel/py-tz \
|
|
devel/py-dateutil>=2.7 \
|
|
devel/py-kiwisolver>=1.3.1 \
|
|
devel/py-parsing>=2.3.1 \
|
|
devel/py-gobject3 \
|
|
math/py-contourpy>=1.0.1 \
|
|
math/py-numpy>=1.25 \
|
|
graphics/py-Pillow>=8.0.0 \
|
|
graphics/py-cairo \
|
|
graphics/py-cycler>=0.10 \
|
|
print/py-fonttools>=4.22.0 \
|
|
sysutils/py-packaging>=20.0 \
|
|
${MODPY_TKINTER_DEPENDS}
|
|
|
|
# pygobject GTK3 introspection (not provided by indirect dependencies)
|
|
RUN_DEPENDS += x11/gtk+3
|
|
|
|
LIB_DEPENDS = graphics/png \
|
|
math/qhull
|
|
|
|
MAKE_ENV+= LDSHARED="${CC} -shared -fPIC"
|
|
|
|
EXAMPLESDIR= ${PREFIX}/share/examples/${MODPY_PY_PREFIX}matplotlib
|
|
|
|
post-patch:
|
|
cp ${WRKSRC}/mplsetup.cfg{.template,}
|
|
|
|
pre-configure:
|
|
find ${WRKSRC}/galleries/examples -name \*.py -exec ${MODPY_BIN_ADJ} {} +
|
|
${SUBST_CMD} ${WRKSRC}/setupext.py
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${EXAMPLESDIR}
|
|
cd ${WRKSRC}/galleries/examples && pax -rw * ${EXAMPLESDIR}
|
|
|
|
.include <bsd.port.mk>
|