From d90e6e3c64ffee1b38e5e80601fef6acacccbbc4 Mon Sep 17 00:00:00 2001 From: krion Date: Sat, 15 May 2004 15:34:15 +0000 Subject: Add libRmath 1.9.0, the standalone math library from R. PR: ports/66644 Submitted by: Eric van Gyzen --- math/Makefile | 1 + math/libRmath/Makefile | 54 +++++++++++++++++++++++++++++++++++++++++++++++++ math/libRmath/distinfo | 2 ++ math/libRmath/pkg-descr | 10 +++++++++ 4 files changed, 67 insertions(+) create mode 100644 math/libRmath/Makefile create mode 100644 math/libRmath/distinfo create mode 100644 math/libRmath/pkg-descr (limited to 'math') diff --git a/math/Makefile b/math/Makefile index 02843d2460f0..4ddf12ff5485 100644 --- a/math/Makefile +++ b/math/Makefile @@ -80,6 +80,7 @@ SUBDIR += lambda SUBDIR += lapack SUBDIR += lapack++ + SUBDIR += libRmath SUBDIR += libgmp-freebsd SUBDIR += libgmp4 SUBDIR += libmath++ diff --git a/math/libRmath/Makefile b/math/libRmath/Makefile new file mode 100644 index 000000000000..7a35bfd369ed --- /dev/null +++ b/math/libRmath/Makefile @@ -0,0 +1,54 @@ +# ex: tabstop=8 softtabstop=0 noexpandtab +# Ports collection Makefile for: libRmath +# Date created: 14 May 2004 +# Whom: Eric van Gyzen +# +# $FreeBSD$ +# + +PORTNAME= libRmath +PORTVERSION= 1.9.0 +CATEGORIES= math +MASTER_SITES= http://cran.r-project.org/src/base/ \ + ftp://cran.r-project.org/pub/R/src/base/ \ + http://cran.at.r-project.org/src/base/ \ + http://cran.au.r-project.org/src/base/ \ + http://cran.br.r-project.org/src/base/ \ + http://cran.ch.r-project.org/src/base/ \ + http://cran.es.r-project.org/src/base/ \ + http://cran.dk.r-project.org/src/base/ \ + http://cran.hu.r-project.org/src/base/ \ + http://cran.uk.r-project.org/src/base/ \ + http://cran.us.r-project.org/src/base/ \ + http://cran.za.r-project.org/src/base/ \ + ftp://ftp.u-aizu.ac.jp/pub/lang/R/CRAN/src/base/ \ + http://lib.stat.cmu.edu/R/CRAN/src/base/ \ + http://cran.stat.ucla.edu/src/base/ \ + http://probability.ca/cran/src/base/ \ + http://www.ibiblio.org/pub/languages/R/CRAN/src/base/ \ + http://www.bioconductor.org/CRAN/src/base/ +DISTNAME= R-${PORTVERSION} +EXTRACT_SUFX= .tgz + +MAINTAINER= vangyzen@stat.duke.edu +COMMENT= The standalone math library from R + +INSTALLS_SHLIB= yes +USE_PERL5= yes +GNU_CONFIGURE= yes + +PLIST_FILES= include/Rmath.h lib/libRmath.a lib/libRmath.so lib/libRmath.so.0 + +do-build: + (cd ${WRKSRC}/src/include; ${MAKE} Rmath.h) + (cd ${WRKSRC}/src/nmath/standalone; ${MAKE}) + +do-install: + ${MKDIR} ${PREFIX}/include ${PREFIX}/lib + ${INSTALL_DATA} ${WRKSRC}/src/include/Rmath.h ${PREFIX}/include/ + ${INSTALL_DATA} ${WRKSRC}/src/nmath/standalone/libRmath.a ${PREFIX}/lib/ + ${INSTALL_DATA} ${WRKSRC}/src/nmath/standalone/libRmath.so \ + ${PREFIX}/lib/libRmath.so.0 + (cd ${PREFIX}/lib; ${LN} -sf libRmath.so.0 libRmath.so) + +.include diff --git a/math/libRmath/distinfo b/math/libRmath/distinfo new file mode 100644 index 000000000000..fda50e0b4072 --- /dev/null +++ b/math/libRmath/distinfo @@ -0,0 +1,2 @@ +MD5 (R-1.9.0.tgz) = 79ae9d20a7bed94d7c92504c8c130310 +SIZE (R-1.9.0.tgz) = 9505598 diff --git a/math/libRmath/pkg-descr b/math/libRmath/pkg-descr new file mode 100644 index 000000000000..e927f636f620 --- /dev/null +++ b/math/libRmath/pkg-descr @@ -0,0 +1,10 @@ +This is the standalone math library from R. R is a language +and environment for statistical computing and graphics. +To use the routines in your own C or C++ programs, include + +#define MATHLIB_STANDALONE +#include + +and link against -lRmath. + +WWW: http://www.R-project.org/ -- cgit