pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/mozilla Add support for PKG_OPTIONS.gecko += debug.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/cf461986310e
branches:  trunk
changeset: 503727:cf461986310e
user:      martin <martin%pkgsrc.org@localhost>
date:      Sat Nov 26 22:09:25 2005 +0000

description:
Add support for PKG_OPTIONS.gecko += debug.

diffstat:

 www/mozilla/Makefile.common |   5 +++--
 www/mozilla/options.mk      |  12 ++++++++++++
 2 files changed, 15 insertions(+), 2 deletions(-)

diffs (39 lines):

diff -r b16811383c96 -r cf461986310e www/mozilla/Makefile.common
--- a/www/mozilla/Makefile.common       Sat Nov 26 21:19:20 2005 +0000
+++ b/www/mozilla/Makefile.common       Sat Nov 26 22:09:25 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.63 2005/09/17 02:35:19 jlam Exp $
+# $NetBSD: Makefile.common,v 1.64 2005/11/26 22:09:25 martin Exp $
 
 MOZ_DIST_VER?= ${MOZ_VER}
 DISTNAME?=     mozilla-${MOZ_DIST_VER}-source
@@ -42,7 +42,6 @@
 PKGCONFIG_OVERRIDE_STAGE=      post-build
 
 CONFIGURE_ARGS+= --disable-tests \
-               --disable-debug \
                --disable-pedantic \
                --with-system-jpeg=${BUILDLINK_PREFIX.jpeg} \
                --with-system-png=${BUILDLINK_PREFIX.png} \
@@ -200,3 +199,5 @@
 SUBST_SED.pc=          -e "s|%includedir%|${PREFIX}/include/${MOZILLA}|g" \
                        -e "s|%libdir%|${PREFIX}/lib/${MOZILLA}|g"
 SUBST_MESSAGE.pc=      "Fixing pkgconfig files."
+
+.include "../../www/mozilla/options.mk"
diff -r b16811383c96 -r cf461986310e www/mozilla/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/mozilla/options.mk    Sat Nov 26 22:09:25 2005 +0000
@@ -0,0 +1,12 @@
+# $NetBSD: options.mk,v 1.1 2005/11/26 22:09:25 martin Exp $
+
+PKG_OPTIONS_VAR                = PKG_OPTIONS.gecko
+PKG_SUPPORTED_OPTIONS  = debug
+
+.include "../../mk/bsd.options.mk"
+
+# this .if test looks backward, but the missing options disables debug,
+# so it is correct
+.if empty(PKG_OPTIONS:Mdebug)
+CONFIGURE_ARGS+= --disable-debug
+.endif



Home | Main Index | Thread Index | Old Index