summaryrefslogtreecommitdiff
path: root/math/R/Makefile
blob: 9c0e89881abf0a0a42a6da7e6f08c7e292bf9d90 (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
# $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"