diff options
author | jlam <jlam> | 2004-01-13 00:59:14 +0000 |
---|---|---|
committer | jlam <jlam> | 2004-01-13 00:59:14 +0000 |
commit | 6ff91905fdd31d7b75e7f873dd4b1e30b8e26267 (patch) | |
tree | d28310f77eff0b5533ff42ef87930028bab08d2c | |
parent | c12f2cee6b342ce3167a77aece48ed2d6028c008 (diff) | |
download | pkgsrc-6ff91905fdd31d7b75e7f873dd4b1e30b8e26267.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.
-rw-r--r-- | lang/perl5/module.mk | 16 |
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}. # |