aboutsummaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authorperky <perky@FreeBSD.org>2002-09-09 13:04:55 +0800
committerperky <perky@FreeBSD.org>2002-09-09 13:04:55 +0800
commite0ad86cdff6de67821c0fad4ebff351be4b9987f (patch)
treefae0d6a9bea7ac54acdf82fd2261dd5a23865524 /misc
parent099fbf5e97ea52f72c1fb56dac76e0d68228800d (diff)
downloadfreebsd-ports-gnome-e0ad86cdff6de67821c0fad4ebff351be4b9987f.tar.gz
freebsd-ports-gnome-e0ad86cdff6de67821c0fad4ebff351be4b9987f.tar.zst
freebsd-ports-gnome-e0ad86cdff6de67821c0fad4ebff351be4b9987f.zip
Hide error message from grep when DESTDIR is set to a bogus value.
Submitted by: kris
Diffstat (limited to 'misc')
-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>