summaryrefslogtreecommitdiff
path: root/mail/grepmail/Makefile
blob: 8e63eb37cbceaa4a9f9395eb40a54e97a2d5dd4c (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
# $NetBSD: Makefile,v 1.3 2000/08/27 02:46:04 jlam Exp $
#

DISTNAME=	grepmail-4.11
CATEGORIES=	mail
MASTER_SITES=	http://www.cs.virginia.edu/~dwc3q/code/

MAINTAINER=	david@fundy.net
HOMEPAGE=	http://www.cs.virginia.edu/~dwc3q/code/index.html

USE_PERL5=	# defined
CONFIGURE_ENV=	PERL=${PERL5}

do-build:
	@cd ${WRKSRC} ;						\
	for i in 1 2 ; do					\
		${ECHO} "$$i" | ${SETENV} ${MAKE_ENV} ${PERL5} Makefile.PL; \
		${MAKE};					\
		${RM} -f grepmail-$$i;				\
		${SED} -e '1s|.*|#! ${PERL5}|' grepmail > grepmail-$$i; \
	done

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/grepmail-1 ${PREFIX}/bin/grepmail-quick
	${INSTALL_SCRIPT} ${WRKSRC}/grepmail-2 ${PREFIX}/bin/grepmail-full
	${RM} -f ${PREFIX}/bin/grepmail
	${LN} -s grepmail-full ${PREFIX}/bin/grepmail

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