summaryrefslogtreecommitdiff
path: root/math/superlu/buildlink2.mk
blob: 0bd1c9357b20ac3deec624f953c6e235f8bcd2c4 (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
# $NetBSD: buildlink2.mk,v 1.1 2003/01/28 01:15:45 uebayasi Exp $
#
# This Makefile fragment is included by packages that use superlu.
#

.if !defined(SUPERLU_BUILDLINK2_MK)
SUPERLU_BUILDLINK2_MK=	# defined

BUILDLINK_PACKAGES+=			superlu
BUILDLINK_DEPENDS.superlu?=		superlu>=2.0nb2
BUILDLINK_PKGSRCDIR.superlu?=		../../math/superlu

EVAL_PREFIX+=	BUILDLINK_PREFIX.superlu=superlu
BUILDLINK_PREFIX.superlu_DEFAULT=	${LOCALBASE}
BUILDLINK_FILES.superlu+=	include/superlu/*.h
BUILDLINK_FILES.superlu+=	lib/libsuperlu.*

# Users need to manually set
#	CPPFLAGS+=	${BUILDLINK_CPPFLAGS.superlu}
BUILDLINK_CPPFLAGS.superlu+=	-I${BUILDLINK_PREFIX.superlu}/include/superlu

BUILDLINK_TARGETS+=	superlu-buildlink

superlu-buildlink: _BUILDLINK_USE

.endif	# SUPERLU_BUILDLINK2_MK