summaryrefslogtreecommitdiffstats
path: root/www/mozilla/Makefile.common
diff options
context:
space:
mode:
authorahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059>2005-11-23 12:54:59 +0800
committerahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059>2005-11-23 12:54:59 +0800
commit25b72e4357594691dd303d6f9638e0c22a4e453d (patch)
tree4e2b77c5df112199bf0d3b38ac1a8bec19f514a6 /www/mozilla/Makefile.common
parent8ab03adf36f8f1f17f4800750a1d972ed318af4e (diff)
downloadmarcuscom-ports-25b72e4357594691dd303d6f9638e0c22a4e453d.tar.gz
marcuscom-ports-25b72e4357594691dd303d6f9638e0c22a4e453d.tar.zst
marcuscom-ports-25b72e4357594691dd303d6f9638e0c22a4e453d.zip
- Convert the rest of mozconfig.in to port vars.
- Add support for optional extensions in mozilla and seamonkey - Add support for <canvas> in firefox [1] - Add 3 new vars MOZ_EXTENSIONS Override "default" extensions MOZ_GRAPHICS Override "default" graphics decoders MOZ_PROTOCOLS Override "default" protocol [1] I hesitated adding this but it is default on for fedora, suse, gentoo see http://developer.mozilla.org/en/docs/Category:HTML:Canvas for more details git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@5189 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'www/mozilla/Makefile.common')
-rw-r--r--www/mozilla/Makefile.common31
1 files changed, 22 insertions, 9 deletions
diff --git a/www/mozilla/Makefile.common b/www/mozilla/Makefile.common
index dba98fadd..9cf2f0db0 100644
--- a/www/mozilla/Makefile.common
+++ b/www/mozilla/Makefile.common
@@ -4,7 +4,7 @@
# Whom: Michael Johnson <ahze@FreeBSD.org>
#
# $FreeBSD$
-# $MCom: ports/www/mozilla/Makefile.common,v 1.11 2005/11/23 01:30:15 ahze Exp $
+# $MCom: ports/www/mozilla/Makefile.common,v 1.12 2005/11/23 02:09:31 ahze Exp $
# Ports can use the following:
#
@@ -22,11 +22,13 @@
# MOZ_OPTIONS Add more configure arguments to .mozconfig
# MOZ_MK_OPTIONS Add more make arguments to .mozconfig
# MOZ_EXPORT Add export variables to .mozconfig
+# MOZ_EXTENSIONS Override "default" extensions
+# MOZ_GRAPHICS Override "default" graphics decoders
+# MOZ_PROTOCOLS Override "default" protocols
#
-# if ${FILESDIR}/mozconfig.in exists and NOMOZCONFIG is not defined
-# contents of ${FILESDIR}/mozconfig.in will be filtered through MOZCONFIG_SED
-# and added the the end of .mozconfig
-#
+# PORT_MOZCONFIG Defaults to ${FILESDIR}/mozconfig.in, but can
+# be set to a generic mozconfig included with
+# the port
BUILD_DEPENDS+= zip:${PORTSDIR}/archivers/zip
LIB_DEPENDS+= jpeg.9:${PORTSDIR}/graphics/jpeg \
@@ -105,9 +107,21 @@ MOZ_OPTIONS+= --enable-crypto \
# Configure options for install
MOZ_OPTIONS+= --x-includes=${X11BASE}/include \
--x-libraries=${X11BASE}/lib
-# Extensions
-# TODO: Add support for other extensions
+.if !defined(MOZ_EXTENSIONS)
MOZ_OPTIONS+= --enable-extensions=default
+.else
+MOZ_OPTIONS+= --enable-extensions=${MOZ_EXTENSIONS}
+.endif
+.if !defined(MOZ_GRAPHICS)
+MOZ_OPTIONS+= --enable-image-decoders=default
+.else
+MOZ_OPTIONS+= --enable-image-decoders=${MOZ_GRAPHICS}
+.endif
+.if !defined(MOZ_PROTOCOLS)
+MOZ_OPTIONS+= --enable-necko-protocols=default
+.else
+MOZ_OPTIONS+= --enable-necko-protocols=${MOZ_PROTOCOLS}
+.endif
# others
MOZ_OPTIONS+= --with-system-jpeg=${LOCALBASE} \
--with-system-zlib=/usr \
@@ -128,8 +142,7 @@ MOZ_OPTIONS+= --with-system-jpeg=${LOCALBASE} \
--disable-pedantic \
--disable-bidi \
--disable-xterm-updates \
- --enable-xinerama \
- --enable-image-decoders=png,gif,jpeg,bmp
+ --enable-xinerama
MOZ_MK_OPTIONS+= XP_UNIX=1 \
PERL=${PERL}
#MOZ_EXPORT+= CPPFLAGS=${CPPFLAGS} \