aboutsummaryrefslogtreecommitdiffstats
path: root/Mk
diff options
context:
space:
mode:
authorrakuco <rakuco@FreeBSD.org>2016-11-29 01:22:29 +0800
committerrakuco <rakuco@FreeBSD.org>2016-11-29 01:22:29 +0800
commite7eacdaf111948e2ea1a1e89888e9b99265cb968 (patch)
treef38dcd8b64ae23bd86f50428e22f27b0199ba1c4 /Mk
parent135c2048c9d362c29be65a8604fb871ada10260a (diff)
downloadfreebsd-ports-gnome-e7eacdaf111948e2ea1a1e89888e9b99265cb968.tar.gz
freebsd-ports-gnome-e7eacdaf111948e2ea1a1e89888e9b99265cb968.tar.zst
freebsd-ports-gnome-e7eacdaf111948e2ea1a1e89888e9b99265cb968.zip
Uses/php.mk: Use EGREP instead of GREP when parsing config.h
Using ${GREP} was failing when grep was built with the WITHOUT_GNU_GREP_COMPAT knob in src.conf. According to POSIX, | only works for alternation in extended regular expressions (grep -E), although GNU grep disregards the difference. The new syntax with ${EGREP} and no escaping of special characters works with both BSD grep (without WITHOUT_GNU_GREP_COMPAT) as well as GNU grep. Approved by: mat Differential Revision: https://reviews.freebsd.org/D8663
Diffstat (limited to 'Mk')
-rw-r--r--Mk/Uses/php.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/Mk/Uses/php.mk b/Mk/Uses/php.mk
index 6613bd2e57c1..240f235bde5a 100644
--- a/Mk/Uses/php.mk
+++ b/Mk/Uses/php.mk
@@ -244,7 +244,7 @@ do-install:
${STAGEDIR}${PREFIX}/include/php/ext/${PHP_MODNAME}/${header}
. endfor
@${RM} ${STAGEDIR}${PREFIX}/include/php/ext/${PHP_MODNAME}/config.h
- @${GREP} "#define \(COMPILE\|HAVE\|USE\)_" ${WRKSRC}/config.h \
+ @${EGREP} "#define (COMPILE|HAVE|USE)_" ${WRKSRC}/config.h \
> ${STAGEDIR}${PREFIX}/include/php/ext/${PHP_MODNAME}/config.h
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/php
. if ${php_ARGS:Mzend}