aboutsummaryrefslogtreecommitdiff
path: root/graphics/dataplot/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/dataplot/Makefile')
-rw-r--r--graphics/dataplot/Makefile25
1 files changed, 15 insertions, 10 deletions
diff --git a/graphics/dataplot/Makefile b/graphics/dataplot/Makefile
index 16e642a354f4..eca73f09dd23 100644
--- a/graphics/dataplot/Makefile
+++ b/graphics/dataplot/Makefile
@@ -6,17 +6,16 @@
#
PORTNAME= dataplot
-PORTVERSION= 20080225
-PORTREVISION= 3
+PORTVERSION= 20081002
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.02_25_2008${EXTRACT_SUFX}:source \
+DISTFILES= dpsrc.2008_10_02${EXTRACT_SUFX}:source \
dpsnapsh.pdf:doc
DIST_SUBDIR= dataplot
-EXTRACT_ONLY= dpsrc.02_25_2008${EXTRACT_SUFX}
+EXTRACT_ONLY= dpsrc.2008_10_02${EXTRACT_SUFX}
MAINTAINER= ports@FreeBSD.org
COMMENT= A free software system for statistical visualization
@@ -26,28 +25,34 @@ LIB_DEPENDS= gd:${PORTSDIR}/graphics/gd \
jpeg:${PORTSDIR}/graphics/jpeg
USE_FORTRAN= yes
-FFLAGS+= -fno-range-check
USE_XORG= x11 xi
NO_WRKSUBDIR= yes
-MAXOBV?= 1000000 # Change if you need more observations/variable
+MAXOBV?= 400000 # Change if you need more observations/variable
.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
-.if ((${ARCH}=="amd64") || (${ARCH}=="sparc64") || (${ARCH}=="ia64"))
- @${REINPLACE_CMD} -e 's;dp1_linux;dp1_linux_dp;g' \
- ${WRKSRC}/Makefile
-.endif
post-install:
.if !defined(NOPORTDOCS)