summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2004-01-13 00:59:14 +0000
committerjlam <jlam@pkgsrc.org>2004-01-13 00:59:14 +0000
commit6a67141da3f32d26e3312c148a07a26fab33cf40 (patch)
treed28310f77eff0b5533ff42ef87930028bab08d2c /lang
parent3e34cdfbede0ff601f0e44e403c39fd185590919 (diff)
downloadpkgsrc-6a67141da3f32d26e3312c148a07a26fab33cf40.tar.gz
The build and install stages require slightly different values for
INSTALLARCHLIB. During the build, INSTALLARCHLIB refers to the directory where libperl.so may be found, which should point into the default view. During the install, INSTALLARCHLIB refers to the directory where the perllocal.pod file should be installed, which should point into the package prefix.
Diffstat (limited to 'lang')
-rw-r--r--lang/perl5/module.mk16
1 files changed, 14 insertions, 2 deletions
diff --git a/lang/perl5/module.mk b/lang/perl5/module.mk
index 57a3a749c7a..e4f15d31e37 100644
--- a/lang/perl5/module.mk
+++ b/lang/perl5/module.mk
@@ -1,4 +1,4 @@
-# $NetBSD: module.mk,v 1.29 2004/01/12 15:50:22 jlam Exp $
+# $NetBSD: module.mk,v 1.30 2004/01/13 00:59:14 jlam Exp $
#
# This Makefile fragment is intended to be included by packages that build
# and install perl5 modules.
@@ -80,11 +80,23 @@ do-configure: perl5-configure
# Repoint all of the site-specific variables to be under the perl5
# module's ${PREFIX}.
#
-.for _var_ in ${_PERL5_SITEVARS} INSTALLARCHLIB INSTALLSCRIPT
+.for _var_ in ${_PERL5_SITEVARS} INSTALLSCRIPT
PERL5_${_var_}= ${PREFIX}/${PERL5_SUB_${_var_}}
MAKE_FLAGS+= ${_var_}="${PERL5_${_var_}}"
.endfor
#
+# The build and install stages require slightly different values for
+# INSTALLARCHLIB. During the build, INSTALLARCHLIB refers to the
+# directory where libperl.so may be found, which should point into the
+# default view. During the install, INSTALLARCHLIB refers to the
+# directory where the perllocal.pod file should be installed, which
+# should point into the package prefix.
+#
+BUILD_MAKE_FLAGS= ${MAKE_FLAGS}
+BUILD_MAKE_FLAGS+= INSTALLARCHLIB="${VIEWBASE}/${PERL5_SUB_INSTALLARCHLIB}"
+INSTALL_MAKE_FLAGS= ${MAKE_FLAGS}
+INSTALL_MAKE_FLAGS+= INSTALLARCHLIB="${PREFIX}/${PERL5_SUB_INSTALLARCHLIB}"
+#
# The PREFIX in the generated Makefile will point to ${_PERL5_PREFIX},
# so override its value to the module's ${PREFIX}.
#