43 lines
1.3 KiB
Makefile
43 lines
1.3 KiB
Makefile
# $NetBSD: Makefile,v 1.53 2018/08/22 09:46:45 wiz Exp $
|
|
|
|
DISTNAME= grep-3.1
|
|
CATEGORIES= textproc
|
|
PKGREVISION= 2
|
|
MASTER_SITES= ${MASTER_SITE_GNU:=grep/}
|
|
EXTRACT_SUFX= .tar.xz
|
|
|
|
MAINTAINER= pkgsrc-users@pkgsrc.org
|
|
HOMEPAGE= https://www.gnu.org/software/grep/grep.html
|
|
COMMENT= GNU grep
|
|
LICENSE= gnu-gpl-v3 # or later
|
|
|
|
USE_PKGLOCALEDIR= yes
|
|
USE_TOOLS+= makeinfo msgfmt
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS+= --enable-perl-regexp
|
|
CONFIGURE_ARGS+= --program-prefix=g
|
|
CONFIGURE_ENV+= MKDIR_P=${INSTALL_DATA_DIR:Q}
|
|
INFO_FILES= yes
|
|
TEXINFO_REQD= 4.0
|
|
|
|
INSTALLATION_DIRS= ${PKGGNUDIR}bin ${PKGGNUDIR}${PKGMANDIR}/man1
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.if ${OS_VARIANT} == "SCOOSR5"
|
|
# SCO OpenServer 5.0.7/3.2's pthread is builtin GNU pth.
|
|
CONFIGURE_ARGS+= --enable-threads=pth
|
|
.endif
|
|
|
|
post-install:
|
|
.for g n in bin/ggrep ${PKGGNUDIR}bin/grep bin/gegrep ${PKGGNUDIR}bin/egrep \
|
|
bin/gfgrep ${PKGGNUDIR}bin/fgrep \
|
|
man/man1/ggrep.1 ${PKGGNUDIR}${PKGMANDIR}/man1/grep.1 \
|
|
man/man1/ggrep.1 ${PKGGNUDIR}${PKGMANDIR}/man1/egrep.1 \
|
|
man/man1/ggrep.1 ${PKGGNUDIR}${PKGMANDIR}/man1/fgrep.1
|
|
${LN} -sf ${PREFIX}/${g} ${DESTDIR}${PREFIX}/${n}
|
|
.endfor
|
|
|
|
.include "../../devel/gettext-lib/buildlink3.mk"
|
|
.include "../../devel/pcre/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|