2013-09-20 20:35:44 +02:00
|
|
|
# Created by: Pedro F. Giffuni <pfgshield-freebsd@yahoo.com>
|
2003-07-30 04:43:29 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= dataplot
|
2014-03-03 01:29:26 +01:00
|
|
|
PORTVERSION= 20132012
|
2014-09-10 22:50:31 +02:00
|
|
|
PORTREVISION= 2
|
2003-07-30 04:43:29 +02:00
|
|
|
CATEGORIES= graphics
|
|
|
|
MASTER_SITES= ftp://ftp.nist.gov/pub/dataplot/unix/:source \
|
2008-07-19 20:37:32 +02:00
|
|
|
LOCAL/beech:source \
|
|
|
|
http://www.itl.nist.gov/div898/software/dataplot.html/:doc \
|
|
|
|
LOCAL/beech:doc
|
2013-12-21 19:04:53 +01:00
|
|
|
DISTFILES= dpsrc${EXTRACT_SUFX}:source
|
2003-07-30 04:43:29 +02:00
|
|
|
DIST_SUBDIR= dataplot
|
2011-02-27 14:42:28 +01:00
|
|
|
EXTRACT_ONLY= dpsrc${EXTRACT_SUFX}
|
2003-07-30 04:43:29 +02:00
|
|
|
|
2009-08-28 18:52:33 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2013-12-21 19:04:53 +01:00
|
|
|
COMMENT= Free software system for statistical visualization
|
2003-07-30 04:43:29 +02:00
|
|
|
|
2013-12-21 19:04:53 +01:00
|
|
|
LIB_DEPENDS= libgd.so:${PORTSDIR}/graphics/gd \
|
|
|
|
libpng15.so:${PORTSDIR}/graphics/png \
|
|
|
|
libjpeg.so:${PORTSDIR}/graphics/jpeg
|
2003-07-30 04:43:29 +02:00
|
|
|
|
2013-12-21 19:04:53 +01:00
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
DOCS_DISTFILES= dpsnapsh.pdf:doc
|
|
|
|
|
|
|
|
USES= fortran
|
2008-03-23 17:44:09 +01:00
|
|
|
USE_XORG= x11 xi
|
2003-07-30 04:43:29 +02:00
|
|
|
NO_WRKSUBDIR= yes
|
2009-11-17 15:54:57 +01:00
|
|
|
MAXOBV?= 400000 # Change if you need more observations/variable
|
2003-07-30 04:43:29 +02:00
|
|
|
|
2013-12-21 19:04:53 +01:00
|
|
|
.include <bsd.port.options.mk>
|
2005-05-01 14:57:30 +02:00
|
|
|
|
2009-11-17 15:54:57 +01:00
|
|
|
.if ((${ARCH}=="amd64") || (${ARCH}=="sparc64") || (${ARCH}=="ia64"))
|
|
|
|
FFLAGS+= -DDD -DI32 -fdefault-real-8 -fdefault-double-8
|
|
|
|
.else
|
2011-11-19 00:30:13 +01:00
|
|
|
FFLAGS+= -DSD -DI32 -fdefault-real-8 -fdefault-double-8
|
2009-11-17 15:54:57 +01:00
|
|
|
.endif
|
|
|
|
|
2003-07-30 04:43:29 +02:00
|
|
|
post-extract:
|
|
|
|
@${INSTALL_DATA} ${FILESDIR}/Makefile.tmpl ${WRKSRC}/Makefile
|
2013-12-21 19:04:53 +01:00
|
|
|
@${REINPLACE_CMD} \
|
|
|
|
-e 's;%%CFLAGS%%;${CFLAGS};' \
|
|
|
|
-e 's;%%FFLAGS%%;${FFLAGS};' \
|
|
|
|
-e 's;%%LDFLAGS%%;${LDFLAGS};' \
|
|
|
|
-e 's;%%LOCALBASE%%;${LOCALBASE};g' ${WRKSRC}/Makefile
|
2009-11-17 15:54:57 +01:00
|
|
|
# Ensure preprocessing is done
|
|
|
|
@${CP} ${WRKSRC}/dp1_linux.f ${WRKSRC}/dp1_linux.F
|
|
|
|
# Turn off some dependencies
|
2008-11-23 14:36:52 +01:00
|
|
|
@${MV} ${WRKSRC}/aqua_src.c ${WRKSRC}/aqua_src.c.nop
|
|
|
|
@${MV} ${WRKSRC}/gl_src.c ${WRKSRC}/gl_src.c.nop
|
2009-11-17 15:54:57 +01:00
|
|
|
@${MV} ${WRKSRC}/libplot_src.c ${WRKSRC}/libplot_src.c.nop
|
|
|
|
@${MV} ${WRKSRC}/rldp.c ${WRKSRC}/rldp.c.nop
|
2007-01-17 09:50:51 +01:00
|
|
|
|
2003-07-30 04:43:29 +02:00
|
|
|
pre-patch:
|
2008-11-23 14:36:52 +01:00
|
|
|
@${REINPLACE_CMD} -e 's/MAXOBV=1000000/MAXOBV=${MAXOBV}/' \
|
2003-07-30 04:43:29 +02:00
|
|
|
${WRKSRC}/DPCOPA.INC
|
|
|
|
|
|
|
|
post-install:
|
2013-12-21 19:04:53 +01:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/dpsnapsh.pdf \
|
|
|
|
${STAGEDIR}${DOCSDIR}
|
2003-07-30 04:43:29 +02:00
|
|
|
.endif
|
|
|
|
|
2013-12-21 19:04:53 +01:00
|
|
|
.include <bsd.port.mk>
|