summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorrillig <rillig>2006-10-01 14:48:39 +0000
committerrillig <rillig>2006-10-01 14:48:39 +0000
commitb20b56c70ed2fa1ad3fa579995f5cbe1976991ca (patch)
treeff5a07e45ed7ab9156db40c402bf1609e79e5b72 /lang
parent3cb55f717dfb8f31bf700524ef188e88f99e84a2 (diff)
downloadpkgsrc-b20b56c70ed2fa1ad3fa579995f5cbe1976991ca.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