- 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)
62 lines
1.7 KiB
Makefile
62 lines
1.7 KiB
Makefile
# Created by: Pedro F. Giffuni <pfgshield-freebsd@yahoo.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= dataplot
|
|
PORTVERSION= 20090821
|
|
PORTREVISION= 3
|
|
CATEGORIES= graphics
|
|
MASTER_SITES= ftp://ftp.nist.gov/pub/dataplot/unix/:source \
|
|
LOCAL/beech:source \
|
|
http://www.itl.nist.gov/div898/software/dataplot.html/:doc \
|
|
LOCAL/beech:doc
|
|
DISTFILES= dpsrc${EXTRACT_SUFX}:source \
|
|
dpsnapsh.pdf:doc
|
|
DIST_SUBDIR= dataplot
|
|
EXTRACT_ONLY= dpsrc${EXTRACT_SUFX}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= A free software system for statistical visualization
|
|
|
|
LIB_DEPENDS= gd:${PORTSDIR}/graphics/gd \
|
|
png15:${PORTSDIR}/graphics/png \
|
|
jpeg:${PORTSDIR}/graphics/jpeg
|
|
|
|
USE_FORTRAN= yes
|
|
USE_XORG= x11 xi
|
|
NO_WRKSUBDIR= yes
|
|
MAXOBV?= 400000 # Change if you need more observations/variable
|
|
|
|
NO_STAGE= yes
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ((${ARCH}=="amd64") || (${ARCH}=="sparc64") || (${ARCH}=="ia64"))
|
|
FFLAGS+= -DDD -DI32 -fdefault-real-8 -fdefault-double-8
|
|
.else
|
|
FFLAGS+= -DSD -DI32 -fdefault-real-8 -fdefault-double-8
|
|
.endif
|
|
|
|
post-extract:
|
|
@${INSTALL_DATA} ${FILESDIR}/Makefile.tmpl ${WRKSRC}/Makefile
|
|
@${REINPLACE_CMD} -e 's;%%LOCALBASE%%;${LOCALBASE};g ; \
|
|
s;%%LOCALBASE%%;${LOCALBASE};g' \
|
|
${WRKSRC}/Makefile
|
|
# Ensure preprocessing is done
|
|
@${CP} ${WRKSRC}/dp1_linux.f ${WRKSRC}/dp1_linux.F
|
|
# Turn off some dependencies
|
|
@${MV} ${WRKSRC}/aqua_src.c ${WRKSRC}/aqua_src.c.nop
|
|
@${MV} ${WRKSRC}/gl_src.c ${WRKSRC}/gl_src.c.nop
|
|
@${MV} ${WRKSRC}/libplot_src.c ${WRKSRC}/libplot_src.c.nop
|
|
@${MV} ${WRKSRC}/rldp.c ${WRKSRC}/rldp.c.nop
|
|
|
|
pre-patch:
|
|
@${REINPLACE_CMD} -e 's/MAXOBV=1000000/MAXOBV=${MAXOBV}/' \
|
|
${WRKSRC}/DPCOPA.INC
|
|
|
|
post-install:
|
|
.if !defined(NOPORTDOCS)
|
|
@${INSTALL} -d ${DOCSDIR}
|
|
@${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/dpsnapsh.pdf \
|
|
${DOCSDIR}
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|