1995-04-11 03:19:12 +02:00
|
|
|
# New ports collection makefile for: gnuplot
|
1998-04-20 01:22:24 +02:00
|
|
|
# Date created: 19 April 1998
|
1997-01-13 09:15:58 +01:00
|
|
|
# Whom: chuckr
|
1995-04-11 03:19:12 +02:00
|
|
|
#
|
1999-08-25 09:23:21 +02:00
|
|
|
# $FreeBSD$
|
1995-04-11 03:19:12 +02:00
|
|
|
#
|
|
|
|
|
2000-04-14 09:20:58 +02:00
|
|
|
PORTNAME= gnuplot
|
2007-10-07 08:51:22 +02:00
|
|
|
PORTVERSION= 4.2.2
|
2008-03-17 17:00:13 +01:00
|
|
|
PORTREVISION= 1
|
1996-11-18 11:25:35 +01:00
|
|
|
CATEGORIES= math graphics
|
2002-11-05 07:09:30 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
1994-10-06 02:09:49 +01:00
|
|
|
|
2003-06-09 18:13:30 +02:00
|
|
|
MAINTAINER= glewis@FreeBSD.org
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= A command-driven interactive function plotting program
|
1997-01-12 21:07:26 +01:00
|
|
|
|
2003-06-03 18:16:12 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2007-04-14 08:58:38 +02:00
|
|
|
WANT_WX= yes
|
2007-10-29 00:21:59 +01:00
|
|
|
CONFIGURE_ARGS+=--with-lasergnu \
|
2007-04-14 08:19:59 +02:00
|
|
|
--with-readline=gnu \
|
|
|
|
--without-linux-vga \
|
2007-04-14 04:48:54 +02:00
|
|
|
--without-lisp-files \
|
2007-04-14 08:19:59 +02:00
|
|
|
--without-tutorial
|
2007-04-14 04:48:54 +02:00
|
|
|
|
2004-10-26 21:51:06 +02:00
|
|
|
OPTIONS= GD "Enable GD support" on \
|
2007-10-29 00:21:59 +01:00
|
|
|
GRIDBOX "Use the gridbox optimization for hidden3d" off \
|
2007-04-14 08:19:59 +02:00
|
|
|
PDF "Enable PDF support" on \
|
2007-04-14 08:58:38 +02:00
|
|
|
PLOT "Enable plot support" on \
|
2007-10-29 00:21:59 +01:00
|
|
|
TETEX "Search kpsexpand at run-time" on \
|
2007-10-07 08:51:22 +02:00
|
|
|
THINSPLINES "Enable thin plate splines for grids in dgrid3d" off \
|
2007-04-14 08:58:38 +02:00
|
|
|
WX "Enable WX support" off
|
2003-06-03 18:16:12 +02:00
|
|
|
|
|
|
|
MAN1= gnuplot.1 lasergnu.1
|
2004-06-12 22:13:45 +02:00
|
|
|
INFO= gnuplot
|
|
|
|
|
2007-04-14 08:42:34 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2002-11-05 23:28:11 +01:00
|
|
|
.if !defined(WITHOUT_X11)
|
2008-03-17 17:00:13 +01:00
|
|
|
USE_XORG= x11
|
2004-10-26 21:51:06 +02:00
|
|
|
PLIST_SUB+= X11=""
|
2003-06-03 18:16:12 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-x
|
2004-10-26 21:51:06 +02:00
|
|
|
PLIST_SUB+= X11="@comment "
|
2002-11-05 23:28:11 +01:00
|
|
|
.endif
|
|
|
|
|
2004-07-13 18:28:56 +02:00
|
|
|
.if defined(WITHOUT_GD)
|
|
|
|
CONFIGURE_ARGS+= --without-gd
|
2004-06-27 20:12:21 +02:00
|
|
|
.else
|
2004-07-13 18:28:56 +02:00
|
|
|
LIB_DEPENDS+= gd.4:${PORTSDIR}/graphics/gd
|
|
|
|
CONFIGURE_ARGS+= --with-gd=${LOCALBASE}
|
2002-11-23 19:25:47 +01:00
|
|
|
.endif
|
1995-04-22 13:30:15 +02:00
|
|
|
|
2007-10-07 08:51:22 +02:00
|
|
|
.if !defined(WITHOUT_GRIDBOX)
|
|
|
|
CONFIGURE_ARGS+= --disable-h3d-quadtree --enable-h3d-gridbox
|
|
|
|
.endif
|
|
|
|
|
2004-06-27 20:12:21 +02:00
|
|
|
.if defined(WITHOUT_PDF)
|
|
|
|
CONFIGURE_ARGS+= --without-pdf
|
|
|
|
.else
|
2006-10-09 10:18:35 +02:00
|
|
|
LIB_DEPENDS+= pdf.8:${PORTSDIR}/print/pdflib
|
2003-06-03 18:16:12 +02:00
|
|
|
CONFIGURE_ARGS+= --with-pdf=${LOCALBASE}
|
2002-11-05 23:28:11 +01:00
|
|
|
.endif
|
|
|
|
|
2007-04-14 08:19:59 +02:00
|
|
|
.if defined(WITHOUT_PLOT)
|
|
|
|
CONFIGURE_ARGS+= --without-plot
|
|
|
|
.else
|
2008-03-17 17:00:13 +01:00
|
|
|
USE_XORG+= xaw xmu xt xext
|
2007-04-14 08:19:59 +02:00
|
|
|
LIB_DEPENDS+= plot.4:${PORTSDIR}/graphics/plotutils
|
|
|
|
CONFIGURE_ARGS+= --with-plot=${LOCALBASE}
|
|
|
|
.endif
|
|
|
|
|
2007-10-29 00:21:59 +01:00
|
|
|
.if defined(WITHOUT_TETEX)
|
|
|
|
PLIST_SUB+= TETEX="@comment "
|
|
|
|
.else
|
|
|
|
BUILD_DEPENDS+= latex:${PORTSDIR}/print/teTeX-base
|
|
|
|
CONFIGURE_ARGS+= --with-kpsexpand
|
|
|
|
PLIST_SUB+= TETEX=""
|
|
|
|
.endif
|
|
|
|
|
2007-10-07 08:51:22 +02:00
|
|
|
.if defined(WITHOUT_THINSPLINES)
|
|
|
|
CONFIGURE_ARGS+= --disable-thin-splines
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --enable-thin-splines
|
|
|
|
.endif
|
|
|
|
|
2007-04-14 08:58:38 +02:00
|
|
|
.if defined(WITHOUT_WX)
|
|
|
|
CONFIGURE_ARGS+= --disable-wxwidgets
|
|
|
|
.else
|
|
|
|
USE_WX= 2.4+
|
2007-04-16 20:17:59 +02:00
|
|
|
WX_CONF_ARGS= absolute
|
2007-04-14 08:58:38 +02:00
|
|
|
.endif
|
|
|
|
|
2004-06-12 22:13:45 +02:00
|
|
|
post-patch:
|
2007-10-29 00:21:59 +01:00
|
|
|
.if defined(WITHOUT_TETEX)
|
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
'/^install:/s/install-am//' ${WRKSRC}/share/LaTeX/Makefile.in
|
|
|
|
.endif
|
2004-06-12 22:13:45 +02:00
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
's|)/@PACKAGE@/@PKG_MAJOR@|)|g' ${WRKSRC}/src/Makefile.in
|
2004-10-26 21:51:06 +02:00
|
|
|
@${FIND} "${WRKSRC}" -name '*.orig' -delete
|
2004-06-12 22:13:45 +02:00
|
|
|
|
2005-11-01 21:46:22 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
post-build:
|
2007-04-14 04:48:54 +02:00
|
|
|
@cd ${WRKSRC}/docs && ${MAKE} groff
|
2005-11-01 21:46:22 +01:00
|
|
|
.endif
|
|
|
|
|
2000-01-23 23:49:30 +01:00
|
|
|
post-install:
|
2004-06-12 22:13:45 +02:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/src/lasergnu ${PREFIX}/bin
|
2003-06-03 18:16:12 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${EXAMPLESDIR}
|
2004-06-12 22:13:45 +02:00
|
|
|
cd ${WRKSRC}/demo && ${FIND} . \
|
|
|
|
| ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${EXAMPLESDIR}
|
2005-11-01 21:46:22 +01:00
|
|
|
@${MKDIR} ${DOCSDIR}/psdoc
|
2007-04-14 04:48:54 +02:00
|
|
|
cd ${WRKSRC}/docs && ${INSTALL_DATA} gnuplot.txt gnuplot.dvi \
|
|
|
|
gnuplot.ps ${DOCSDIR}
|
2005-11-01 21:46:22 +01:00
|
|
|
cd ${WRKSRC}/docs/psdoc && ${INSTALL_DATA} README ps_* ${DOCSDIR}/psdoc
|
2003-06-03 18:16:12 +02:00
|
|
|
.endif
|
1996-11-18 15:17:24 +01:00
|
|
|
|
2007-04-14 08:42:34 +02:00
|
|
|
.include <bsd.port.post.mk>
|