2013-06-11 16:59:30 +02:00
|
|
|
# Created by: Gabor Kovesdan <gabor@FreeBSD.org>
|
2010-02-06 14:47:54 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= grep
|
2014-02-26 08:57:46 +01:00
|
|
|
PORTVERSION= 2.18
|
2010-08-15 02:51:33 +02:00
|
|
|
CATEGORIES= textproc
|
2012-05-23 18:50:37 +02:00
|
|
|
MASTER_SITES= GNU
|
2010-02-06 14:47:54 +01:00
|
|
|
PKGNAMEPREFIX= gnu
|
|
|
|
|
2013-06-24 20:53:26 +02:00
|
|
|
MAINTAINER= johans@FreeBSD.org
|
2010-02-06 14:47:54 +01:00
|
|
|
COMMENT= GNU grep
|
|
|
|
|
2011-08-08 13:10:44 +02:00
|
|
|
LICENSE= GPLv3
|
|
|
|
|
2012-05-23 18:50:37 +02:00
|
|
|
CONFLICTS= bsd-grep-[0-9]*
|
|
|
|
|
2013-06-11 16:59:30 +02:00
|
|
|
USES+= charsetfix
|
2010-08-15 02:51:33 +02:00
|
|
|
USE_XZ= yes
|
2010-02-06 14:47:54 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2013-10-06 18:18:29 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2010-08-15 02:51:33 +02:00
|
|
|
|
2010-02-06 14:47:54 +01:00
|
|
|
INFO= grep
|
|
|
|
|
2013-06-24 20:53:26 +02:00
|
|
|
OPTIONS_DEFINE= PCRE NLS
|
2013-10-06 18:18:29 +02:00
|
|
|
OPTIONS_DEFAULT=PCRE NLS
|
2014-01-02 18:33:44 +01:00
|
|
|
OPTIONS_SUB= yes
|
|
|
|
PCRE_LIB_DEPENDS= libpcre.so:${PORTSDIR}/devel/pcre
|
|
|
|
PCRE_CONFIGURE_ENABLE= perl-regexp
|
|
|
|
NLS_USES= gettext
|
|
|
|
NLS_CONFIGURE_ENABLE= nls
|
2010-02-06 14:47:54 +01:00
|
|
|
|
2012-05-23 18:50:37 +02:00
|
|
|
.include <bsd.port.options.mk>
|
2010-02-06 14:47:54 +01:00
|
|
|
|
|
|
|
post-patch:
|
2012-10-06 18:12:29 +02:00
|
|
|
.if empty(PORT_OPTIONS:MNLS)
|
2010-08-15 02:51:33 +02:00
|
|
|
@${REINPLACE_CMD} '/install-exec-local:/s/install-exec-localcharset//' \
|
|
|
|
${WRKSRC}/lib/Makefile.in
|
|
|
|
.endif
|
2011-06-25 22:55:15 +02:00
|
|
|
@${REINPLACE_CMD} 's|mkinstalldirs = .*|mkinstalldirs = ${MKDIR}|g' \
|
2010-05-30 07:02:52 +02:00
|
|
|
${WRKSRC}/po/Makefile.in.in
|
2010-02-06 14:47:54 +01:00
|
|
|
|
2012-05-23 18:50:37 +02:00
|
|
|
.include <bsd.port.mk>
|