diff options
author | jlam <jlam@pkgsrc.org> | 2003-09-04 05:40:25 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2003-09-04 05:40:25 +0000 |
commit | bef0ac1b699fad8633afc5351efd3411ed337f7e (patch) | |
tree | bf07a6c54df85ad952b85a56596d66b55ebafadd /mk/buildlink3 | |
parent | b494ad7737e6fe290edb88136f7d65294dddc862 (diff) | |
download | pkgsrc-bef0ac1b699fad8633afc5351efd3411ed337f7e.tar.gz |
Provide a default definition for BUILDLINK_IS_BUILTIN.<pkg> that is yes/no
depending on whether or not the <pkg> is provided in the base system. Also
tighten the BUILDLINK_PKG_DBDIR.<pkg> definition.
Diffstat (limited to 'mk/buildlink3')
-rw-r--r-- | mk/buildlink3/bsd.buildlink3.mk | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/mk/buildlink3/bsd.buildlink3.mk b/mk/buildlink3/bsd.buildlink3.mk index c5f4fea88c0..0eae79b10be 100644 --- a/mk/buildlink3/bsd.buildlink3.mk +++ b/mk/buildlink3/bsd.buildlink3.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.buildlink3.mk,v 1.2 2003/09/02 06:59:53 jlam Exp $ +# $NetBSD: bsd.buildlink3.mk,v 1.3 2003/09/04 05:40:25 jlam Exp $ # # An example package buildlink3.mk file: # @@ -107,6 +107,11 @@ ${_BLNK_DEPMETHOD.${_pkg_}}+= \ # BUILDLINK_IS_DEPOT.<pkg> "yes" or "no" for whether <pkg> is a # depoted package. # +# BUILDLINK_IS_BUILTIN.<pkg> "yes" or "no" for whether <pkg> is provided +# in the base system. This check is only +# relevant for buildlink3.mk files that +# provide a setting for this variable. +# # BUILDLINK_CPPFLAGS.<pkg>, # BUILDLINK_LDFLAGS.<pkg> contain extra -D..., -I... and -L.../-Wl,-R # options to be passed to the compiler/linker @@ -123,8 +128,7 @@ ${_BLNK_DEPMETHOD.${_pkg_}}+= \ .for _pkg_ in ${BUILDLINK_PACKAGES} ${_BLNK_X11_LINKS_PACKAGE} . if !defined(BUILDLINK_PKG_DBDIR.${_pkg_}) BUILDLINK_PKG_DBDIR.${_pkg_}!= \ - cd ${_PKG_DBDIR}; \ - dir=`${PKG_ADMIN} -s "" lsbest "${BUILDLINK_DEPENDS.${_pkg_}}" || ${TRUE}`; \ + dir=`cd ${_PKG_DBDIR}; ${PKG_ADMIN} -s "" lsbest "${BUILDLINK_DEPENDS.${_pkg_}}" || ${TRUE}`; \ case "$$dir" in \ "") dir="not_found" ;; \ esac; \ @@ -154,6 +158,7 @@ BUILDLINK_IS_DEPOT.${_pkg_}?= yes . else BUILDLINK_IS_DEPOT.${_pkg_}?= no . endif +BUILDLINK_IS_BUILTIN.${_pkg_}?= no BUILDLINK_CPPFLAGS.${_pkg_}?= # empty BUILDLINK_LDFLAGS.${_pkg_}?= # empty BUILDLINK_INCDIRS.${_pkg_}?= include |