summaryrefslogtreecommitdiff
path: root/lang/perl5
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2013-06-05 22:00:35 +0000
committerjperkin <jperkin@pkgsrc.org>2013-06-05 22:00:35 +0000
commit0a2b1984c49184670f726ce0cd820992c4e9c807 (patch)
treeed244910f7a16bb73efc744a4de5c1d4bddbae7b /lang/perl5
parent388abfc04abec6776e20673d6ceda5b86a837132 (diff)
downloadpkgsrc-0a2b1984c49184670f726ce0cd820992c4e9c807.tar.gz
Add optional DTrace support.
Diffstat (limited to 'lang/perl5')
-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