1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00
freebsd-ports/Mk/bsd.cran.mk
Martin Wilke 964a7f8b5e R-cran-sm is a R module for smoothing methods for nonparametric
regression and density estimation. It is software linked to the
book 'Applied Smoothing Techniques for Data Analysis: The Kernel
Approach with S-Plus Illustrations' Oxford University Press.

WWW:	http://www.stats.gla.ac.uk/~adrian/sm

PR:		ports/132770
Submitted by:	Wen Heping <wenheping at gmail.com>
2009-03-22 13:32:38 +00:00

29 lines
653 B
Makefile

# Date created: 2009-01-25
# Whom: Wen Heping <wenheping@gmail.com>
.if defined(R_MOD)
MASTER_CRAN_SITES+= http://mirrors.geoexpat.com/cran/src/contrib/ \
http://cran.rakanu.com/src/contrib/ \
http://cran.cnr.berkeley.edu/src/contrib/
.endif
MASTER_SITES?= ${MASTER_CRAN_SITES}
.if defined(R_MOD)
BUILD_DEPENDS+= ${LOCALBASE}/bin/R:${PORTSDIR}/math/R
RUN_DEPENDS+= ${LOCALBASE}/bin/R:${PORTSDIR}/math/R
.endif
R_MOD_DIR?= lib/R/library/${PORTNAME}
PLIST_SUB+= R_MOD_DIR=${R_MOD_DIR}
NO_BUILD= yes
R_COMMAND= ${LOCALBASE}/bin/R
R_INS= ${R_COMMAND} CMD INSTALL
do-install:
.if defined(R_MOD)
@cd ${WRKDIR} && ${R_INS} ${PORTNAME}
.endif