summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
Diffstat (limited to 'lang')
-rw-r--r--lang/perl5/options.mk14
1 files changed, 12 insertions, 2 deletions
diff --git a/lang/perl5/options.mk b/lang/perl5/options.mk
index e4b992ea29d..cae6e7af455 100644
--- a/lang/perl5/options.mk
+++ b/lang/perl5/options.mk
@@ -1,9 +1,9 @@
-# $NetBSD: options.mk,v 1.2 2012/11/07 02:46:19 sbd Exp $
+# $NetBSD: options.mk,v 1.3 2013/06/05 22:00:35 jperkin Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.perl
PKG_OPTIONS_REQUIRED_GROUPS= perlbits
PKG_OPTIONS_GROUP.perlbits= 64bitauto 64bitint 64bitmore 64bitall 64bitnone
-PKG_SUPPORTED_OPTIONS= debug threads mstats
+PKG_SUPPORTED_OPTIONS= debug dtrace threads mstats
CHECK_BUILTIN.pthread:= yes
.include "../../mk/pthread.builtin.mk"
@@ -37,6 +37,10 @@ PKG_SUGGESTED_OPTIONS+= 64bitnone
PKG_SUGGESTED_OPTIONS+= 64bitauto
.endif
+.if ${OPSYS} == "Darwin" || ${OPSYS} == "FreeBSD" || ${OPSYS} == "SunOS"
+PKG_SUGGESTED_OPTIONS+= dtrace
+.endif
+
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mthreads)
@@ -59,6 +63,12 @@ PERL5_RPATH_THREAD=
CFLAGS+= -DDEBUGGING
.endif
+.if !empty(PKG_OPTIONS:Mdtrace)
+CONFIGURE_ARGS+= -Dusedtrace
+# perldtrace.h has incorrect dependencies, needs to be built first.
+BUILD_TARGET= perldtrace.h all
+.endif
+
.if !empty(PKG_OPTIONS:Mmstats)
CFLAGS+= -DPERL_DEBUGGING_MSTATS
CONFIGURE_ARGS+= -Dusemymalloc