summaryrefslogtreecommitdiff
path: root/www/webkit-gtk/options.mk
diff options
context:
space:
mode:
Diffstat (limited to 'www/webkit-gtk/options.mk')
-rw-r--r--www/webkit-gtk/options.mk39
1 files changed, 35 insertions, 4 deletions
diff --git a/www/webkit-gtk/options.mk b/www/webkit-gtk/options.mk
index f730626337e..846a39af44c 100644
--- a/www/webkit-gtk/options.mk
+++ b/www/webkit-gtk/options.mk
@@ -1,27 +1,58 @@
-# $NetBSD: options.mk,v 1.4 2014/05/22 07:09:26 wiz Exp $
+# $NetBSD: options.mk,v 1.5 2014/08/03 22:30:05 wiz Exp $
#
PKG_OPTIONS_VAR= PKG_OPTIONS.webkit-gtk
-PKG_SUPPORTED_OPTIONS= webkit-jit debug
-PKG_SUGGESTED_OPTIONS=
+PKG_SUPPORTED_OPTIONS= debug enchant opengl webkit-jit
+PKG_SUGGESTED_OPTIONS= enchant opengl
.include "../../mk/bsd.prefs.mk"
-# XXX JIT produces invalid code on NetBSD/i386
+# XXX JIT produces invalid code on NetBSD/i386 and NetBSD/amd64
.if empty(MACHINE_PLATFORM:MNetBSD-*-i386) && empty(MACHINE_PLATFORM:MNetBSD-*-x86_64)
PKG_SUGGESTED_OPTIONS+= webkit-jit
.endif
.include "../../mk/bsd.options.mk"
+#
+# JIT support
+#
.if !empty(PKG_OPTIONS:Mwebkit-jit)
CONFIGURE_ARGS+= --enable-jit
.else
CONFIGURE_ARGS+= --disable-jit
.endif
+#
+# debug support
+#
.if !empty(PKG_OPTIONS:Mdebug)
CONFIGURE_ARGS+= --enable-debug
.else
CONFIGURE_ARGS+= --disable-debug
.endif
+
+#
+# OpenGL support: enable support for GLX, WebGL and accelerated compositing
+#
+# TODO: should we split them in multiple options?
+#
+.if !empty(PKG_OPTIONS:Mopengl)
+CONFIGURE_ARGS+= --enable-glx
+CONFIGURE_ARGS+= --enable-webgl
+CONFIGURE_ARGS+= --enable-accelerated-compositing
+.else
+CONFIGURE_ARGS+= --disable-glx
+CONFIGURE_ARGS+= --disable-webgl
+CONFIGURE_ARGS+= --disable-accelerated-compositing
+.endif
+
+#
+# Spellcheck support using enchant
+#
+.if !empty(PKG_OPTIONS:Menchant)
+CONFIGURE_ARGS+= --enable-spellcheck
+.include "../../textproc/enchant/buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --disable-spellcheck
+.endif