pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/perl5 module.mk is included by perl5*/Makefile, s...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2c3a07c4ca1c
branches:  trunk
changeset: 466208:2c3a07c4ca1c
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Tue Jan 13 07:15:41 2004 +0000

description:
module.mk is included by perl5*/Makefile, so be careful not to clutter
MAKE_FLAGS with stuff that's only useful for building modules (and also
breaks the build of perl).

This fixes the breakage of perl modules not finding libperl.so caused by
the changes in revision 1.30 of this file.

diffstat:

 lang/perl5/module.mk |  43 ++++++++++++++++++++++---------------------
 1 files changed, 22 insertions(+), 21 deletions(-)

diffs (82 lines):

diff -r f99477ea74e1 -r 2c3a07c4ca1c lang/perl5/module.mk
--- a/lang/perl5/module.mk      Tue Jan 13 07:12:01 2004 +0000
+++ b/lang/perl5/module.mk      Tue Jan 13 07:15:41 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: module.mk,v 1.30 2004/01/13 00:59:14 jlam Exp $
+# $NetBSD: module.mk,v 1.31 2004/01/13 07:15:41 jlam Exp $
 #
 # This Makefile fragment is intended to be included by packages that build
 # and install perl5 modules.
@@ -81,26 +81,14 @@
 # module's ${PREFIX}.
 #
 .for _var_ in ${_PERL5_SITEVARS} INSTALLSCRIPT
-PERL5_${_var_}=        ${PREFIX}/${PERL5_SUB_${_var_}}
-MAKE_FLAGS+=   ${_var_}="${PERL5_${_var_}}"
+PERL5_${_var_}=                ${PREFIX}/${PERL5_SUB_${_var_}}
+PERL5_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}.
 #
-MAKE_FLAGS+=           PREFIX="${PREFIX}"
+PERL5_MAKE_FLAGS+=     PREFIX="${PREFIX}"
 
 .if defined(DEFAULT_VIEW.perl)
 DEFAULT_VIEW.${PKGBASE}=       ${DEFAULT_VIEW.perl}
@@ -111,17 +99,15 @@
 LDFLAGS+=      ${PERL5_LDFLAGS}
 .endif
 
-.include "../../mk/bsd.prefs.mk"
-
 # MakeMaker provides two hooks, PASTHRU_INC and OTHERLDFLAGS, to
 # customize the arguments passed to the preprocessor and linker,
 # respectively.
 #
-MAKE_FLAGS+=   PASTHRU_INC="${CPPFLAGS}"
+PERL5_MAKE_FLAGS+=     PASTHRU_INC="${CPPFLAGS}"
 .if ${OBJECT_FMT} == "a.out"
-MAKE_FLAGS+=   OTHERLDFLAGS="${LDFLAGS:S/-Wl,//g}"
+PERL5_MAKE_FLAGS+=     OTHERLDFLAGS="${LDFLAGS:S/-Wl,//g}"
 .else
-MAKE_FLAGS+=   OTHERLDFLAGS="${LDFLAGS}"
+PERL5_MAKE_FLAGS+=     OTHERLDFLAGS="${LDFLAGS}"
 .endif
 
 # Generate the PLIST from the files listed in PERL5_PACKLIST.
@@ -145,6 +131,21 @@
 GENERATE_PLIST+=       ${PERL5_GENERATE_PLIST};
 .endif
 
+# 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.
+#
+.if !defined(BUILDING_PERL5)
+MAKE_FLAGS+=           ${PERL5_MAKE_FLAGS}
+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}"
+.endif
+
 # Remove the perllocal.pod file from the installation since we don't
 # bother keeping the file contents up-to-date anyway.
 #



Home | Main Index | Thread Index | Old Index