diff options
author | martin <martin@pkgsrc.org> | 2005-11-26 22:09:25 +0000 |
---|---|---|
committer | martin <martin@pkgsrc.org> | 2005-11-26 22:09:25 +0000 |
commit | 0e79795cb134bfb63efab1badb2082b9d2085504 (patch) | |
tree | 1b030021a234da8743a08f33183803773475321d /www | |
parent | 24ab167262d10e10bc926bf0a7fee1072a86e9d0 (diff) | |
download | pkgsrc-0e79795cb134bfb63efab1badb2082b9d2085504.tar.gz |
Add support for PKG_OPTIONS.gecko += debug.
Diffstat (limited to 'www')
-rw-r--r-- | www/mozilla/Makefile.common | 5 | ||||
-rw-r--r-- | www/mozilla/options.mk | 12 |
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 |