summaryrefslogtreecommitdiff
path: root/lang/perl5/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'lang/perl5/Makefile')
-rw-r--r--lang/perl5/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/lang/perl5/Makefile b/lang/perl5/Makefile
index 4291d5cc50e..f3698c701ec 100644
--- a/lang/perl5/Makefile
+++ b/lang/perl5/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.169 2011/01/23 19:07:26 agc Exp $
+# $NetBSD: Makefile,v 1.170 2011/01/30 21:31:42 wiz Exp $
.include "license.mk"
.include "Makefile.common"
@@ -181,6 +181,14 @@ PKG_HACKS+= broken-vax-pthreads
PERL5_BUILD_THREADS_SUPPORT= no
.endif
+.if !empty(MACHINE_PLATFORM:MMirBSD*)
+SUBST_CLASSES+= mirbsd-paths
+SUBST_STAGE.mirbsd-paths= pre-configure
+SUBST_FILES.mirbsd-paths= hints/mirbsd.sh
+SUBST_SED.mirbsd-paths= -e 's,/usr/mpkg,${PREFIX},g'
+SUBST_MESSAGE.mirbsd-paths= Do not use non-pkgsrc paths on MirBSD.
+.endif
+
.include "../../mk/compiler.mk"
PKG_OPTIONS_VAR= PKG_OPTIONS.perl