summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2001-07-29 04:48:03 +0000
committerjlam <jlam@pkgsrc.org>2001-07-29 04:48:03 +0000
commitd2df086f75f3662e24fd033426e78492236357f8 (patch)
tree8ebc37530684b4953b2e92ee13187ab70b960441 /devel
parente49a8936d131152bdeae836ea7d8e4b6fd2432d3 (diff)
downloadpkgsrc-d2df086f75f3662e24fd033426e78492236357f8.tar.gz
Add buildlink.mk file for use by other package Makefiles.
Diffstat (limited to 'devel')
-rw-r--r--devel/netcdf/buildlink.mk38
1 files changed, 38 insertions, 0 deletions
diff --git a/devel/netcdf/buildlink.mk b/devel/netcdf/buildlink.mk
new file mode 100644
index 00000000000..6702f59ebef
--- /dev/null
+++ b/devel/netcdf/buildlink.mk
@@ -0,0 +1,38 @@
+# $NetBSD: buildlink.mk,v 1.1 2001/07/29 04:48:03 jlam Exp $
+#
+# This Makefile fragment is included by packages that use netcdf.
+#
+# To use this Makefile fragment, simply:
+#
+# (1) Optionally define BUILDLINK_DEPENDS.netcdf to the dependency pattern
+# for the version of netcdf 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(NETCDF_BUILDLINK_MK)
+NETCDF_BUILDLINK_MK= # defined
+
+.include "../../mk/bsd.buildlink.mk"
+
+BUILDLINK_DEPENDS.netcdf?= netcdf>=3.4
+DEPENDS+= ${BUILDLINK_DEPENDS.netcdf}:../../devel/netcdf
+
+EVAL_PREFIX+= BUILDLINK_PREFIX.netcdf=netcdf
+BUILDLINK_PREFIX.netcdf_DEFAULT= ${LOCALBASE}
+BUILDLINK_FILES.netcdf= include/netcdf.h
+BUILDLINK_FILES.netcdf+= include/netcdf.inc
+BUILDLINK_FILES.netcdf+= include/netcdf.hh
+BUILDLINK_FILES.netcdf+= include/ncvalues.hh
+BUILDLINK_FILES.netcdf+= lib/libnetcdf.*
+BUILDLINK_FILES.netcdf+= lib/libnetcdf_c++.*
+
+BUILDLINK_TARGETS.netcdf= netcdf-buildlink
+BUILDLINK_TARGETS+= ${BUILDLINK_TARGETS.netcdf}
+
+pre-configure: ${BUILDLINK_TARGETS.netcdf}
+netcdf-buildlink: _BUILDLINK_USE
+
+.endif # NETCDF_BUILDLINK_MK