Changes in behavior: * The -P option is now based on PCRE2. * The egrep and fgrep commands now warn that they are obsolescent and should be replaced by grep -E and grep -F. * The confusing GREP_COLOR environment variable is now obsolescent. * Regular expressions with stray backslashes now cause warnings. * Regular expressions or subexpressions that start with a repetition operator now also cause warnings. * Regular expressions like [:space:] are now errors even if POSIXLY_CORRECT is set.
32 lines
823 B
Makefile
32 lines
823 B
Makefile
COMMENT= GNU versions of grep pattern matching utilities
|
|
|
|
DISTNAME= grep-3.8
|
|
PKGNAME= g${DISTNAME}
|
|
CATEGORIES= sysutils
|
|
HOMEPAGE= https://www.gnu.org/software/grep/grep.html
|
|
|
|
MAINTAINER= Christian Weisgerber <naddy@openbsd.org>
|
|
|
|
# GPLv3+
|
|
PERMIT_PACKAGE= Yes
|
|
|
|
MASTER_SITES= ${MASTER_SITE_GNU:=grep/}
|
|
|
|
EXTRACT_SUFX= .tar.xz
|
|
|
|
LIB_DEPENDS= devel/gettext,-runtime devel/pcre2
|
|
WANTLIB= c iconv intl pcre2-8
|
|
|
|
CONFIGURE_STYLE=gnu
|
|
CONFIGURE_ARGS= --program-prefix=g
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
|
# Tries to use libsigsegv for SEGV-based stack overflow detection heuristic
|
|
# in absence of the corresponding XSI behavior. Let's try without.
|
|
CONFIGURE_ENV+= ac_cv_libsigsegv=no
|
|
MODGNU_CONFIG_GUESS_DIRS=${WRKSRC}/build-aux
|
|
|
|
DEBUG_PACKAGES= ${BUILD_PACKAGES}
|
|
|
|
.include <bsd.port.mk>
|