summaryrefslogtreecommitdiff
path: root/lang/perl5
diff options
context:
space:
mode:
authorseb <seb>2002-09-26 12:31:28 +0000
committerseb <seb>2002-09-26 12:31:28 +0000
commit3a8cbb0648c1711145f7767bcba4665493d3cc27 (patch)
tree72e383b6b856d7938a5a7edaa4d80fa073077360 /lang/perl5
parent100e89a3747685d5df5f35b3a603b209281bfcba (diff)
downloadpkgsrc-3a8cbb0648c1711145f7767bcba4665493d3cc27.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/perl5')
-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