summaryrefslogtreecommitdiff
path: root/math/rlab/Makefile
diff options
context:
space:
mode:
authorjtb <jtb>2001-02-01 04:44:49 +0000
committerjtb <jtb>2001-02-01 04:44:49 +0000
commit9d86d213ca022531738068c5b42d46ed9ff64ba0 (patch)
tree768bcfc1df46da3fd04a04d59a57cc6abc5a7f81 /math/rlab/Makefile
parent549a5e6ff53bc4fb7ef2fd8dafc87d6e77ea34cd (diff)
downloadpkgsrc-9d86d213ca022531738068c5b42d46ed9ff64ba0.tar.gz
Allow use of pgraf. Executable script is now `rlab' instead of `rlab2'.
Changed man page to reflect this. Fixed some PLIST trouble.
Diffstat (limited to 'math/rlab/Makefile')
-rw-r--r--math/rlab/Makefile25
1 files changed, 20 insertions, 5 deletions
diff --git a/math/rlab/Makefile b/math/rlab/Makefile
index 2a07092f646..32b8acca132 100644
--- a/math/rlab/Makefile
+++ b/math/rlab/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1.1.1 2001/01/31 07:30:25 jtb Exp $
+# $NetBSD: Makefile,v 1.2 2001/02/01 04:44:49 jtb Exp $
DISTNAME= rlab-2.1.05
CATEGORIES= math
@@ -7,8 +7,8 @@ MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=rlab/}
MAINTAINER= jtb@netbsd.org
HOMEPAGE= http://rlab.sourceforge.net/
-DEPENDS+= boehm-gc-[0-9]*:../../devel/boehm-gc
-DEPENDS+= readline-[0-9]*:../../devel/readline
+DEPENDS+= boehm-gc>=5.3:../../devel/boehm-gc
+DEPENDS+= readline>=4.0:../../devel/readline
BUILD_DEPENDS+= autoconf:../../devel/autoconf
GNU_CONFIGURE= YES
@@ -17,6 +17,8 @@ USE_FORTRAN= YES
EVAL_PREFIX+= GC_PREFIX=boehm-gc
CONFIGURE_ARGS+= "--with-GC=${GC_PREFIX}"
+PLIST_SRC= ${PKGDIR}/PLIST
+
.include "../../mk/bsd.prefs.mk"
RLAB_PLOT_PKG?= gnuplot
@@ -31,13 +33,26 @@ PLIST_SRC+= ${PKGDIR}/PLIST.plplot
DEPENDS+= plotmtv-[0-9]*:../../graphics/plotmtv
CONFIGURE_ARGS+= "--with-plotmtv=yes"
PLIST_SRC+= ${PKGDIR}/PLIST.plotmtv
+.elif (${RLAB_PLOT_PKG} == "pgraf")
+DEPENDS+= pgraf-[0-9]*:../../graphics/pgraf
+EVAL_PREFIX+= PGRAF_PREFIX=pgraf
+CONFIGURE_ARGS+= "--with-pgraf=yes"
+PLIST_SRC+= ${PKGDIR}/PLIST.pgraf
.else
-DEPENDS+= gnuplot-[0-9]*:../../graphics/gnuplot
+DEPENDS+= gnuplot>=3.5:../../graphics/gnuplot
CONFIGURE_ARGS+= "--with-gnuplot=yes"
PLIST_SRC+= ${PKGDIR}/PLIST.gnuplot
.endif
pre-configure:
- (cd ${WRKSRC} && autoconf)
+ (cd ${WRKSRC} && autoconf)
+
+post-install:
+.if (${RLAB_PLOT_PKG} == "pgraf")
+ ${INSTALL_DATA} ${PGRAF_PREFIX}/share/examples/pgraf/pgraf.r \
+ ${PREFIX}/share/rlab/rlib
+ ${INSTALL_DATA} ${PGRAF_PREFIX}/share/examples/pgraf/pgdemo.r \
+ ${PREFIX}/share/rlab/examples
+.endif
.include "../../mk/bsd.pkg.mk"