3ef633718c
Makefiles simply need to use this value often, for better or for worse. (2) Create a new variable FIX_RPATH that lists variables that should be cleansed of -R or -rpath values if ${_USE_RPATH} is "no". By default, FIX_RPATH contains LIBS, X11_LDFLAGS, and LDFLAGS, and additional variables may be appended from package Makefiles.
27 lines
788 B
Makefile
27 lines
788 B
Makefile
# $NetBSD: buildlink2.mk,v 1.2 2003/03/14 19:37:48 jlam 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.6.1
|
|
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
|