aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/agrep/Makefile
blob: 00d94140f86a038423876d0116d825d8c2423bc1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Created by: David O'Brien (obrien@FreeBSD.org)
# $FreeBSD$

PORTNAME=   agrep
PORTVERSION=    2.04
PORTREVISION=   2
CATEGORIES= textproc
MASTER_SITES=   ftp://ftp.cs.arizona.edu/agrep/
EXTRACT_SUFX=   .tar.Z
DISTFILES=  ${DISTNAME}${EXTRACT_SUFX} agrep.ps.1.Z agrep.ps.2.Z
EXTRACT_ONLY=   ${DISTNAME}${EXTRACT_SUFX}

MAINTAINER= dinoex@FreeBSD.org
COMMENT=    Approximate grep (fast approximate pattern-matching tool)

NO_CDROM=   no redistribution for profit

USES=       manpages:install
ALL_TARGET=
MAKE_ARGS=  CFLAGS="${CFLAGS}"
PLIST_FILES=    bin/agrep
PORTDOCS=   COPYRIGHT agrep.algorithms agrep.ps.1.Z agrep.ps.2.Z
MAN1=       agrep.1

.include <bsd.port.options.mk>

post-extract:
    ${CP} ${DISTDIR}/agrep.ps.1.Z ${DISTDIR}/agrep.ps.2.Z ${WRKSRC}/

do-install: install-all-manpages
    @${INSTALL_PROGRAM} ${WRKSRC}/agrep ${STAGEDIR}${PREFIX}/bin/
.if ${PORT_OPTIONS:MDOCS}
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    @cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}/
.endif

.include <bsd.port.mk>