2003-05-17 00:46:04 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.7 2003/05/17 04:46:04 ian Exp $
|
2001-03-21 22:26:23 -05:00
|
|
|
|
|
|
|
# R, a clone of the S-Plus (based on AT&T S) statistical package
|
|
|
|
|
2001-04-05 09:00:21 -04:00
|
|
|
COMMENT= "clone of S, a powerful math/statistics/graphics language"
|
2003-05-17 00:46:04 -04:00
|
|
|
DISTNAME= R-1.7.0
|
2001-03-21 22:26:23 -05:00
|
|
|
CATEGORIES= math
|
|
|
|
|
|
|
|
HOMEPAGE= http://www.r-project.org/
|
|
|
|
|
|
|
|
MAINTAINER= Ian Darwin <ian@openbsd.org>
|
|
|
|
|
2003-05-17 00:46:04 -04:00
|
|
|
BROKEN= Problems with dynamic loading
|
|
|
|
|
2001-03-21 22:26:23 -05:00
|
|
|
# Licensing: GPL
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
|
|
|
MASTER_SITES= http://cran.r-project.org/src/base/ \
|
2001-04-05 09:00:21 -04:00
|
|
|
http://cran.uk.r-project.org/src/base/ \
|
|
|
|
http://cran.us.r-project.org/src/base/ \
|
|
|
|
http://cran.dk.r-project.org/src/base/
|
2001-03-21 22:26:23 -05:00
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
|
|
|
FAKE_FLAGS=PREFIX=${PREFIX} DESTDIR=${WRKINST}
|
|
|
|
|
2003-05-17 00:46:04 -04:00
|
|
|
MAKE_ENV+= CC=${CC} CXX=${CXX} SUDO=${SUDO}
|
2001-03-21 22:26:23 -05:00
|
|
|
USE_X11= Yes
|
|
|
|
CONFIGURE_STYLE= gnu dest
|
|
|
|
CONFIGURE_ARGS+= --with-readline
|
|
|
|
CONFIGURE_ARGS+= ${CONFIGURE_SHARED}
|
2003-05-17 00:46:04 -04:00
|
|
|
#CONFIGURE_ENV+= LDFLAGS="-Wl,-E"
|
2001-12-09 01:25:32 -05:00
|
|
|
MODGNU_CONFIG_GUESS_DIRS=${WRKSRC} ${WRKSRC}/tools
|
2001-03-21 22:26:23 -05:00
|
|
|
|
2003-05-17 00:46:04 -04:00
|
|
|
FLAVOR?=
|
|
|
|
.if ${FLAVOR:L:Mno-x11}
|
|
|
|
CONFGURE_ARGS+=--without-x
|
|
|
|
.else
|
|
|
|
LIB_DEPENDS+= jpeg.62::graphics/jpeg png.2::graphics/png
|
|
|
|
.endif
|
|
|
|
|
2001-04-05 09:00:21 -04:00
|
|
|
post-install:
|
|
|
|
cd ${PREFIX}/bin && \
|
|
|
|
sed -e "s@^R_HOME_DIR=.*@R_HOME_DIR=${TRUEPREFIX}/lib/R@" R > R.new && \
|
|
|
|
rm -f R && ${INSTALL_PROGRAM} R.new R
|
2001-03-21 22:26:23 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|