freebsd-ports/textproc/bsdgrep/Makefile
Gabor Kovesdan fc3eae3ed2 - Update to 20091130
Changes:
	- Fix EOF handling bug
	- Better --exclude and --include compatibility with GNU variant
	- Add --exclude-dir and --include-dir [1]
	- Add support for GREP_OPTIONS [2]
	- Clean up NLS catalogs
	- Style changes [3]
	- WARNS=6 cleanness

Submitted by:	delphij [3]
Requested by:	bz [1], obrien [2]
2009-11-30 21:39:53 +00:00

58 lines
1.2 KiB
Makefile

# New ports collection makefile for: bsd-grep
# Date created: 12 Juni 2007
# Whom: Gabor Kovesdan <gabor@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= grep
PORTVERSION= 20091130
CATEGORIES= textproc
MASTER_SITES= ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= gabor
PKGNAMEPREFIX= bsd-
MAINTAINER= gabor@FreeBSD.org
COMMENT= BSD-licensed version of grep from OpenBSD
WRKSRC= ${WRKDIR}/${PORTNAME}
MANCOMPRESSED= maybe
MAN1= grep.1
MLINKS= grep.1 egrep.1 \
grep.1 fgrep.1 \
grep.1 zgrep.1 \
grep.1 zegrep.1 \
grep.1 zfgrep.1
MAKE_ENV+= BINDIR="${PREFIX}/bin" \
MANDIR="${MANPREFIX}/man/man" \
CATDIR="${MANPREFIX}/man/man" \
NLSDIR="${PREFIX}/share/nls"
OPTIONS= NLS "Compile with NLS support" on \
GNU_COMPAT "Use GNU regex library (recommended)" on
.include <bsd.port.pre.mk>
.if defined(WITHOUT_NLS)
MAKE_ENV+= WITHOUT_NLS=yes
PLIST_SUB+= NLS="@comment "
.else
PLIST_SUB+= NLS=""
.endif
.if defined(WITHOUT_GNU_COMPAT)
MAKE_ENV+= WITHOUT_GNU_COMPAT=yes
.endif
pre-install:
.if defined(WITH_NLS)
${MKDIR} -p ${LOCALBASE}/share/nls/gl_ES.ISO8859-1
.endif
post-install:
${LN} -s ${PREFIX}/bin/grep ${PREFIX}/bin/bsdgrep
${LN} -s /usr/bin/grep ${PREFIX}/bin/gnugrep
.include <bsd.port.post.mk>