summaryrefslogtreecommitdiff
path: root/lang/perl5
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
commit8344ad6a50865b4cf35c023edbdaeade1de7a80f (patch)
treed28310f77eff0b5533ff42ef87930028bab08d2c /lang/perl5
parent7b4a5ce71eb6794119fa14772675eb33a8f1fd85 (diff)
downloadpkgsrc-8344ad6a50865b4cf35c023edbdaeade1de7a80f.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/perl5')
-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}.
#