summaryrefslogtreecommitdiff
path: root/www/mozilla
diff options
context:
space:
mode:
authormartin <martin>2005-11-26 22:09:25 +0000
committermartin <martin>2005-11-26 22:09:25 +0000
commit06820b08d7621238bbae24aff11cc1a8fe6e2fcf (patch)
tree1b030021a234da8743a08f33183803773475321d /www/mozilla
parent75c6d0bd314af2bf9e5e29ff75b44cffea9b570a (diff)
downloadpkgsrc-06820b08d7621238bbae24aff11cc1a8fe6e2fcf.tar.gz
Add support for PKG_OPTIONS.gecko += debug.
Diffstat (limited to 'www/mozilla')
-rw-r--r--www/mozilla/Makefile.common5
-rw-r--r--www/mozilla/options.mk12
2 files changed, 15 insertions, 2 deletions
diff --git a/www/mozilla/Makefile.common b/www/mozilla/Makefile.common
index 5e7e557133d..7e3bfb25167 100644
--- a/www/mozilla/Makefile.common
+++ b/www/mozilla/Makefile.common
@@ -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+= build/unix/mozilla-xpcom.pc
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_FILES.pc= build/unix/*.pc.in
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 --git a/www/mozilla/options.mk b/www/mozilla/options.mk
new file mode 100644
index 00000000000..4473769d328
--- /dev/null
+++ b/www/mozilla/options.mk
@@ -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