# $NetBSD: buildlink2.mk,v 1.3 2003/12/03 12:05:18 markd Exp $ # # This Makefile fragment is included by packages that use the R shared library. # .if !defined(R_BUILDLINK2_MK) R_BUILDLINK2_MK= # defined BUILDLINK_PACKAGES+= R BUILDLINK_DEPENDS.R?= R>=1.7.0 BUILDLINK_PKGSRCDIR.R?= ../../math/R EVAL_PREFIX+= BUILDLINK_PREFIX.R=R BUILDLINK_PREFIX.R_DEFAULT= ${LOCALBASE} BUILDLINK_FILES.R= lib/R/bin/libR.* BUILDLINK_FILES.R+= lib/R/include/* BUILDLINK_FILES.R+= lib/R/include/R_ext/* BUILDLINK_CPPFLAGS.R= -I${BUILDLINK_PREFIX.R}/lib/R/include BUILDLINK_LDFLAGS.R= -L${BUILDLINK_PREFIX.R}/lib/R/bin -Wl,${RPATH_FLAG}${BUILDLINK_PREFIX.R}/lib/R/bin FIX_RPATH+= BUILDLINK_LDFLAGS.R BUILDLINK_TARGETS+= R-buildlink R-buildlink: _BUILDLINK_USE .endif # R_BUILDLINK2_MK