diff options
Diffstat (limited to 'textproc/eperl/Makefile')
-rw-r--r-- | textproc/eperl/Makefile | 41 |
1 files changed, 36 insertions, 5 deletions
diff --git a/textproc/eperl/Makefile b/textproc/eperl/Makefile index bb747538de5..74429685ff7 100644 --- a/textproc/eperl/Makefile +++ b/textproc/eperl/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.1.1.1 1998/12/05 16:14:53 tv Exp $ +# $NetBSD: Makefile,v 1.2 2000/08/15 01:12:15 jlam Exp $ # DISTNAME= eperl-2.2.14 @@ -8,15 +8,46 @@ MASTER_SITES= http://www.engelschall.com/sw/eperl/distrib/ MAINTAINER= packages@netbsd.org HOMEPAGE= http://www.engelschall.com/sw/eperl/ -DEPENDS= libperl-5.00404:../../lang/libperl +BUILD_DEPENDS+= autoreconf:../../devel/autoconf +DEPENDS= libperl-5.*:../../lang/libperl -GNU_CONFIGURE= yes +USE_PERL5= # defined +PERL= ${LOCALBASE}/bin/perl + +GNU_CONFIGURE= # defined ALL_TARGET= all libeperl.a +PLIST_SRC= ${WRKDIR}/.PLIST_SRC + +pre-configure: + cd ${WRKSRC} && autoreconf + post-build: - @cd ${WRKSRC}/mod/Parse && ${PREFIX}/bin/perl Makefile.PL && ${MAKE} + cd ${WRKSRC}/mod/Parse && ${PERL} Makefile.PL && ${MAKE} post-install: - @cd ${WRKSRC}/mod/Parse && ${MAKE} install + cd ${WRKSRC}/mod/Parse && ${MAKE} install + ${RM} -f ${PLIST_SRC} + ${CAT} ${PKGDIR}/PLIST > ${PLIST_SRC} + # + # Add the installed files to the PLIST. + # + (${CAT} ${P5_PACKLIST}; for f in ${P5_PACKLIST}; do echo $$f; done) \ + | ${SED} -e "s,/./,/,g" -e "s,${LOCALBASE}/,," \ + | sort -u \ + >> ${PLIST_SRC} + # + # We're not sure which directories are empty and can be deleted, so + # try them all, but ignore failures. + # + (${CAT} ${P5_PACKLIST}; for f in ${P5_PACKLIST}; do echo $$f; done) \ + | ${SED} -e "s,/./,/,g" -e "s,${LOCALBASE}/,," \ + | ${SED} -e "s,/[^/]*$$,," | sort -ur \ + | ${SED} -e "s,^,@unexec rmdir -p %D/," \ + | ${SED} -e "s,$$, 2>/dev/null || true," \ + >> ${PLIST_SRC} .include "../../mk/bsd.pkg.mk" + +P5_SITEARCH!= eval `${PERL} -V:installsitearch`; echo $${installsitearch} +P5_PACKLIST= ${P5_SITEARCH}/auto/Parse/ePerl/.packlist |