summaryrefslogtreecommitdiff
path: root/lang/perl5
diff options
context:
space:
mode:
authorheinz <heinz@pkgsrc.org>2007-05-26 12:46:20 +0000
committerheinz <heinz@pkgsrc.org>2007-05-26 12:46:20 +0000
commit3449f06ac10c0291c2c5a49cbb54d2e7eceff207 (patch)
treeb3cafca43e515f527b3c68400f1d607ea26f768e /lang/perl5
parent3889d68a001e15b9f4616b5621ec895f4d30d4cb (diff)
downloadpkgsrc-3449f06ac10c0291c2c5a49cbb54d2e7eceff207.tar.gz
Enable installation to DESTDIR for all packages based on Module::Build.
Diffstat (limited to 'lang/perl5')
-rw-r--r--lang/perl5/module.mk9
1 files changed, 7 insertions, 2 deletions
diff --git a/lang/perl5/module.mk b/lang/perl5/module.mk
index 8376af18e1d..09bdc524700 100644
--- a/lang/perl5/module.mk
+++ b/lang/perl5/module.mk
@@ -1,4 +1,4 @@
-# $NetBSD: module.mk,v 1.54 2007/04/21 09:41:00 rillig Exp $
+# $NetBSD: module.mk,v 1.55 2007/05/26 12:46:20 heinz Exp $
#
# This Makefile fragment is intended to be included by packages that build
# and install perl5 modules.
@@ -55,6 +55,11 @@ BROKEN= Perl does not like building with GCC on AIX, please use a different com
.if ${PERL5_MODULE_TYPE} == "Module::Build"
_PERL5_MODTYPE= modbuild
+. if ${_USE_DESTDIR} != "no"
+_PERL5_MODBUILD_DESTDIR_OPTION=--destdir ${DESTDIR:Q}
+. else
+_PERL5_MODBUILD_DESTDIR_OPTION=
+. endif
.elif ${PERL5_MODULE_TYPE} == "MakeMaker"
_PERL5_MODTYPE= makemaker
.endif
@@ -134,7 +139,7 @@ do-modbuild-test:
.PHONY: do-modbuild-install
do-modbuild-install:
- @cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ./Build install
+ @cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ./Build install ${_PERL5_MODBUILD_DESTDIR_OPTION}
.if target(do-${_PERL5_MODTYPE}-build) && !defined(NO_BUILD)
do-build: do-${_PERL5_MODTYPE}-build