summaryrefslogtreecommitdiff
path: root/math/R/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'math/R/Makefile')
-rw-r--r--math/R/Makefile52
1 files changed, 52 insertions, 0 deletions
diff --git a/math/R/Makefile b/math/R/Makefile
new file mode 100644
index 00000000000..9c0e89881ab
--- /dev/null
+++ b/math/R/Makefile
@@ -0,0 +1,52 @@
+# $NetBSD: Makefile,v 1.1.1.1 1998/12/04 11:36:03 frueauf Exp $
+#
+
+DISTNAME= R-0.63.0
+WRKSRC= ${WRKDIR}/R-0.63
+CATEGORIES= math
+MASTER_SITES= http://lib.stat.cmu.edu/R/CRAN/src/base/ \
+ ftp://ftp.biostat.washington.edu/mirrors/R/CRAN/src/base/ \
+ http://cran.stat.wisc.edu/src/base/ \
+ ftp://ftp.ci.tuwien.ac.at/R/src/base/ \
+ http://SunSITE.auc.dk/R/src/base/ \
+ http://www.stat.unipg.it/pub/stat/statlib/R/CRAN/src/base/ \
+ ftp://ftp.u-aizu.ac.jp/pub/lang/R/CRAN/src/base/ \
+ ftp://dola.snu.ac.kr/pub/R/CRAN/src/base/ \
+ http://www.stat.math.ethz.ch/R-CRAN/src/base/
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= lamj@stat.cmu.edu
+HOMEPAGE= http://lib.stat.cmu.edu/R/CRAN/
+
+.if !exists(/usr/bin/f77)
+BUILD_DEPENDS+= f2c-19980516p1:../../lang/f2c
+.endif
+DEPENDS+= readline-2.2:../../devel/readline
+
+USE_PERL5= yes
+USE_GMAKE= yes
+
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS+=--enable-readline --with-x
+
+.include "../../mk/bsd.prefs.mk"
+
+# R_PAPERSIZE can be: A4, Letter, Legal, Executive
+#
+.if defined(PAPERSIZE)
+R_PAPERSIZE?= ${PAPERSIZE}
+.if (${R_PAPERSIZE} == "Letterdj")
+R_PAPERSIZE= Letter
+.endif
+.endif
+
+CFLAGS+= -I${LOCALBASE}/include
+LDFLAGS+= -L${LOCALBASE}/lib
+CONFIGURE_ENV+= CPPFLAGS=-I${LOCALBASE}/include \
+ DLLFLAGS="${LDFLAGS}" \
+ R_PAPERSIZE=${R_PAPERSIZE}
+
+post-build:
+ ${TOUCH} ${WRKSRC}/library/modreg/data/.keep_me
+
+.include "../../mk/bsd.pkg.mk"