3a69b7a5e7
Use LLVM linker to build successfully. Quaterly is also broken: https://docs.freebsd.org/cgi/getmsg.cgi?fetch=152802642+0+current/freebsd-pkg-fallout https://docs.freebsd.org/cgi/getmsg.cgi?fetch=152706419+0+current/freebsd-pkg-fallout PR: 250627 Submitted by: bengta@sics.se MFH: 2020Q4 (blanket build fix)
77 lines
2.7 KiB
Makefile
77 lines
2.7 KiB
Makefile
# Created by: ijliao
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= matplotlib
|
|
PORTVERSION= 3.3.1
|
|
CATEGORIES= math python
|
|
MASTER_SITES= CHEESESHOP
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= mainland@apeiron.net
|
|
COMMENT= Plotting library uses a syntax familiar to MATLAB users
|
|
|
|
LICENSE= PSFL
|
|
|
|
BUILD_DEPENDS= ${PYNUMPY} \
|
|
${PYTHON_PKGNAMEPREFIX}pillow>=6.2:graphics/py-pillow@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}pyparsing>=0:devel/py-pyparsing@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}certifi>=0.10:security/py-certifi@${PY_FLAVOR}
|
|
LIB_DEPENDS= libfreetype.so:print/freetype2 \
|
|
libqhull.so:math/qhull \
|
|
libpng.so:graphics/png \
|
|
libfontconfig.so:x11-fonts/fontconfig \
|
|
libtcl86.so:lang/tcl86
|
|
RUN_DEPENDS= ${PYNUMPY} \
|
|
${PYTHON_PKGNAMEPREFIX}cycler>=0.10:devel/py-cycler@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}dateutil>=2.1:devel/py-dateutil@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}pytz>=0:devel/py-pytz@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}pyparsing>=0:devel/py-pyparsing@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}tornado>0:www/py-tornado@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}pluggy>0:devel/py-pluggy@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}pillow>=6.2:graphics/py-pillow@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}pyparsing>=0:devel/py-pyparsing@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}certifi>=0.10:security/py-certifi@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}kiwisolver>=1.0.0:math/py-kiwisolver@${PY_FLAVOR}
|
|
|
|
USES= compiler:c++11-lib gettext gnome localbase pkgconfig python:3.6+ shebangfix uniquefiles:dirs
|
|
USE_PYTHON= distutils
|
|
|
|
LDFLAGS+= -fuse-ld=lld
|
|
|
|
OPTIONS_DEFINE= EXAMPLES \
|
|
QT5AGGBACKEND TKAGGBACKEND
|
|
OPTIONS_DEFAULT= TKAGGBACKEND
|
|
OPTIONS_SUB= yes
|
|
|
|
QT5AGGBACKEND_DESC= Qt5Agg backend support
|
|
QT5AGGBACKEND_USES= display pyqt:5
|
|
QT5AGGBACKEND_USE= PYQT=sip,widgets
|
|
QT5AGGBACKEND_VARS= QT5AGG_BACKEND=True
|
|
QT5AGGBACKEND_VARS_OFF= QT5AGG_BACKEND=False
|
|
TKAGGBACKEND_DESC= TKAgg backend support
|
|
TKAGGBACKEND_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}tkinter>0:x11-toolkits/py-tkinter@${PY_FLAVOR}
|
|
TKAGGBACKEND_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}tkinter>0:x11-toolkits/py-tkinter@${PY_FLAVOR}
|
|
TKAGGBACKEND_USES= display tk:run
|
|
TKAGGBACKEND_VARS= TKAGG_BACKEND=True
|
|
TKAGGBACKEND_VARS_OFF= TKAGG_BACKEND=False
|
|
|
|
PLIST_SUB= VER=${PORTVERSION}
|
|
PORTEXAMPLES= *
|
|
|
|
post-extract:
|
|
@${FIND} ${WRKSRC} -name '*.py' | ${XARGS} ${CHMOD} -x
|
|
|
|
pre-configure:
|
|
${REINPLACE_CMD} -e 's|%%QT5AGG_BACKEND%%|${QT5AGG_BACKEND}|g' \
|
|
-e 's|%%TKAGG_BACKEND%%|${TKAGG_BACKEND}|g' \
|
|
${WRKSRC}/setup.cfg
|
|
|
|
post-install:
|
|
${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR}/matplotlib -name '*.so' \
|
|
| ${XARGS} ${STRIP_CMD}
|
|
|
|
post-install-EXAMPLES-on:
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
${CP} -R ${WRKSRC}/examples/ ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
.include <bsd.port.mk>
|