diff options
author | jlam <jlam@pkgsrc.org> | 2001-07-29 04:48:03 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2001-07-29 04:48:03 +0000 |
commit | d2df086f75f3662e24fd033426e78492236357f8 (patch) | |
tree | 8ebc37530684b4953b2e92ee13187ab70b960441 /devel | |
parent | e49a8936d131152bdeae836ea7d8e4b6fd2432d3 (diff) | |
download | pkgsrc-d2df086f75f3662e24fd033426e78492236357f8.tar.gz |
Add buildlink.mk file for use by other package Makefiles.
Diffstat (limited to 'devel')
-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 |