blob: fd4b3193443098b59c1f8b34234d09b0825aa9ea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# Created by: Gabor Kovesdan <gabor@FreeBSD.org>
# $FreeBSD$
PORTNAME= grep
PORTVERSION= 2.14
CATEGORIES= textproc
MASTER_SITES= GNU
PKGNAMEPREFIX= gnu
MAINTAINER= johans@FreeBSD.org
COMMENT= GNU grep
LICENSE= GPLv3
CONFLICTS= bsd-grep-[0-9]*
USES+= charsetfix
USE_XZ= yes
GNU_CONFIGURE= yes
MAN1= egrep.1 \
fgrep.1 \
grep.1
INFO= grep
OPTIONS_DEFINE= PCRE NLS
NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
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>
|