Lines 2-8
Link Here
|
2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
3 |
|
3 |
|
4 |
PORTNAME= grep |
4 |
PORTNAME= grep |
5 |
PORTVERSION= 2.27 |
5 |
PORTVERSION= 3.1 |
6 |
CATEGORIES= textproc |
6 |
CATEGORIES= textproc |
7 |
MASTER_SITES= GNU |
7 |
MASTER_SITES= GNU |
8 |
PKGNAMEPREFIX= gnu |
8 |
PKGNAMEPREFIX= gnu |
Lines 12-21
Link Here
|
12 |
|
12 |
|
13 |
LICENSE= GPLv3+ |
13 |
LICENSE= GPLv3+ |
14 |
|
14 |
|
15 |
CONFLICTS= bsd-grep-[0-9]* |
15 |
USES= charsetfix cpe pkgconfig tar:xz |
16 |
|
|
|
17 |
USES= charsetfix cpe tar:xz |
18 |
GNU_CONFIGURE= yes |
16 |
GNU_CONFIGURE= yes |
|
|
17 |
TEST_TARGET= check |
19 |
|
18 |
|
20 |
INFO= grep |
19 |
INFO= grep |
21 |
CPE_VENDOR= gnu |
20 |
CPE_VENDOR= gnu |
Lines 25-53
Link Here
|
25 |
OPTIONS_SUB= yes |
24 |
OPTIONS_SUB= yes |
26 |
|
25 |
|
27 |
ICONV_CONFIGURE_USES= iconv |
26 |
ICONV_CONFIGURE_USES= iconv |
28 |
ICONV_CONFIGURE_ON= --with-libiconv-prefix=${LOCALBASE} |
27 |
ICONV_CONFIGURE_WITH= libiconv-prefix=${LOCALBASE} |
29 |
ICONV_CONFIGURE_OFF= --without-libiconv-prefix |
|
|
30 |
|
28 |
|
31 |
NLS_USES= gettext |
29 |
NLS_USES= gettext |
32 |
NLS_CONFIGURE_ENABLE= nls |
30 |
NLS_CONFIGURE_ENABLE= nls |
33 |
NLS_CONFIGURE_ON= --with-libintl-prefix=${LOCALBASE} |
31 |
NLS_CONFIGURE_WITH= libintl-prefix=${LOCALBASE} |
34 |
NLS_CONFIGURE_OFF= --without-libintl-prefix |
|
|
35 |
|
32 |
|
36 |
PCRE_LIB_DEPENDS= libpcre.so:devel/pcre |
33 |
PCRE_LIB_DEPENDS= libpcre.so:devel/pcre |
37 |
PCRE_CONFIGURE_ENABLE= perl-regexp |
34 |
PCRE_CONFIGURE_ENABLE= perl-regexp |
38 |
PCRE_CPPFLAGS= -I${LOCALBASE}/include |
35 |
PCRE_USES= perl5 |
39 |
PCRE_LDFLAGS= -L${LOCALBASE}/lib |
|
|
40 |
PCRE_CONFIGURE_OFF= --disable-perl-regexp |
41 |
|
36 |
|
42 |
.include <bsd.port.options.mk> |
|
|
43 |
|
44 |
post-patch: |
37 |
post-patch: |
45 |
@${REINPLACE_CMD} 's:@grep@:${LOCALBASE}/bin/&:' ${WRKSRC}/src/egrep.sh |
38 |
@${REINPLACE_CMD} 's:@grep@:${PREFIX}/bin/&:' ${WRKSRC}/src/egrep.sh |
46 |
.if empty(PORT_OPTIONS:MNLS) |
|
|
47 |
@${REINPLACE_CMD} '/install-exec-local:/s/install-exec-localcharset//' \ |
48 |
${WRKSRC}/lib/Makefile.in |
49 |
.endif |
50 |
@${REINPLACE_CMD} 's|mkinstalldirs = .*|mkinstalldirs = ${MKDIR}|g' \ |
51 |
${WRKSRC}/po/Makefile.in.in |
52 |
|
39 |
|
53 |
.include <bsd.port.mk> |
40 |
.include <bsd.port.mk> |