diff options
author | joerg <joerg@pkgsrc.org> | 2006-11-05 16:30:43 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2006-11-05 16:30:43 +0000 |
commit | b6392ded5818e1fa16059095506584530aa70804 (patch) | |
tree | bfa73914b0c026bde96865aff4a9392da76305c1 | |
parent | 917dc93a7075ea43e26510533e1fce98fdd8d398 (diff) | |
download | pkgsrc-b6392ded5818e1fa16059095506584530aa70804.tar.gz |
DESTDIR support. p5-XML-SAX wants to use one of its modules during
installation, which makes the PERL5LIB dance necessary.
-rw-r--r-- | textproc/p5-XML-SAX/Makefile | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/textproc/p5-XML-SAX/Makefile b/textproc/p5-XML-SAX/Makefile index 1e97c82b5a0..2d79a4f2260 100644 --- a/textproc/p5-XML-SAX/Makefile +++ b/textproc/p5-XML-SAX/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.15 2006/03/04 21:30:50 jlam Exp $ +# $NetBSD: Makefile,v 1.16 2006/11/05 16:30:43 joerg Exp $ DISTNAME= XML-SAX-0.12 PKGNAME= p5-${DISTNAME} @@ -10,6 +10,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://search.cpan.org/dist/XML-SAX/ COMMENT= Perl interface to the SAX2 XML Parser +PKG_DESTDIR_SUPPORT= user-destdir + DEPENDS+= p5-XML-NamespaceSupport>=0.03:../../textproc/p5-XML-NamespaceSupport DEPENDS+= p5-File-Temp-[0-9]*:../../devel/p5-File-Temp @@ -17,5 +19,13 @@ PKG_INSTALLATION_TYPES= overwrite pkgviews PERL5_PACKLIST= auto/XML/SAX/.packlist +.include "../../mk/bsd.prefs.mk" + +.if ${_USE_DESTDIR} != "no" +.include "../../lang/perl5/vars.mk" + +INSTALL_ENV+= PERL5LIB=${DESTDIR}${PERL5_INSTALLVENDORLIB} +.endif + .include "../../lang/perl5/module.mk" .include "../../mk/bsd.pkg.mk" |