openbsd-ports/math/R/Makefile
2010-07-18 10:30:41 +00:00

72 lines
2.0 KiB
Makefile

# $OpenBSD: Makefile,v 1.36 2010/07/18 10:30:41 steven Exp $
SHARED_ONLY= Yes
COMMENT= clone of S, a powerful math/statistics/graphics language
DISTNAME= R-2.8.1
REVISION= 3
SHARED_LIBS= Rlapack 29.0 \
Rblas 29.0
CATEGORIES= math
HOMEPAGE= http://www.r-project.org/
# GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= ICE SM X11 Xau Xdmcp Xext Xmu Xrender Xss Xt c expat \
fontconfig freetype m ncurses pixman-1 pthread-stubs \
readline xcb xcb-render xcb-render-util z \
${MODFORTRAN_WANTLIB}
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/
USE_X11= Yes
MODULES= fortran devel/gettext x11/tk
MODFORTRAN_WANTG77=Yes
BUILD_DEPENDS= ${MODFORTRAN_BUILD_DEPENDS}
LIB_DEPENDS= ${MODFORTRAN_LIB_DEPENDS} \
${MODTK_LIB_DEPENDS} \
bz2::archivers/bzip2 \
cairo::graphics/cairo \
jpeg.>=60::graphics/jpeg \
glitz::graphics/glitz \
glib-2.0,gmodule-2.0,gobject-2.0,gthread-2.0::devel/glib2 \
pango-1.0,pangocairo-1.0,pangoft2-1.0::devel/pango \
pcre:pcre->=4:devel/pcre \
png::graphics/png \
tiff::graphics/tiff
CONFIGURE_STYLE=gnu
MODGNU_CONFIG_GUESS_DIRS=${WRKSRC}/tools
CONFIGURE_ARGS= ${CONFIGURE_SHARED} \
--with-readline --with-tcltk \
--with-tcl-config=${MODTCL_CONFIG} \
--with-tk-config=${MODTK_CONFIG} \
--with-system-zlib --with-system-bzlib --with-system-pcre
CONFIGURE_ENV= FFLAGS="${FFLAGS}"
MAKE_FLAGS= INSTALL='install -c' \
INSTALL_DATA='install -c -m 644' \
INSTALL_PROGRAM='install -c -s -m 555' \
INSTALL_SCRIPT='install -c -m 555' \
LIBRlapack_VERSION=${LIBRlapack_VERSION} \
LIBRblas_VERSION=${LIBRblas_VERSION}
DESTDIRNAME= DESTDIR
FAKE_FLAGS= PREFIX=${PREFIX} \
LIBRlapack_VERSION=${LIBRlapack_VERSION}
post-install:
perl -i -pe 's:^R_HOME_DIR=.*:R_HOME_DIR=${TRUEPREFIX}/lib/R:' \
${PREFIX}/bin/R
.include <bsd.port.mk>