summaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authoruebayasi <uebayasi@pkgsrc.org>2003-01-28 01:15:45 +0000
committeruebayasi <uebayasi@pkgsrc.org>2003-01-28 01:15:45 +0000
commitd13f7b3e9a64067343b6a0b971197f993453803d (patch)
tree8396aeaf35365d2ff6eb397be1d40c412483b6d9 /math
parent79d93809eaa858a09777d072900320d64269fd3d (diff)
downloadpkgsrc-d13f7b3e9a64067343b6a0b971197f993453803d.tar.gz
Initial import.
Diffstat (limited to 'math')
-rw-r--r--math/superlu/buildlink2.mk26
1 files changed, 26 insertions, 0 deletions
diff --git a/math/superlu/buildlink2.mk b/math/superlu/buildlink2.mk
new file mode 100644
index 00000000000..0bd1c9357b2
--- /dev/null
+++ b/math/superlu/buildlink2.mk
@@ -0,0 +1,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