summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorseb <seb>2002-09-26 12:31:28 +0000
committerseb <seb>2002-09-26 12:31:28 +0000
commit72471b985288c98452d32c0f073e8d1f2aaffd68 (patch)
tree72e383b6b856d7938a5a7edaa4d80fa073077360 /lang
parentb025a42c5395546ba3813fdc87d2d05e13f971ca (diff)
downloadpkgsrc-72471b985288c98452d32c0f073e8d1f2aaffd68.tar.gz
Introduce target perl5-configure.
Now a package using this file can be configured by the regular do-configure target if PERL5_CONFIGURE is _not_ set to YES (which is the default), and then have a the standard perl configuration step done by say the post-configure target. Example: PERL5_CONFIGURE= NO post-configure: perl5-configure Usually in such a case PERL5_CONFIGURE_DIRS would have to be adjusted, as well as other directory variables. See following commit to graphics/p5-PerlMagick package for a complete example. The previous behavior is preserved if PERL5_CONFIGURE default value is left untouched, i.e. the do-configure target does the standard perl configuration. Please note that this new feature was made up by Johnny Lam. Thanks again!
Diffstat (limited to 'lang')
-rw-r--r--lang/perl5/module.mk19
1 files changed, 13 insertions, 6 deletions
diff --git a/lang/perl5/module.mk b/lang/perl5/module.mk
index 35ef8835330..ff5bd2854f4 100644
--- a/lang/perl5/module.mk
+++ b/lang/perl5/module.mk
@@ -1,18 +1,22 @@
-# $NetBSD: module.mk,v 1.1 2002/09/23 08:56:13 jlam Exp $
+# $NetBSD: module.mk,v 1.2 2002/09/26 12:31:28 seb Exp $
#
# This Makefile fragment is intended to be included by packages that build
# and install perl5 modules.
#
# The following targets are provided by this file:
#
-# do-configure runs the standard perl configuration in
+# perl5-configure runs the standard perl configuration in
# each of the directories specified in
# ${PERL5_CONFIGURE_DIRS}.
#
+# do-configure runs the perl5-configure target; if PERL5_CONFIGURE
+# is set to "YES", then this target overrides the
+# default do-configure provided by bsd.pkg.mk.
+#
# The following variables may be set prior to including this file:
#
-# PERL5_CONFIGURE if "YES", then run the standard perl
-# configuration assuming Makefile.PL exists;
+# PERL5_CONFIGURE if "YES", then for do-configure, run the standard
+# perl configuration assuming Makefile.PL exists;
# defaults to "YES".
#
# PERL5_CONFIGURE_DIRS list of directories in which to run the
@@ -34,8 +38,7 @@ _PERL5_MODULE_MK= # defined
PERL5_CONFIGURE?= YES
PERL5_CONFIGURE_DIRS?= ${CONFIGURE_DIRS}
-.if defined(PERL5_CONFIGURE) && !empty(PERL5_CONFIGURE:M[yY][eE][sS])
-do-configure:
+perl5-configure:
${_PKG_SILENT}${_PKG_DEBUG} \
for dir in ${PERL5_CONFIGURE_DIRS}; do \
if [ -f $$dir/Makefile.PL ]; then \
@@ -43,6 +46,10 @@ do-configure:
${PERL5} Makefile.PL ${MAKE_PARAMS}); \
fi; \
done
+
+.if defined(PERL5_CONFIGURE) && !empty(PERL5_CONFIGURE:M[yY][eE][sS])
+do-configure: perl5-configure
+ ${_PKG_SILENT}${_PKG_DEBUG}${DO_NADA}
.endif
# OTHERLDFLAGS is the hook provided by the perl5 MakeMaker module to allow