freebsd-ports/textproc/gnugrep/Makefile
Martin Matuska b2c4fbb77a Update PCRE to 8.32
Introduces the UTF-32 library pcre32
Bump PORTREVISION in dependent ports
2012-12-10 19:11:11 +00:00

57 lines
1.1 KiB
Makefile

# New ports collection makefile for: grep
# Date created: 5 February 2010
# Whom: Gabor Kovesdan <gabor@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= grep
PORTVERSION= 2.12
PORTREVISION= 1
CATEGORIES= textproc
MASTER_SITES= GNU
PKGNAMEPREFIX= gnu
MAINTAINER= gabor@FreeBSD.org
COMMENT= GNU grep
LICENSE= GPLv3
CONFLICTS= bsd-grep-[0-9]*
USE_XZ= yes
GNU_CONFIGURE= yes
MAN1= egrep.1 \
fgrep.1 \
grep.1
INFO= grep
OPTIONS_DEFINE= PCRE
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
USE_GETTEXT= yes
LDFLAGS+= -lintl -L${LOCALBASE}/lib
PLIST_SUB+= NLS=
.else
CONFIGURE_ARGS+= --disable-nls
PLIST_SUB+= NLS="@comment "
.endif
.if ${PORT_OPTIONS:MPCRE}
LIB_DEPENDS+= pcre.3:${PORTSDIR}/devel/pcre
.else
CONFIGURE_ARGS+= --disable-perl-regexp
.endif
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 <bsd.port.mk>