mirror of
https://git.freebsd.org/ports.git
synced 2025-06-25 14:40:32 -04:00
- Switched to automake 1.11.6, see CVE-2012-3386. - #14669: Fixed extraction of CC from gmp.h. - Fixed case of intermediate zero real or imaginary part in mpc_fma, found by hydra with GMP_CHECK_RANDOMIZE=1346362345. This is on top of the following changes from version 1.0 - Licence change towards LGPLv3+ for the code and GFDLv1.3+ (with no invariant sections) for the documentation. - 100% of all lines are covered by tests - Renamed functions . mpc_mul_2exp to mpc_mul_2ui . mpc_div_2exp to mpc_div_2ui - 0^0, which returned (NaN,NaN) previously, now returns (1,+0). - Removed compatibility with K&R compilers, which was untestable due to lack of such compilers. - New functions . mpc_log10 . mpc_mul_2si, mpc_div_2si - Speed-ups . mpc_fma - Bug fixes . mpc_div and mpc_norm now return a value indicating the effective rounding direction, as the other functions. . mpc_mul, mpc_sqr and mpc_norm now return correct results even if there are over- or underflows during the computation. . mpc_asin, mpc_proj, mpc_sqr: Wrong result when input variable has infinite part and equals output variable is corrected. . mpc_fr_sub: Wrong return value for imaginary part is corrected. Convert to the new LIB_DEPENDS standard and remove hard-coded .so versions from a couple of dependent ports. Bump PORTREVISIONS of all dependent ports. PR: 183141 Approved by: portmgr (bdrewery)
120 lines
3 KiB
Makefile
120 lines
3 KiB
Makefile
# Created by: ijliao
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= matplotlib
|
|
PORTVERSION= 1.2.0
|
|
PORTREVISION= 2
|
|
CATEGORIES= math python
|
|
MASTER_SITES= http://cloud.github.com/downloads/matplotlib/matplotlib/
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= mainland@apeiron.net
|
|
COMMENT= Plotting library uses a syntax familiar to MATLAB users
|
|
|
|
BUILD_DEPENDS= ${PYNUMPY} \
|
|
${PYTHON_PKGNAMEPREFIX}dateutil>=1.4:${PORTSDIR}/devel/py-dateutil \
|
|
${PYTHON_PKGNAMEPREFIX}pytz>=0:${PORTSDIR}/devel/py-pytz
|
|
LIB_DEPENDS= freetype:${PORTSDIR}/print/freetype2 \
|
|
png15:${PORTSDIR}/graphics/png
|
|
RUN_DEPENDS:= ${BUILD_DEPENDS}
|
|
|
|
USES= pkgconfig
|
|
USE_PYTHON= yes
|
|
USE_PYDISTUTILS=yes
|
|
CFLAGS+= -I${LOCALBASE}/include
|
|
|
|
OPTIONS_DEFINE= GTKBACKEND GTKAGGBACKEND TKAGGBACKEND WXAGGBACKEND
|
|
OPTIONS_DEFAULT= GTKBACKEND GTKAGGBACKEND TKAGGBACKEND
|
|
GTKBACKEND_DESC= GTK backend support
|
|
GTKAGGBACKEND_DESC= GTKAgg backend support
|
|
TKAGGBACKEND_DESC= TKAgg backend support
|
|
WXAGGBACKEND_DESC= WXAgg backend support
|
|
|
|
UNIQUENAME= ${PORTNAME}
|
|
|
|
NO_STAGE= yes
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if defined(PACKAGE_BUILDING) && \
|
|
( ${PORT_OPTIONS:MGTKBACKEND} || ${PORT_OPTIONS:MGTKAGGBACKEND} || \
|
|
${PORT_OPTIONS:MTKAGGBACKEND} || ${PORT_OPTIONS:MWXAGGBACKEND} )
|
|
BUILD_DEPENDS+= Xvfb:${PORTSDIR}/x11-servers/xorg-vfbserver
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MGTKBACKEND} || ${PORT_OPTIONS:MGTKAGGBACKEND}
|
|
USE_GNOME= gtk20 pygtk2
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MGTKBACKEND}
|
|
GTK_BACKEND= True
|
|
|
|
PLIST_SUB+= GTKBACKEND=""
|
|
.else
|
|
GTK_BACKEND= False
|
|
|
|
PLIST_SUB+= GTKBACKEND="@comment "
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MGTKAGGBACKEND}
|
|
GTKAGG_BACKEND= True
|
|
|
|
PLIST_SUB+= GTKAGGBACKEND=""
|
|
.else
|
|
GTKAGG_BACKEND= False
|
|
|
|
PLIST_SUB+= GTKAGGBACKEND="@comment "
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MTKAGGBACKEND}
|
|
BUILD_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}tkinter>0:${PORTSDIR}/x11-toolkits/py-tkinter
|
|
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}tkinter>0:${PORTSDIR}/x11-toolkits/py-tkinter
|
|
|
|
USE_TCL_RUN= yes
|
|
USE_TK_RUN= yes
|
|
|
|
TKAGG_BACKEND= True
|
|
|
|
PLIST_SUB+= TKAGGBACKEND=""
|
|
.else
|
|
TKAGG_BACKEND= False
|
|
|
|
PLIST_SUB+= TKAGGBACKEND="@comment "
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MWXAGGBACKEND}
|
|
USE_WX= 2.8+
|
|
WX_COMPS= python:lib
|
|
CONFIGURE_ENV+= WX_CONFIG="${WX_CONFIG}"
|
|
|
|
WXAGG_BACKEND= True
|
|
.else
|
|
WXAGG_BACKEND= False
|
|
.endif
|
|
|
|
EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME}
|
|
post-extract:
|
|
${CHMOD} -R ga+r ${WRKDIR}
|
|
|
|
# bsd.tcl.mk doesn't set TK_VER, so we use TCL_VER instead
|
|
post-patch:
|
|
${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \
|
|
-e 's|%%TCL_INCLUDEDIR%%|${TCL_INCLUDEDIR}|g' \
|
|
-e 's|%%TK_INCLUDEDIR%%|${TK_INCLUDEDIR}|g' \
|
|
-e 's|%%TCL_LIBDIR%%|${TCL_LIBDIR}|g' \
|
|
-e 's|%%TK_LIBDIR%%|${TK_LIBDIR}|g' \
|
|
-e 's|%%TCL_VER%%|${TCL_VER:S/.//}|g' \
|
|
-e 's|%%TK_VER%%|${TCL_VER:S/.//}|g' \
|
|
${WRKSRC}/setupext.py
|
|
${REINPLACE_CMD} -e 's|%%GTK_BACKEND%%|${GTK_BACKEND}|g' \
|
|
-e 's|%%GTKAGG_BACKEND%%|${GTKAGG_BACKEND}|g' \
|
|
-e 's|%%TKAGG_BACKEND%%|${TKAGG_BACKEND}|g' \
|
|
-e 's|%%WXAGG_BACKEND%%|${WXAGG_BACKEND}|g' \
|
|
${WRKSRC}/setup.cfg
|
|
|
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
|
post-install:
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
${CP} -R ${WRKSRC}/examples/ ${EXAMPLESDIR}
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|