[Lunar-commits] <moonbase> w3m: x11/fbdev graphics? (imlib2)
Christian Krause
wookietreiber at lunar-linux.org
Mon Jun 27 17:29:05 CEST 2011
commit 8a79eaba473c820bde7489f7464a4be378c4c8d3
Author: Christian Krause <wookietreiber at lunar-linux.org>
Date: Mon Jun 27 17:29:05 2011 +0200
w3m: x11/fbdev graphics? (imlib2)
... we really could use unified CONFIGURE/DEPENDS mechanism for this
sort of thing
---
web/w3m/CONFIGURE | 22 ++++++++++++++++++++++
web/w3m/DEPENDS | 10 ++++++----
2 files changed, 28 insertions(+), 4 deletions(-)
diff --git a/web/w3m/CONFIGURE b/web/w3m/CONFIGURE
new file mode 100644
index 0000000..0933c18
--- /dev/null
+++ b/web/w3m/CONFIGURE
@@ -0,0 +1,22 @@
+mquery IMAGES "Build with image support? (select imlib2 later)" n
+
+BACKENDS=""
+
+if [ "`get_module_config IMAGES`" = "y" ]; then
+ mquery X11 "Build X11 backend? (select libXext later)" y
+ if [ "`get_module_config X11`" = "y" ]; then
+ BACKENDS="${BACKENDS}x11,"
+ fi
+
+ mquery FBDEV "Build FBDEV client?" y
+ if [ "`get_module_config FBDEV`" = "y" ]; then
+ BACKENDS="${BACKENDS}fbdev,"
+ fi
+fi
+
+if [ $BACKENDS = "" ]; then
+ OPTS+=" --enable-image=no --without-imagelib"
+else
+ OPTS+=" --enable-image=$BACKENDS"
+fi
+
diff --git a/web/w3m/DEPENDS b/web/w3m/DEPENDS
index 1833529..7522a21 100644
--- a/web/w3m/DEPENDS
+++ b/web/w3m/DEPENDS
@@ -1,5 +1,7 @@
-depends gc
-depends ncurses
-depends zlib
+depends gc
+depends ncurses
+depends zlib
-optional_depends "openssl" "" "" "for SSL support"
+optional_depends "openssl" "--with-ssl=/usr" "--without-ssl" "for SSL support"
+optional_depends "imlib2" "" "" "for image support"
+optional_depends "libXext" "" "" "for image support in X"
More information about the Lunar-commits
mailing list