forked from Lainports/freebsd-ports
- Replace ${MASTER_SITE_FOO} with FOO.
- Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9%
of the time.)
- Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and
no hint of what it should be was present.
- Fix some logic.
- And generally, make things more simple and easy to understand.
While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and
SAMBA macros.
Also, replace some EXTRACT_SUFX occurences with USES=tar:*.
Checked by: make fetch-urlall-list
With hat: portmgr
Sponsored by: Absolight
45 lines
883 B
Makefile
45 lines
883 B
Makefile
# Created by: Gabor Kovesdan <gabor@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= grep
|
|
PORTVERSION= 20111002
|
|
PORTREVISION= 1
|
|
CATEGORIES= textproc
|
|
MASTER_SITES= LOCAL/gabor
|
|
PKGNAMEPREFIX= bsd-
|
|
|
|
MAINTAINER= gabor@FreeBSD.org
|
|
COMMENT= BSD-licensed version of grep
|
|
|
|
USES= uidfix
|
|
|
|
MAKE_ENV+= BINDIR="${PREFIX}/bin" \
|
|
MANDIR="${MANPREFIX}/man/man" \
|
|
CATDIR="${MANPREFIX}/man/man" \
|
|
NLSDIR="${PREFIX}/share/nls"
|
|
|
|
OPTIONS_DEFINE= GNU_COMPAT NLS
|
|
OPTIONS_DEFAULT= GNU_COMPAT
|
|
GNU_COMPAT_DESC= Use GNU regex library (recommended)
|
|
|
|
CONFLICTS= gnugrep-*
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MNLS}
|
|
PLIST_SUB+= NLS=""
|
|
.else
|
|
MAKE_ENV+= WITHOUT_NLS=yes
|
|
PLIST_SUB+= NLS="@comment "
|
|
.endif
|
|
|
|
.if !${PORT_OPTIONS:MGNU_COMPAT}
|
|
MAKE_ENV+= WITHOUT_GNU_COMPAT=yes
|
|
.endif
|
|
|
|
pre-install:
|
|
.if ${PORT_OPTIONS:MNLS}
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/share/nls/gl_ES.ISO8859-1
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|