pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/perl5 The build and install stages require slight...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/54f54498c698
branches:  trunk
changeset: 466196:54f54498c698
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Tue Jan 13 00:59:14 2004 +0000

description:
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:

 lang/perl5/module.mk |  16 ++++++++++++++--
 1 files changed, 14 insertions(+), 2 deletions(-)

diffs (34 lines):

diff -r ce6f8b8d3268 -r 54f54498c698 lang/perl5/module.mk
--- a/lang/perl5/module.mk      Tue Jan 13 00:40:25 2004 +0000
+++ b/lang/perl5/module.mk      Tue Jan 13 00:59:14 2004 +0000
@@ -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 @@
 # 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}.
 #



Home | Main Index | Thread Index | Old Index