summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authordholland <dholland@pkgsrc.org>2014-07-04 21:20:52 +0000
committerdholland <dholland@pkgsrc.org>2014-07-04 21:20:52 +0000
commita58cad8de1ec8759d0f8ad6aba8ec701b41d0e6d (patch)
tree8bc4dfd7a5445173917753927d12f8f5951743ce /mk
parentd114dfd983cfae8a613ba9a3616fac7342854c60 (diff)
downloadpkgsrc-a58cad8de1ec8759d0f8ad6aba8ec701b41d0e6d.tar.gz
Generate a correct error message, instead of referring to a variable
that gets changed on the next line.
Diffstat (limited to 'mk')
-rw-r--r--mk/apache.mk5
1 files changed, 3 insertions, 2 deletions
diff --git a/mk/apache.mk b/mk/apache.mk
index 6166ed12946..4fd0e82d322 100644
--- a/mk/apache.mk
+++ b/mk/apache.mk
@@ -1,4 +1,4 @@
-# $NetBSD: apache.mk,v 1.28 2014/06/10 15:22:13 joerg Exp $
+# $NetBSD: apache.mk,v 1.29 2014/07/04 21:20:52 dholland Exp $
#
# This file is meant to be included by packages that require an apache
# web server.
@@ -70,7 +70,8 @@ _APACHE_PKGSRCDIR.apache24= ../../www/apache24
#
.if empty(_PKG_APACHES:M${PKG_APACHE_DEFAULT})
-PKG_FAIL_REASON+= "[apache.mk] Invalid apache package \""${PKG_APACHE_DEFAULT:Q}"\" in PKG_APACHE_DEFAULT."
+_PKG_APACHE_MESSAGE:= "[apache.mk] Invalid apache package \""${PKG_APACHE_DEFAULT:Q}"\" in PKG_APACHE_DEFAULT."
+PKG_FAIL_REASON+= ${_PKG_APACHE_MESSAGE}
PKG_APACHE_DEFAULT= apache22
.endif