@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.extension,v 1.17 2012/09/11 23:04:16 asau Exp $
+# $NetBSD: Makefile.extension,v 1.18 2013/01/17 11:09:44 mishka Exp $
#
# This Makefile fragment is included by packages for R library packages.
#
@@ -32,6 +32,10 @@
R_INST_DIRS?= ${R_PKGNAME}
R_HOMEPAGE_BASE= http://cran.r-project.org/web/packages
R_PKG_INSTALL_ARGS= -l ${DESTDIR}${PREFIX}/${R_LIB}
+
+.if defined(CONFIGURE_ARGS)
+R_PKG_INSTALL_ARGS+= --configure-args='${CONFIGURE_ARGS}'
+.endif
GENERATE_PLIST+= ( cd ${DESTDIR}${PREFIX}; for dir in ${R_INST_DIRS}; do \
${FIND} ${R_LIB}/$${dir} \( -type f -o -type l \) -print; done ) | ${SORT} -u;