diff options
author | jlam <jlam> | 2001-07-29 04:48:03 +0000 |
---|---|---|
committer | jlam <jlam> | 2001-07-29 04:48:03 +0000 |
commit | f078992782fc044803744b8624f49ba9b42bae51 (patch) | |
tree | 8ebc37530684b4953b2e92ee13187ab70b960441 | |
parent | a46b10ffb397a7fe7ced5a5e6d227706e04c1b6f (diff) | |
download | pkgsrc-f078992782fc044803744b8624f49ba9b42bae51.tar.gz |
Add buildlink.mk file for use by other package Makefiles.
-rw-r--r-- | devel/netcdf/buildlink.mk | 38 |
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 |