summaryrefslogtreecommitdiff
path: root/mail/mdfrm/Makefile
blob: f435e27e462cf37e81c1161d615b349fdd8f2d51 (plain)
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
# $NetBSD: Makefile,v 1.6 2003/07/17 21:46:26 grant Exp $
#

DISTNAME=	mdfrm.pl
PKGNAME=	mdfrm-1.0
WRKSRC=		${WRKDIR}
CATEGORIES=	mail
MASTER_SITES=	http://www.goof.com/~mmead/
EXTRACT_SUFX=	#

MAINTAINER=	zuntum@NetBSD.org
COMMENT=	print a summary of mail in a Maildir waiting to be read

DEPENDS+=       p5-TimeDate-[0-9]*:../../time/p5-TimeDate

EXTRACT_CMD=	${CP} ${DOWNLOADED_DISTFILE} ${WRKSRC}

USE_PERL5=	yes
NO_BUILD=	yes

post-patch:
	${SED}	-e "s,/usr/local/bin/perl,${LOCALBASE}/bin/perl,g"	\
		-e "s,.Maildir,Maildir,g"				\
		${WRKSRC}/mdfrm.pl > ${WRKSRC}/mdfrm.pl.done
	${MV} ${WRKSRC}/mdfrm.pl.done ${WRKSRC}/mdfrm.pl

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/mdfrm.pl ${PREFIX}/bin/mdfrm

.include "../../mk/bsd.pkg.mk"