summaryrefslogtreecommitdiff
path: root/math/blas/buildlink.mk
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2001-07-18 22:11:33 +0000
committerjlam <jlam@pkgsrc.org>2001-07-18 22:11:33 +0000
commitc9b14a8c9aef0d96322d42ea19be7a86089bb37a (patch)
treee2566756b8f5d24a4f2def2e4cd54de4bcd09128 /math/blas/buildlink.mk
parentc24624ada8645fe4adc0f53620bc8641e902a6da (diff)
downloadpkgsrc-c9b14a8c9aef0d96322d42ea19be7a86089bb37a.tar.gz
Add buildlink.mk file for use by other package Makefiles.
Diffstat (limited to 'math/blas/buildlink.mk')
-rw-r--r--math/blas/buildlink.mk32
1 files changed, 32 insertions, 0 deletions
diff --git a/math/blas/buildlink.mk b/math/blas/buildlink.mk
new file mode 100644
index 00000000000..e27e03fe96a
--- /dev/null
+++ b/math/blas/buildlink.mk
@@ -0,0 +1,32 @@
+# $NetBSD: buildlink.mk,v 1.1 2001/07/18 22:16:09 jlam Exp $
+#
+# This Makefile fragment is included by packages that use blas.
+#
+# To use this Makefile fragment, simply:
+#
+# (1) Optionally define BUILDLINK_DEPENDS.blas to the dependency pattern
+# for the version of blas desired.
+# (2) Include this Makefile fragment in the package Makefile,
+# (3) Add ${BUILDLINK_DIR}/include to the front of the C preprocessor's header
+# search path, and
+# (4) Add ${BUILDLINK_DIR}/lib to the front of the linker's library search
+# path.
+
+.if !defined(BLAS_BUILDLINK_MK)
+BLAS_BUILDLINK_MK= # defined
+
+.include "../../mk/bsd.buildlink.mk"
+
+BUILDLINK_DEPENDS.blas?= blas>=1.0
+BUILD_DEPENDS+= ${BUILDLINK_DEPENDS.blas}:../../math/blas
+
+BUILDLINK_PREFIX.blas= ${LOCALBASE}
+BUILDLINK_FILES.blas= lib/libblas.*
+
+BUILDLINK_TARGETS.blas= blas-buildlink
+BUILDLINK_TARGETS+= ${BUILDLINK_TARGETS.blas}
+
+pre-configure: ${BUILDLINK_TARGETS.blas}
+blas-buildlink: _BUILDLINK_USE
+
+.endif # BLAS_BUILDLINK_MK