summaryrefslogtreecommitdiffstats
path: root/display/directfb/CONFIGURE
diff options
context:
space:
mode:
authorroot2006-04-24 09:03:08 -0500
committerroot2006-04-24 09:03:08 -0500
commit84d8b510ac289af0a43bfa9e110844af27a90196 (patch)
treed7093929b954dd2f71114bff270755e18f737eb1 /display/directfb/CONFIGURE
initial commit from stable 0.3
Diffstat (limited to 'display/directfb/CONFIGURE')
-rwxr-xr-xdisplay/directfb/CONFIGURE45
1 files changed, 45 insertions, 0 deletions
diff --git a/display/directfb/CONFIGURE b/display/directfb/CONFIGURE
new file mode 100755
index 0000000000..fe88b36137
--- /dev/null
+++ b/display/directfb/CONFIGURE
@@ -0,0 +1,45 @@
+add_status() {
+ while [ -n "$1" ]; do
+ echo "$1"
+ echo "$2"
+ echo "off"
+ shift 2
+ done
+}
+
+
+make_gfxdrivers_checklist() {
+ add_status `cat $SCRIPT_DIRECTORY/gfxdrivers`
+}
+
+
+get_gfx() {
+
+ BACKTITLE="DirectFB GFXDRIVER Configuration"
+ TITLE="Chipset Manufacturer selection"
+ HELP="Choose the chiipset your card uses, don't bother with any others if you don't have the
+hardware. If none are selected then all will be installed."
+
+ dialog --backtitle "$BACKTITLE" \
+ --title "$TITLE" \
+ --stdout \
+ --separate-output \
+ --checklist "$HELP" \
+ 0 0 0 \
+ `make_gfxdrivers_checklist`
+
+}
+
+if ! grep -q "gfxdrivers" $SPELL_CONFIG ;then
+ if query "select gfxdrivers to compile ?" n
+ then
+ gfxdrivers=all
+ OLD_IFS=$IFS
+ export IFS="
+"
+ gfxdrivers=`get_gfx | tr '\n' ','`
+ echo "gfxdrivers=$gfxdrivers" >> $SPELL_CONFIG
+ export IFS=$OLD_IFS
+ else echo gfxdrivers=all >> $SPELL_CONFIG
+ fi
+fi