summaryrefslogtreecommitdiffstats
path: root/math/libRmath/Makefile
blob: 412b554718aa351d761037efaa50020ffec63fe7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# vim: tabstop=8 softtabstop=0 noexpandtab
# Ports Makefile for:	libRmath
# Date created:		14 May 2004
# Whom:			Eric van Gyzen <vangyzen@stat.duke.edu>
#
# $FreeBSD$
#

PORTNAME=	libRmath
PORTVERSION=	2.2.0
CATEGORIES=	math
MASTER_SITES=	http://cran.r-project.org/src/base/R-2/ \
		ftp://cran.r-project.org/pub/R/src/base/R-2/ \
		http://cran.at.r-project.org/src/base/R-2/ \
		http://cran.au.r-project.org/src/base/R-2/ \
		http://cran.br.r-project.org/src/base/R-2/ \
		http://cran.ch.r-project.org/src/base/R-2/ \
		http://cran.es.r-project.org/src/base/R-2/ \
		http://cran.dk.r-project.org/src/base/R-2/ \
		http://cran.hu.r-project.org/src/base/R-2/ \
		http://cran.uk.r-project.org/src/base/R-2/ \
		http://cran.us.r-project.org/src/base/R-2/ \
		http://cran.za.r-project.org/src/base/R-2/ \
		ftp://ftp.u-aizu.ac.jp/pub/lang/R/CRAN/src/base/R-2/ \
		http://lib.stat.cmu.edu/R/CRAN/src/base/R-2/ \
		http://cran.stat.ucla.edu/src/base/R-2/ \
		http://probability.ca/cran/src/base/R-2/ \
		http://www.ibiblio.org/pub/languages/R/CRAN/src/base/R-2/ \
		http://www.bioconductor.org/CRAN/src/base/R-2/
DISTNAME=	R-${PORTVERSION}

MAINTAINER=	eric+fbports@vangyzen.net
COMMENT=	The standalone math library from R

CONFIGURE_ARGS=	--without-x
INSTALLS_SHLIB=	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} -p ${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 <bsd.port.mk>
OpenPOWER on IntegriCloud