summaryrefslogtreecommitdiff
path: root/math/R/buildlink2.mk
blob: 63c0b50fd43341cc579dec06c48dfe80822af28e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# $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