From 62b121f312cee5187c0d786d076e9175201bc89b Mon Sep 17 00:00:00 2001
From: schmonz <schmonz@pkgsrc.org>
Date: Wed, 9 Oct 2002 00:51:05 +0000
Subject: Convert to buildlink2. Use perl5/module.mk. Move post-extract to
 pre-configure.

---
 chat/p5-Net-AOLIM/Makefile | 20 +++++++++-----------
 1 file changed, 9 insertions(+), 11 deletions(-)

(limited to 'chat/p5-Net-AOLIM')

diff --git a/chat/p5-Net-AOLIM/Makefile b/chat/p5-Net-AOLIM/Makefile
index c0fdbf53b27..a94eac84884 100644
--- a/chat/p5-Net-AOLIM/Makefile
+++ b/chat/p5-Net-AOLIM/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2002/05/12 15:40:15 schmonz Exp $
+# $NetBSD: Makefile,v 1.3 2002/10/09 00:51:05 schmonz Exp $
 #
 
 DISTNAME=	Net-AOLIM-1.4
@@ -12,19 +12,17 @@ COMMENT=	perl5 module for connecting to AOL IM (TOC protocol)
 
 WRKSRC=		${WRKDIR}/Net-AOLIM
 
-USE_BUILDLINK_ONLY=     YES
-PERL5_PACKLIST=		${PERL5_SITEARCH}/auto/Net/AOLIM/.packlist
+USE_BUILDLINK2=	YES
+PERL5_PACKLIST=	${PERL5_SITEARCH}/auto/Net/AOLIM/.packlist
 
-post-extract:
-	${MV} ${WRKSRC}/example.pl ${WRKSRC}/AOLIM-example.pl
-	${MV} ${WRKSRC}/MANIFEST ${WRKSRC}/MANIFEST.orig
-	${SED} -e 's|^example\.pl|AOLIM-example.pl|' < ${WRKSRC}/MANIFEST.orig > ${WRKSRC}/MANIFEST
-
-do-configure:
-	@cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${PERL5} Makefile.PL
+pre-configure:
+	${MV} ${WRKSRC}/example.pl ${WRKSRC}/AOLIM-example.pl; \
+	${MV} ${WRKSRC}/MANIFEST ${WRKSRC}/MANIFEST.orig && \
+	${SED} -e 's|^example\.pl|AOLIM-example.pl|' \
+		< ${WRKSRC}/MANIFEST.orig > ${WRKSRC}/MANIFEST
 
 post-install:
 	${INSTALL_MAN} ${WRKSRC}/TOC.7 ${PREFIX}/man/man7
 
-.include "../../lang/perl5/buildlink.mk"
+.include "../../lang/perl5/module.mk"
 .include "../../mk/bsd.pkg.mk"
-- 
cgit v1.2.3