summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
Diffstat (limited to 'lang')
-rw-r--r--lang/perl5/module.mk7
1 files changed, 6 insertions, 1 deletions
diff --git a/lang/perl5/module.mk b/lang/perl5/module.mk
index aa3a9cbee9d..6902d91637c 100644
--- a/lang/perl5/module.mk
+++ b/lang/perl5/module.mk
@@ -1,4 +1,4 @@
-# $NetBSD: module.mk,v 1.41 2005/02/25 15:57:12 wiz Exp $
+# $NetBSD: module.mk,v 1.42 2005/02/26 00:04:48 jlam Exp $
#
# This Makefile fragment is intended to be included by packages that build
# and install perl5 modules.
@@ -40,6 +40,11 @@ BUILDING_PERL5?= no
BUILDING_MODULE_BUILD?= no
PERL5_MODULE_TYPE?= MakeMaker
+.if (${PERL5_MODULE_TYPE} != "MakeMaker") && \
+ (${PERL5_MODULE_TYPE} != "Module::Build")
+PKG_FAIL_REASON+= "\`\`${PERL5_MODULE_TYPE}'' is not a supported PERL5_MODULE_TYPE."
+.endif
+
.if empty(BUILDING_PERL5:M[yY][eE][sS])
. if !defined(NO_BUILDLINK)
. if empty(USE_BUILDLINK3:M[nN][oO])