summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2006-10-01 14:48:39 +0000
committerrillig <rillig@pkgsrc.org>2006-10-01 14:48:39 +0000
commit47f5af86d0bf8528992e03db624a48d1847d9e93 (patch)
treeff5a07e45ed7ab9156db40c402bf1609e79e5b72 /lang
parent371cc87d6d32ce339698f55b727ce267f603a81f (diff)
downloadpkgsrc-47f5af86d0bf8528992e03db624a48d1847d9e93.tar.gz
Added a debugging option to the package (disabled by default).
Diffstat (limited to 'lang')
-rw-r--r--lang/perl5/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/lang/perl5/Makefile b/lang/perl5/Makefile
index cf4d08d53f6..7ccb0c59a3b 100644
--- a/lang/perl5/Makefile
+++ b/lang/perl5/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.121 2006/07/19 18:10:32 jlam Exp $
+# $NetBSD: Makefile,v 1.122 2006/10/01 14:48:39 rillig Exp $
DISTNAME= perl-5.8.8
PKGREVISION= 3
@@ -209,7 +209,7 @@ PERL5_BUILD_THREADS_SUPPORT= no
.endif
PKG_OPTIONS_VAR= PKG_OPTIONS.perl
-PKG_SUPPORTED_OPTIONS= threads
+PKG_SUPPORTED_OPTIONS= debug threads
.if !empty(PERL5_BUILD_THREADS_SUPPORT:M[yY][eE][sS])
PKG_SUGGESTED_OPTIONS= threads
.endif
@@ -225,6 +225,10 @@ LIBSWANTED+= ${PTHREAD_LIBS:M-l*:S/^-l//}
CONFIGURE_ARGS+= -Uuseithreads
.endif
+.if !empty(PKG_OPTIONS:Mdebug)
+CFLAGS+= -DDEBUGGING
+.endif
+
.if !empty(LIBSWANTED)
CONFIGURE_ARGS+= -Dlibswanted=${LIBSWANTED:Q}
.endif