summaryrefslogtreecommitdiff
path: root/mail/grepmail/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'mail/grepmail/Makefile')
-rw-r--r--mail/grepmail/Makefile23
1 files changed, 13 insertions, 10 deletions
diff --git a/mail/grepmail/Makefile b/mail/grepmail/Makefile
index 231906f677e..ba1605cc33a 100644
--- a/mail/grepmail/Makefile
+++ b/mail/grepmail/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.1.1.1 1999/06/08 12:01:13 bad Exp $
+# $NetBSD: Makefile,v 1.2 2000/01/24 14:19:56 agc Exp $
#
-DISTNAME= grepmail-3.8
+DISTNAME= grepmail-4.11
CATEGORIES= mail
MASTER_SITES= http://www.cs.virginia.edu/~dwc3q/code/
@@ -12,16 +12,19 @@ CONFIGURE_ENV= PERL=${PREFIX}/bin/perl
USE_PERL5= yes
-do-configure:
- @cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${PREFIX}/bin/perl specialize grepmail.in < /dev/null
-
do-build:
- @cd ${WRKSRC} && \
- ${SED} -e '1s,.*,#!'${PREFIX}/bin/perl',' grepmail >grepmail.perl && \
- ${MV} -f grepmail.perl grepmail
- @echo Build done.
+ @cd ${WRKSRC} ; \
+ for i in 1 2 ; do \
+ ${ECHO} "$$i" | ${SETENV} ${MAKE_ENV} ${PREFIX}/bin/perl Makefile.PL; \
+ ${MAKE}; \
+ ${RM} -f grepmail-$$i; \
+ ${SED} -e '1s|.*|#! ${PREFIX}/bin/perl|' grepmail > grepmail-$$i; \
+ done
do-install:
- @${INSTALL_SCRIPT} ${WRKSRC}/grepmail ${PREFIX}/bin
+ ${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"