diff options
author | Arjan Bouter | 2007-10-19 16:09:40 +0200 |
---|---|---|
committer | Arjan Bouter | 2007-10-19 16:09:40 +0200 |
commit | 832d0175ec00a52ba37d5f711555e4a5d52d3f87 (patch) | |
tree | 69e47c9c033aad7bab6d9d89468ea25b81681727 /display/directfb/CONFIGURE | |
parent | 85aa02980c0a1debb0077e97d43efca13c743a33 (diff) |
directfb: various fixes
Diffstat (limited to 'display/directfb/CONFIGURE')
-rwxr-xr-x | display/directfb/CONFIGURE | 73 |
1 files changed, 69 insertions, 4 deletions
diff --git a/display/directfb/CONFIGURE b/display/directfb/CONFIGURE index fe88b36137..383d476865 100755 --- a/display/directfb/CONFIGURE +++ b/display/directfb/CONFIGURE @@ -12,12 +12,15 @@ make_gfxdrivers_checklist() { add_status `cat $SCRIPT_DIRECTORY/gfxdrivers` } +make_inputdrivers_checklist() { + add_status `cat $SCRIPT_DIRECTORY/inputdrivers` +} -get_gfx() { +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 + HELP="Choose the chipset 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" \ @@ -30,8 +33,22 @@ hardware. If none are selected then all will be installed." } +get_input() { + BACKTITLE="DirectFB INPUTDRIVER Configuration" + TITLE="Input device selection" + HELP="Choose the input devices your box uses, don't bother with any others. If none are selected then all will be installed." + dialog --backtitle "$BACKTITLE" \ + --title "$TITLE" \ + --stdout \ + --separate-output \ + --checklist "$HELP" \ + 0 0 0 \ + `make_inputdrivers_checklist` + +} + if ! grep -q "gfxdrivers" $SPELL_CONFIG ;then - if query "select gfxdrivers to compile ?" n + if query "select gfxdrivers to compile?" n then gfxdrivers=all OLD_IFS=$IFS @@ -42,4 +59,52 @@ if ! grep -q "gfxdrivers" $SPELL_CONFIG ;then export IFS=$OLD_IFS else echo gfxdrivers=all >> $SPELL_CONFIG fi -fi +fi && + +if ! grep -q "inputdrivers" $SPELL_CONFIG ;then + if query "select inputdrivers to compile?" n + then + inputdrivers=all + OLD_IFS=$IFS + export IFS=" +" + inputdrivers=`get_input | tr '\n' ','` + echo "inputdrivers=$inputdrivers" >> $SPELL_CONFIG + export IFS=$OLD_IFS + else echo inputdrivers=all >> $SPELL_CONFIG + fi +fi && + +config_query_option DFB_DEBUG 'Compile in debug support? (This will slow DFB down a lot)' \ + 'n' \ + '--enable-debug --enable-debug-support' \ + '--disable-debug --disable-debug-support' && + +config_query_option DFB_NETWORK 'Compile in networking support?' 'y' \ + '--enable-network' \ + '--disable-network' && + +config_query_option DFB_VOODOO 'Compile in Voodoo support? (networking)' \ + 'n' \ + '--enable-voodoo' \ + '--disable-voodoo' && + +config_query_option DFB_UNIQUE 'Compile in Unique? (Window management module)' \ + 'n' \ + '--enable-unique' \ + '--disable-unique' && + +config_query_option DFB_V4L 'Enable the v4l video provider?' \ + 'y' \ + '--enable-video4linux' \ + '--disable-video4linux' && + +config_query_option DFB_V4L2 'Enable the v4l2 support?' \ + 'n' \ + '--enable-video4linux2' \ + '--disable-video4linux2' && + +config_query_option DFB_TESTS 'Build test programs?' \ + 'n' \ + '--with-tests' \ + '--with-tests' |