diff options
author | jlam <jlam@pkgsrc.org> | 2004-03-21 00:03:32 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2004-03-21 00:03:32 +0000 |
commit | aa26ea0b160870b8bc2bb46107426416ccfd42ed (patch) | |
tree | f1293762c0161665a7e3e346f1d33a205150e5fe /mk/buildlink3/bsd.buildlink3.mk | |
parent | f4ba83c642a9e3b5da7f34a269ca253b468107db (diff) | |
download | pkgsrc-aa26ea0b160870b8bc2bb46107426416ccfd42ed.tar.gz |
Move the code that includes the package builtin.mk files into a separate
file, bsd.builtin.mk. Document the requirements and the recommended
structure of a builtin.mk file in the comments at the top of
bsd.builtin.mk.
Diffstat (limited to 'mk/buildlink3/bsd.buildlink3.mk')
-rw-r--r-- | mk/buildlink3/bsd.buildlink3.mk | 42 |
1 files changed, 3 insertions, 39 deletions
diff --git a/mk/buildlink3/bsd.buildlink3.mk b/mk/buildlink3/bsd.buildlink3.mk index 3c9453053ef..a2b9ec13cf5 100644 --- a/mk/buildlink3/bsd.buildlink3.mk +++ b/mk/buildlink3/bsd.buildlink3.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.buildlink3.mk,v 1.126 2004/03/19 20:27:44 jlam Exp $ +# $NetBSD: bsd.buildlink3.mk,v 1.127 2004/03/21 00:03:32 jlam Exp $ # # An example package buildlink3.mk file: # @@ -79,45 +79,9 @@ PKG_FAIL_REASON+= \ .endif # For each package we use, check whether we are using the built-in -# version of the package or if we are using the pkgsrc version. The -# necessary logic is encapsulated in a package's builtin.mk file, which -# is required to define USE_BUILTIN.<pkg> to be either "yes" or "no". +# version of the package or if we are using the pkgsrc version. # -.for _pkg_ in ${BUILDLINK_PACKAGES} -PREFER.${_pkg_}?= pkgsrc -. if !empty(PREFER_NATIVE:M[yY][eE][sS]) -PREFER.${_pkg_}= native -. endif -. if !empty(PREFER_PKGSRC:M[yY][eE][sS]) -PREFER.${_pkg_}= pkgsrc -. endif -. if !empty(PREFER_NATIVE:M${_pkg_}) -PREFER.${_pkg_}= native -. endif -. if !empty(PREFER_PKGSRC:M${_pkg_}) -PREFER.${_pkg_}= pkgsrc -. endif -.endfor -.for _pkg_ in ${BUILDLINK_PACKAGES} -. if ${PREFER.${_pkg_}} == "pkgsrc" -USE_BUILTIN.${_pkg_}?= no -. endif -# -# builtin.mk files default to using the built-in software if it's -# available (${PREFER.<pkg>} == "native") unless USE_BUILTIN.<pkg> has -# been previously set. -# -. if defined(BUILDLINK_PKGSRCDIR.${_pkg_}) -. if exists(${BUILDLINK_PKGSRCDIR.${_pkg_}}/builtin.mk) -. include "${BUILDLINK_PKGSRCDIR.${_pkg_}}/builtin.mk" -. endif -. endif -.endfor - -# Default fall-through for packages that don't provide a builtin.mk. -.for _pkg_ in ${BUILDLINK_PACKAGES} -USE_BUILTIN.${_pkg_}?= no -.endfor +.include "../../mk/buildlink3/bsd.builtin.mk" # Set IGNORE_PKG.<pkg> if <pkg> is the current package we're building. # We can then check for this value to avoid build loops. |