2003-07-30 04:43:29 +02:00
|
|
|
# New ports collection makefile for: dataplot
|
|
|
|
# Date created: 20 July 2003
|
2008-07-19 20:37:32 +02:00
|
|
|
# Whom: Pedro F. Giffuni <pfgshield-freebsd@yahoo.com>
|
2003-07-30 04:43:29 +02:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= dataplot
|
2011-02-27 14:42:28 +01:00
|
|
|
PORTVERSION= 20090821
|
2012-06-01 07:26:28 +02:00
|
|
|
PORTREVISION= 1
|
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
|
2011-02-27 14:42:28 +01:00
|
|
|
DISTFILES= dpsrc${EXTRACT_SUFX}:source \
|
2008-07-19 20:37:32 +02:00
|
|
|
dpsnapsh.pdf:doc
|
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
|
2003-07-30 04:43:29 +02:00
|
|
|
COMMENT= A free software system for statistical visualization
|
|
|
|
|
2004-03-24 05:54:23 +01:00
|
|
|
LIB_DEPENDS= gd:${PORTSDIR}/graphics/gd \
|
2012-06-01 07:26:28 +02:00
|
|
|
png15:${PORTSDIR}/graphics/png \
|
2003-08-20 04:56:45 +02:00
|
|
|
jpeg:${PORTSDIR}/graphics/jpeg
|
2003-07-30 04:43:29 +02:00
|
|
|
|
2007-07-13 12:33:00 +02:00
|
|
|
USE_FORTRAN= yes
|
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
|
|
|
|
2005-05-01 14:57:30 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
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
|
|
|
|
@${REINPLACE_CMD} -e 's;%%LOCALBASE%%;${LOCALBASE};g ; \
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
s;%%LOCALBASE%%;${LOCALBASE};g' \
|
2003-07-30 04:43:29 +02:00
|
|
|
${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:
|
|
|
|
.if !defined(NOPORTDOCS)
|
2008-07-19 20:37:32 +02:00
|
|
|
@${INSTALL} -d ${DOCSDIR}
|
2003-07-30 04:43:29 +02:00
|
|
|
@${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/dpsnapsh.pdf \
|
|
|
|
${DOCSDIR}
|
|
|
|
.endif
|
|
|
|
|
2005-05-01 14:57:30 +02:00
|
|
|
.include <bsd.port.post.mk>
|