freebsd-ports/textproc/gnugrep/Makefile
Baptiste Daroussin 7990f81066 Install texinfo files (GNU info) into ${PREFIX}/share/info
After a discussion on the mailing list on moving manpages to
${PREFIX}/share/man for consistency with base where it is
installed in usr/share/man, it appeared the same should happen
to GNU info files which were installed under share in base and
not in ports.

Now texinfo is not in base on any of the supported version of FreeBSD
it is possible to proceed to this move and it is easier to do than
the manpage change.

Other benefit than consistency are less patching: all build tools but
cmake are expecting info files to be under share/info and cmake (patched here)
was having an exception for BSD so the patch makes FreeBSD case less
specific for them

Bump revision of all impacted ports

PR:		232907
exp-run by:	antoine
Differential Revision:	https://reviews.freebsd.org/D17816
2018-11-10 18:12:57 +00:00

54 lines
1.2 KiB
Makefile

# Created by: Gabor Kovesdan <gabor@FreeBSD.org>
# $FreeBSD$
PORTNAME= grep
PORTVERSION= 2.27
PORTREVISION= 1
CATEGORIES= textproc
MASTER_SITES= GNU
PKGNAMEPREFIX= gnu
MAINTAINER= johans@FreeBSD.org
COMMENT= GNU grep
LICENSE= GPLv3+
CONFLICTS= bsd-grep-[0-9]*
USES= charsetfix cpe tar:xz
GNU_CONFIGURE= yes
INFO= grep
CPE_VENDOR= gnu
OPTIONS_DEFINE= ICONV NLS PCRE
OPTIONS_DEFAULT= ICONV PCRE
OPTIONS_SUB= yes
ICONV_CONFIGURE_USES= iconv
ICONV_CONFIGURE_ON= --with-libiconv-prefix=${LOCALBASE}
ICONV_CONFIGURE_OFF= --without-libiconv-prefix
NLS_USES= gettext
NLS_CONFIGURE_ENABLE= nls
NLS_CONFIGURE_ON= --with-libintl-prefix=${LOCALBASE}
NLS_CONFIGURE_OFF= --without-libintl-prefix
PCRE_LIB_DEPENDS= libpcre.so:devel/pcre
PCRE_CONFIGURE_ENABLE= perl-regexp
PCRE_CPPFLAGS= -I${LOCALBASE}/include
PCRE_LDFLAGS= -L${LOCALBASE}/lib
PCRE_CONFIGURE_OFF= --disable-perl-regexp
.include <bsd.port.options.mk>
post-patch:
@${REINPLACE_CMD} 's:@grep@:${LOCALBASE}/bin/&:' ${WRKSRC}/src/egrep.sh
.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>