blob: fa8f477698263384b2ac8bbeec48a9515ff18a97 (
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.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
|