# Created by: Gabor Kovesdan # $FreeBSD$ PORTNAME= grep PORTVERSION= 2.20 CATEGORIES= textproc MASTER_SITES= GNU PKGNAMEPREFIX= gnu MAINTAINER= johans@FreeBSD.org COMMENT= GNU grep LICENSE= GPLv3 CONFLICTS= bsd-grep-[0-9]* USES= charsetfix tar:xz GNU_CONFIGURE= yes CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib INFO= grep OPTIONS_DEFINE= PCRE NLS OPTIONS_DEFAULT=PCRE NLS OPTIONS_SUB= yes PCRE_LIB_DEPENDS= libpcre.so:${PORTSDIR}/devel/pcre PCRE_CONFIGURE_ENABLE= perl-regexp NLS_USES= gettext NLS_CONFIGURE_ENABLE= nls .include post-patch: .if empty(PORT_OPTIONS:MNLS) @${REINPLACE_CMD} '/install-exec-local:/s/install-exec-localcharset//' \ ${WRKSRC}/lib/Makefile.in .endif @${REINPLACE_CMD} 's|mkinstalldirs = .*|mkinstalldirs = ${MKDIR}|g' \ ${WRKSRC}/po/Makefile.in.in .include