From 14659ab7e8401f18762b4efff749131ad702e58e Mon Sep 17 00:00:00 2001 From: jlam Date: Tue, 26 Aug 2003 20:56:38 +0000 Subject: Separate the concepts of where the metadata for a depoted package are, and where the actual files for a depoted package are. --- mk/buildlink3/bsd.buildlink3.mk | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/mk/buildlink3/bsd.buildlink3.mk b/mk/buildlink3/bsd.buildlink3.mk index 9a5bb892ee7..627330cdded 100644 --- a/mk/buildlink3/bsd.buildlink3.mk +++ b/mk/buildlink3/bsd.buildlink3.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.buildlink3.mk,v 1.1.2.18 2003/08/26 20:52:17 jlam Exp $ +# $NetBSD: bsd.buildlink3.mk,v 1.1.2.19 2003/08/26 20:56:38 jlam Exp $ # # An example package buildlink3.mk file: # @@ -84,22 +84,25 @@ ${_BLNK_DEPMETHOD.${_pkg_}}+= \ # Generate default values for: # # BUILDLINK_PKGBASE. +# BUILDLINK_DEPOT. # BUILDLINK_PREFIX. # BUILDLINK_INCDIRS. # BUILDLINK_LIBDIRS. # # BUILDLINK_PKGBASE. is the package basename (without the version -# number). BUILDLINK_PREFIX. is the depot directory for . -# BUILDLINK_INCDIRS. and BUILDLINK_LIBDIRS. are the -# sub-directories in the depot directory for that should be added -# to the compiler/linker search paths. +# number). BUILDLINK_DEPOT. is the depot directory for and +# contains all of the package metadata files for . +# BUILDLINK_PREFIX. is the directory that contains all of the installed +# files for . BUILDLINK_INCDIRS. and BUILDLINK_LIBDIRS. are +# the subdirectories of BUILDLINK_PREFIX. that should be added to the +# compiler/linker search paths. # .for _pkg_ in ${BUILDLINK_PACKAGES} . if !defined(BUILDLINK_PKGBASE.${_pkg_}) BUILDLINK_PKGBASE.${_pkg_}?= ${_pkg_} . endif . if !defined(BUILDLINK_PREFIX.${_pkg_}) -BUILDLINK_PREFIX.${_pkg_}!= \ +BUILDLINK_DEPOT.${_pkg_}!= \ cd ${_PKG_DBDIR}; \ dir=`${PKG_ADMIN} -s "" lsbest "${BUILDLINK_DEPENDS.${_pkg_}}" || ${TRUE}`; \ case "$$dir" in \ @@ -107,6 +110,9 @@ BUILDLINK_PREFIX.${_pkg_}!= \ *) ${ECHO} "$$dir" ;; \ esac . endif +. if !defined(BUILDLINK_PREFIX.${_pkg_}) +BUILDLINK_PREFIX.${_pkg_}?= ${BUILDLINK_DEPOT.${_pkg_}} +. endif . if !defined(BUILDLINK_INCDIRS.${_pkg_}) BUILDLINK_INCDIRS.${_pkg_}?= include . endif -- cgit v1.2.3