summaryrefslogtreecommitdiff
path: root/misc/utf8locale
diff options
context:
space:
mode:
authorHye-Shik Chang <perky@FreeBSD.org>2002-09-09 05:04:55 +0000
committerHye-Shik Chang <perky@FreeBSD.org>2002-09-09 05:04:55 +0000
commit7b88fe8c9c63ea34118d4e7e942cc22a56d6e235 (patch)
tree6511732a0cae08692e5f2b8769c07865fbb85520 /misc/utf8locale
parentFix things after the recent GNOMENG commit. (diff)
Hide error message from grep when DESTDIR is set to a bogus value.
Submitted by: kris
Notes
Notes: svn path=/head/; revision=65893
Diffstat (limited to 'misc/utf8locale')
-rw-r--r--misc/utf8locale/Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/misc/utf8locale/Makefile b/misc/utf8locale/Makefile
index 927d07e968c0..3fac1d08bb93 100644
--- a/misc/utf8locale/Makefile
+++ b/misc/utf8locale/Makefile
@@ -19,7 +19,10 @@ BASELOCALEDIR= ${DESTDIR}/usr/share/locale
PLIST_SUB= BASELOCALEDIR=${BASELOCALEDIR} \
LANGS="${LANGS}"
-_HAVE_SWIDTH!= grep _CTYPE_SW ${DESTDIR}/usr/include/ctype.h || true
+.include <bsd.port.pre.mk>
+
+_HAVE_SWIDTH!= ${GREP} _CTYPE_SW ${DESTDIR}/usr/include/ctype.h 2>/dev/null \
+ || ${TRUE}
.if empty(_HAVE_SWIDTH)
PKGNAMESUFFIX= -without-swidth
.endif
@@ -30,4 +33,4 @@ post-install:
${BASELOCALEDIR}/${lang}.UTF-8
.endfor
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>