summaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorsnj <snj@pkgsrc.org>2004-04-25 21:38:03 +0000
committersnj <snj@pkgsrc.org>2004-04-25 21:38:03 +0000
commit8e10678c945b24b7b72e7e54605301b0794929bf (patch)
tree9522c5d3064a6938e20dca707ea8376fd4524fe2 /math
parente0fd17fc8835bee0117478b7e47832af33e0bfe8 (diff)
downloadpkgsrc-8e10678c945b24b7b72e7e54605301b0794929bf.tar.gz
Convert to buildlink3.
Diffstat (limited to 'math')
-rw-r--r--math/superlu/buildlink2.mk26
-rw-r--r--math/superlu/buildlink3.mk19
2 files changed, 19 insertions, 26 deletions
diff --git a/math/superlu/buildlink2.mk b/math/superlu/buildlink2.mk
deleted file mode 100644
index 0bd1c9357b2..00000000000
--- a/math/superlu/buildlink2.mk
+++ /dev/null
@@ -1,26 +0,0 @@
-# $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
diff --git a/math/superlu/buildlink3.mk b/math/superlu/buildlink3.mk
new file mode 100644
index 00000000000..0f2e771cd87
--- /dev/null
+++ b/math/superlu/buildlink3.mk
@@ -0,0 +1,19 @@
+# $NetBSD: buildlink3.mk,v 1.1 2004/04/25 21:38:03 snj Exp $
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
+SUPERLU_BUILDLINK3_MK:= ${SUPERLU_BUILDLINK3_MK}+
+
+.if !empty(BUILDLINK_DEPTH:M+)
+BUILDLINK_DEPENDS+= superlu
+.endif
+
+BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Nsuperlu}
+BUILDLINK_PACKAGES+= superlu
+
+.if !empty(SUPERLU_BUILDLINK3_MK:M+)
+BUILDLINK_DEPENDS.superlu+= superlu>=2.0nb2
+BUILDLINK_PKGSRCDIR.superlu?= ../../math/superlu
+BUILDLINK_DEPMETHOD.superlu?= build
+.endif # SUPERLU_BUILDLINK3_MK
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}