2010-11-19 02:23:05 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.42 2010/11/19 07:23:10 espie Exp $
|
2001-03-21 22:26:23 -05:00
|
|
|
|
2004-09-15 05:11:58 -04:00
|
|
|
SHARED_ONLY= Yes
|
2001-03-21 22:26:23 -05:00
|
|
|
|
2007-09-15 14:44:36 -04:00
|
|
|
COMMENT= clone of S, a powerful math/statistics/graphics language
|
2009-03-11 04:21:33 -04:00
|
|
|
DISTNAME= R-2.8.1
|
2010-10-24 11:05:49 -04:00
|
|
|
REVISION= 4
|
2009-03-11 04:21:33 -04:00
|
|
|
SHARED_LIBS= Rlapack 29.0 \
|
|
|
|
Rblas 29.0
|
2006-11-11 13:52:12 -05:00
|
|
|
|
2004-04-28 17:40:31 -04:00
|
|
|
CATEGORIES= math
|
|
|
|
HOMEPAGE= http://www.r-project.org/
|
2001-03-21 22:26:23 -05:00
|
|
|
|
2004-04-28 17:40:31 -04:00
|
|
|
# GPL
|
2001-03-21 22:26:23 -05:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2009-03-11 04:21:33 -04:00
|
|
|
|
2010-10-24 11:05:49 -04:00
|
|
|
WANTLIB= GL ICE SM X11 Xau Xdamage Xdmcp Xext Xfixes Xmu Xrender Xss Xt \
|
|
|
|
Xxf86vm bz2 c cairo drm expat fontconfig freetype glib-2.0 \
|
|
|
|
gmodule-2.0 gobject-2.0 gthread-2.0 jpeg m ncurses pango-1.0 \
|
|
|
|
pangocairo-1.0 pangoft2-1.0 pcre pixman-1 png pthread-stubs \
|
|
|
|
readline tiff xcb xcb-render xcb-shm z \
|
2010-11-06 18:06:57 -04:00
|
|
|
${MODFORTRAN_WANTLIB} ${MODTK_WANTLIB}
|
2001-03-21 22:26:23 -05:00
|
|
|
|
2005-10-08 05:47:36 -04:00
|
|
|
MASTER_SITES= http://cran.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.dk.r-project.org/src/base/R-2/
|
2004-04-28 17:40:31 -04:00
|
|
|
|
2010-10-24 11:05:49 -04:00
|
|
|
USE_GROFF= Yes
|
2010-05-28 17:01:03 -04:00
|
|
|
MODULES= fortran devel/gettext x11/tk
|
2010-10-23 11:09:57 -04:00
|
|
|
MODFORTRAN_COMPILER = g77
|
2010-05-28 17:01:03 -04:00
|
|
|
|
|
|
|
BUILD_DEPENDS= ${MODFORTRAN_BUILD_DEPENDS}
|
|
|
|
LIB_DEPENDS= ${MODFORTRAN_LIB_DEPENDS} \
|
|
|
|
${MODTK_LIB_DEPENDS} \
|
2010-11-19 02:23:05 -05:00
|
|
|
archivers/bzip2 \
|
|
|
|
graphics/cairo \
|
|
|
|
graphics/jpeg \
|
|
|
|
devel/glib2 \
|
|
|
|
devel/pango \
|
|
|
|
graphics/png \
|
|
|
|
graphics/tiff
|
2004-04-28 17:40:31 -04:00
|
|
|
|
2007-10-07 13:54:54 -04:00
|
|
|
CONFIGURE_STYLE=gnu
|
2004-04-28 17:40:31 -04:00
|
|
|
MODGNU_CONFIG_GUESS_DIRS=${WRKSRC}/tools
|
|
|
|
CONFIGURE_ARGS= ${CONFIGURE_SHARED} \
|
2005-10-08 05:47:36 -04:00
|
|
|
--with-readline --with-tcltk \
|
2009-03-11 04:21:33 -04:00
|
|
|
--with-tcl-config=${MODTCL_CONFIG} \
|
|
|
|
--with-tk-config=${MODTK_CONFIG} \
|
2007-12-14 10:08:18 -05:00
|
|
|
--with-system-zlib --with-system-bzlib --with-system-pcre
|
2004-04-28 17:40:31 -04:00
|
|
|
CONFIGURE_ENV= FFLAGS="${FFLAGS}"
|
|
|
|
|
|
|
|
MAKE_FLAGS= INSTALL='install -c' \
|
|
|
|
INSTALL_DATA='install -c -m 644' \
|
|
|
|
INSTALL_PROGRAM='install -c -s -m 555' \
|
2006-01-06 12:42:01 -05:00
|
|
|
INSTALL_SCRIPT='install -c -m 555' \
|
2009-03-11 04:21:33 -04:00
|
|
|
LIBRlapack_VERSION=${LIBRlapack_VERSION} \
|
|
|
|
LIBRblas_VERSION=${LIBRblas_VERSION}
|
2004-04-28 17:40:31 -04:00
|
|
|
|
2008-01-04 12:48:33 -05:00
|
|
|
DESTDIRNAME= DESTDIR
|
|
|
|
FAKE_FLAGS= PREFIX=${PREFIX} \
|
2006-01-06 12:42:01 -05:00
|
|
|
LIBRlapack_VERSION=${LIBRlapack_VERSION}
|
2003-05-17 00:46:04 -04:00
|
|
|
|
2001-04-05 09:00:21 -04:00
|
|
|
post-install:
|
2010-10-24 11:05:49 -04:00
|
|
|
@perl -i -pe 's:^R_HOME_DIR=.*:R_HOME_DIR=${TRUEPREFIX}/lib/R:' \
|
2004-04-28 17:40:31 -04:00
|
|
|
${PREFIX}/bin/R
|
2001-03-21 22:26:23 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|