mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-02 01:20:54 +00:00
54 lines
1009 B
Makefile
54 lines
1009 B
Makefile
# Created by: Gabor Kovesdan <gabor@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= grep
|
|
PORTVERSION= 2.15
|
|
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
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
|
|
INFO= grep
|
|
|
|
OPTIONS_DEFINE= PCRE NLS
|
|
OPTIONS_DEFAULT=PCRE NLS
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MNLS}
|
|
USES+= gettext
|
|
LDFLAGS+= -lintl
|
|
PLIST_SUB+= NLS=
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-nls
|
|
PLIST_SUB+= NLS="@comment "
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MPCRE}
|
|
LIB_DEPENDS+= libpcre.so:${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>
|