summaryrefslogtreecommitdiff
path: root/mk/buildlink3
diff options
context:
space:
mode:
authorjlam <jlam>2004-02-18 19:16:52 +0000
committerjlam <jlam>2004-02-18 19:16:52 +0000
commit665294c109024331f973d085e6da55db98ae8903 (patch)
tree442b231ca35ae123a723ba999f8540a880f1bfac /mk/buildlink3
parentec9570dbbca663f2011bec20f46ca86b7a87f12a (diff)
downloadpkgsrc-665294c109024331f973d085e6da55db98ae8903.tar.gz
Output a more informative/desriptive error than:
cd: cd BUILDLINK_PREFIX.foo_not_found We now say that the package wasn't installed at the time that we were trying to buildlink its files.
Diffstat (limited to 'mk/buildlink3')
-rw-r--r--mk/buildlink3/bsd.buildlink3.mk9
1 files changed, 8 insertions, 1 deletions
diff --git a/mk/buildlink3/bsd.buildlink3.mk b/mk/buildlink3/bsd.buildlink3.mk
index a1fefd0b842..10a6f704949 100644
--- a/mk/buildlink3/bsd.buildlink3.mk
+++ b/mk/buildlink3/bsd.buildlink3.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.buildlink3.mk,v 1.93 2004/02/18 14:23:43 jlam Exp $
+# $NetBSD: bsd.buildlink3.mk,v 1.94 2004/02/18 19:16:52 jlam Exp $
#
# An example package buildlink3.mk file:
#
@@ -546,6 +546,13 @@ _BLNK_FILES_CMD.${_pkg_}+= )
${_BLNK_COOKIE.${_pkg_}}:
${_PKG_SILENT}${_PKG_DEBUG} \
case ${BUILDLINK_PREFIX.${_pkg_}} in \
+ *not_found) \
+ ${ECHO} "${_pkg_} is not installed; can't buildlink files."; \
+ ${FALSE}; \
+ ;; \
+ esac
+ ${_PKG_SILENT}${_PKG_DEBUG} \
+ case ${BUILDLINK_PREFIX.${_pkg_}} in \
${X11BASE}) buildlink_dir="${BUILDLINK_X11_DIR}" ;; \
*) buildlink_dir="${BUILDLINK_DIR}" ;; \
esac; \