浏览代码

Config.in files: use if/endif instead of 'depends on' for main symbol

In the Config.in file of package foo, it often happens that there are other
symbols besides BR2_PACKAGE_FOO. Typically, these symbols only make sense
when foo itself is enabled. There are two ways to express this: with
    depends on BR2_PACKAGE_FOO
in each extra symbol, or with
    if BR2_PACKAGE_FOO
        ...
    endif
around the entire set of extra symbols.

The if/endif approach avoids the repetition of 'depends on' statements on
multiple symbols, so this is clearly preferred. But even when there is only
one extra symbol, if/endif is a more logical choice:
- it is future-proof for when extra symbols are added
- it allows to have just one strategy instead of two (less confusion)

This patch modifies the Config.in files accordingly.

Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thomas De Schampheleire 11 年之前
父节点
当前提交
35eaed8d07
共有 60 个文件被更改,包括 242 次插入132 次删除
  1. 4 2
      boot/syslinux/Config.in
  2. 4 1
      package/binutils/Config.in
  3. 4 1
      package/cppcms/Config.in
  4. 4 1
      package/cvs/Config.in
  5. 4 1
      package/dbus/Config.in
  6. 3 3
      package/dhcp/Config.in
  7. 4 26
      package/directfb-examples/Config.in
  8. 0 1
      package/e2fsprogs/Config.in
  9. 4 1
      package/efl/libedje/Config.in
  10. 4 1
      package/evtest/Config.in
  11. 4 1
      package/gadgetfs-test/Config.in
  12. 4 1
      package/gettext/Config.in
  13. 4 1
      package/gnutls/Config.in
  14. 4 1
      package/googlefontdirectory/Config.in
  15. 4 3
      package/gpsd/Config.in
  16. 3 2
      package/haserl/Config.in
  17. 4 3
      package/input-tools/Config.in
  18. 4 1
      package/kexec/Config.in
  19. 3 3
      package/kismet/Config.in
  20. 4 1
      package/kmod/Config.in
  21. 4 2
      package/lcdproc/Config.in
  22. 5 4
      package/libarchive/Config.in
  23. 4 1
      package/libcurl/Config.in
  24. 6 2
      package/libdnet/Config.in
  25. 4 1
      package/libidn/Config.in
  26. 7 3
      package/libmicrohttpd/Config.in
  27. 4 1
      package/libmpeg2/Config.in
  28. 4 1
      package/libnfc/Config.in
  29. 4 2
      package/libnspr/Config.in
  30. 0 1
      package/lighttpd/Config.in
  31. 5 1
      package/links/Config.in
  32. 4 3
      package/live555/Config.in
  33. 5 1
      package/madplay/Config.in
  34. 5 4
      package/matchbox/Config.in
  35. 4 1
      package/nano/Config.in
  36. 4 1
      package/ncftp/Config.in
  37. 4 4
      package/netsnmp/Config.in
  38. 8 8
      package/nfs-utils/Config.in
  39. 4 2
      package/openssl/Config.in
  40. 4 1
      package/polarssl/Config.in
  41. 4 2
      package/pppd/Config.in
  42. 4 1
      package/proftpd/Config.in
  43. 4 1
      package/pulseaudio/Config.in
  44. 4 1
      package/qtuio/Config.in
  45. 4 5
      package/rsh-redone/Config.in
  46. 4 1
      package/schifra/Config.in
  47. 4 1
      package/sdl_image/Config.in
  48. 4 1
      package/sdl_sound/Config.in
  49. 4 1
      package/sg3_utils/Config.in
  50. 6 2
      package/speex/Config.in
  51. 4 2
      package/taglib/Config.in
  52. 4 2
      package/tcl/Config.in
  53. 4 1
      package/tcpdump/Config.in
  54. 2 4
      package/tiff/Config.in
  55. 4 1
      package/tzdata/Config.in
  56. 4 3
      package/udpcast/Config.in
  57. 4 1
      package/usbutils/Config.in
  58. 4 1
      package/vim/Config.in
  59. 4 1
      package/wireless_tools/Config.in
  60. 4 1
      package/zeromq/Config.in

+ 4 - 2
boot/syslinux/Config.in

@@ -7,12 +7,14 @@ config BR2_TARGET_SYSLINUX
 
 
 	  http://syslinux.org
 	  http://syslinux.org
 
 
+if BR2_TARGET_SYSLINUX
+
 config BR2_TARGET_SYSLINUX_ISOLINUX
 config BR2_TARGET_SYSLINUX_ISOLINUX
 	bool "Install isolinux"
 	bool "Install isolinux"
-	depends on BR2_TARGET_SYSLINUX
 	default y
 	default y
 
 
 config BR2_TARGET_SYSLINUX_PXELINUX
 config BR2_TARGET_SYSLINUX_PXELINUX
 	bool "Install pxelinux"
 	bool "Install pxelinux"
-	depends on BR2_TARGET_SYSLINUX
 	default y
 	default y
+
+endif

+ 4 - 1
package/binutils/Config.in

@@ -5,9 +5,10 @@ config BR2_PACKAGE_BINUTILS
 	help
 	help
 	  Install binutils on the target
 	  Install binutils on the target
 
 
+if BR2_PACKAGE_BINUTILS
+
 config BR2_PACKAGE_BINUTILS_TARGET
 config BR2_PACKAGE_BINUTILS_TARGET
 	bool "binutils binaries"
 	bool "binutils binaries"
-	depends on BR2_PACKAGE_BINUTILS
 	help
 	help
 	  The GNU Binutils are a collection of binary tools:
 	  The GNU Binutils are a collection of binary tools:
 
 
@@ -16,3 +17,5 @@ config BR2_PACKAGE_BINUTILS_TARGET
 	  and others...
 	  and others...
 
 
 	  http://www.gnu.org/software/binutils/
 	  http://www.gnu.org/software/binutils/
+
+endif

+ 4 - 1
package/cppcms/Config.in

@@ -20,14 +20,17 @@ config BR2_PACKAGE_CPPCMS
 
 
 	  http://cppcms.com
 	  http://cppcms.com
 
 
+if BR2_PACKAGE_CPPCMS
+
 config BR2_PACKAGE_CPPCMS_ICU
 config BR2_PACKAGE_CPPCMS_ICU
 	bool "enable icu support"
 	bool "enable icu support"
-	depends on BR2_PACKAGE_CPPCMS
 	depends on !BR2_arc # icu -> atomic builtins
 	depends on !BR2_arc # icu -> atomic builtins
 	select BR2_PACKAGE_ICU
 	select BR2_PACKAGE_ICU
 	help
 	help
 	  Using ICU allows advanced localization features into CppCMS,
 	  Using ICU allows advanced localization features into CppCMS,
 	  in another hand ICU is heavier than iconv.
 	  in another hand ICU is heavier than iconv.
 
 
+endif
+
 comment "cppcms needs an (e)glibc toolchain w/ C++"
 comment "cppcms needs an (e)glibc toolchain w/ C++"
 	depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_USES_GLIBC
 	depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_USES_GLIBC

+ 4 - 1
package/cvs/Config.in

@@ -9,12 +9,15 @@ config BR2_PACKAGE_CVS
 
 
 	  http://www.nongnu.org/cvs/
 	  http://www.nongnu.org/cvs/
 
 
+if BR2_PACKAGE_CVS
+
 config BR2_PACKAGE_CVS_SERVER
 config BR2_PACKAGE_CVS_SERVER
 	bool "server support"
 	bool "server support"
-	depends on BR2_PACKAGE_CVS
 	help
 	help
 	  Enable cvs server code
 	  Enable cvs server code
 
 
+endif
+
 comment "cvs needs a toolchain w/ wchar"
 comment "cvs needs a toolchain w/ wchar"
 	depends on BR2_USE_MMU
 	depends on BR2_USE_MMU
 	depends on !BR2_USE_WCHAR
 	depends on !BR2_USE_WCHAR

+ 4 - 1
package/dbus/Config.in

@@ -8,9 +8,10 @@ config BR2_PACKAGE_DBUS
 
 
 	  http://www.freedesktop.org/wiki/Software/dbus
 	  http://www.freedesktop.org/wiki/Software/dbus
 
 
+if BR2_PACKAGE_DBUS
+
 choice
 choice
 	prompt "XML library to use"
 	prompt "XML library to use"
-	depends on BR2_PACKAGE_DBUS
 	default BR2_DBUS_EXPAT
 	default BR2_DBUS_EXPAT
 	help
 	help
 	  Select the XML library to use with D-Bus. Select Expat
 	  Select the XML library to use with D-Bus. Select Expat
@@ -27,6 +28,8 @@ choice
 
 
 endchoice
 endchoice
 
 
+endif
+
 comment "dbus needs a toolchain w/ threads"
 comment "dbus needs a toolchain w/ threads"
 	depends on BR2_USE_MMU
 	depends on BR2_USE_MMU
 	depends on !BR2_TOOLCHAIN_HAS_THREADS
 	depends on !BR2_TOOLCHAIN_HAS_THREADS

+ 3 - 3
package/dhcp/Config.in

@@ -7,9 +7,10 @@ config BR2_PACKAGE_DHCP
 
 
 	  http://www.isc.org/products/DHCP
 	  http://www.isc.org/products/DHCP
 
 
+if BR2_PACKAGE_DHCP
+
 config BR2_PACKAGE_DHCP_SERVER
 config BR2_PACKAGE_DHCP_SERVER
 	bool "dhcp server"
 	bool "dhcp server"
-	depends on BR2_PACKAGE_DHCP
 	help
 	help
 	  DHCP server from the ISC DHCP distribution.
 	  DHCP server from the ISC DHCP distribution.
 
 
@@ -21,14 +22,13 @@ config BR2_PACKAGE_DHCP_SERVER_DELAYED_ACK
 
 
 config BR2_PACKAGE_DHCP_RELAY
 config BR2_PACKAGE_DHCP_RELAY
 	bool "dhcp relay"
 	bool "dhcp relay"
-	depends on BR2_PACKAGE_DHCP
 	help
 	help
 	  DHCP relay agent from the ISC DHCP distribution.
 	  DHCP relay agent from the ISC DHCP distribution.
 
 
 
 
 config BR2_PACKAGE_DHCP_CLIENT
 config BR2_PACKAGE_DHCP_CLIENT
 	bool "dhcp client"
 	bool "dhcp client"
-	depends on BR2_PACKAGE_DHCP
 	help
 	help
 	  DHCP client from the ISC DHCP distribution.
 	  DHCP client from the ISC DHCP distribution.
 
 
+endif

+ 4 - 26
package/directfb-examples/Config.in

@@ -8,9 +8,10 @@ config BR2_PACKAGE_DIRECTFB_EXAMPLES
 
 
 	  http://directfb.org/downloads/Extras/README.DirectFB-examples
 	  http://directfb.org/downloads/Extras/README.DirectFB-examples
 
 
+if BR2_PACKAGE_DIRECTFB_EXAMPLES
+
 config BR2_PACKAGE_DIRECTFB_EXAMPLES_ANDI
 config BR2_PACKAGE_DIRECTFB_EXAMPLES_ANDI
 	bool "usr/bin/df_andi"
 	bool "usr/bin/df_andi"
-	depends on BR2_PACKAGE_DIRECTFB_EXAMPLES
 	help
 	help
 	  Penguin demo, press 'space' to form convergence logo,
 	  Penguin demo, press 'space' to form convergence logo,
 	  's'/'d' to spawn/destroy 'a' penguin, 'r' to revive penguin
 	  's'/'d' to spawn/destroy 'a' penguin, 'r' to revive penguin
@@ -18,68 +19,57 @@ config BR2_PACKAGE_DIRECTFB_EXAMPLES_ANDI
 
 
 config BR2_PACKAGE_DIRECTFB_EXAMPLES_BLTLOAD
 config BR2_PACKAGE_DIRECTFB_EXAMPLES_BLTLOAD
 	bool "usr/bin/df_bltload"
 	bool "usr/bin/df_bltload"
-	depends on BR2_PACKAGE_DIRECTFB_EXAMPLES
 	help
 	help
 	  Reads information from /proc/bltstat.
 	  Reads information from /proc/bltstat.
 
 
 config BR2_PACKAGE_DIRECTFB_EXAMPLES_CPULOAD
 config BR2_PACKAGE_DIRECTFB_EXAMPLES_CPULOAD
 	bool "usr/bin/df_cpuload"
 	bool "usr/bin/df_cpuload"
-	depends on BR2_PACKAGE_DIRECTFB_EXAMPLES
 	help
 	help
 	  CPU Load with data from /proc/stat.
 	  CPU Load with data from /proc/stat.
 
 
 config BR2_PACKAGE_DIRECTFB_EXAMPLES_DATABUFFER
 config BR2_PACKAGE_DIRECTFB_EXAMPLES_DATABUFFER
 	bool "usr/bin/df_databuffer"
 	bool "usr/bin/df_databuffer"
-	depends on BR2_PACKAGE_DIRECTFB_EXAMPLES
 	help
 	help
 	  Simple test application for data buffers.
 	  Simple test application for data buffers.
 
 
 config BR2_PACKAGE_DIRECTFB_EXAMPLES_DIOLOAD
 config BR2_PACKAGE_DIRECTFB_EXAMPLES_DIOLOAD
 	bool "usr/bin/df_dioload"
 	bool "usr/bin/df_dioload"
-	depends on BR2_PACKAGE_DIRECTFB_EXAMPLES
 	help
 	help
 	  Disk IO with data from /proc/stat.
 	  Disk IO with data from /proc/stat.
 
 
 config BR2_PACKAGE_DIRECTFB_EXAMPLES_DOK
 config BR2_PACKAGE_DIRECTFB_EXAMPLES_DOK
 	bool "usr/bin/df_dok"
 	bool "usr/bin/df_dok"
-	depends on BR2_PACKAGE_DIRECTFB_EXAMPLES
 	help
 	help
 	  DirectFB benchmark application, runs some tests and
 	  DirectFB benchmark application, runs some tests and
 	  displays benchmark results afterwards.
 	  displays benchmark results afterwards.
 
 
 config BR2_PACKAGE_DIRECTFB_EXAMPLES_DRIVERTEST
 config BR2_PACKAGE_DIRECTFB_EXAMPLES_DRIVERTEST
 	bool "usr/bin/df_drivertest"
 	bool "usr/bin/df_drivertest"
-	depends on BR2_PACKAGE_DIRECTFB_EXAMPLES
 	help
 	help
 	  Tool to check drivers for bugs and accuracy.
 	  Tool to check drivers for bugs and accuracy.
 
 
 config BR2_PACKAGE_DIRECTFB_EXAMPLES_FIRE
 config BR2_PACKAGE_DIRECTFB_EXAMPLES_FIRE
 	bool "usr/bin/df_fire"
 	bool "usr/bin/df_fire"
-	depends on BR2_PACKAGE_DIRECTFB_EXAMPLES
 	help
 	help
 	  The famous fire effect ported to DirectFB (16 bpp only).
 	  The famous fire effect ported to DirectFB (16 bpp only).
 
 
 config BR2_PACKAGE_DIRECTFB_EXAMPLES_FLIP
 config BR2_PACKAGE_DIRECTFB_EXAMPLES_FLIP
 	bool "usr/bin/df_flip"
 	bool "usr/bin/df_flip"
-	depends on BR2_PACKAGE_DIRECTFB_EXAMPLES
 	help
 	help
 	  Raw Flip() benchmark.
 	  Raw Flip() benchmark.
 
 
 config BR2_PACKAGE_DIRECTFB_EXAMPLES_FONTS
 config BR2_PACKAGE_DIRECTFB_EXAMPLES_FONTS
 	bool "usr/bin/df_fonts"
 	bool "usr/bin/df_fonts"
-	depends on BR2_PACKAGE_DIRECTFB_EXAMPLES
 	help
 	help
 	  Takes a list of font files and shows character tables.
 	  Takes a list of font files and shows character tables.
 
 
 config BR2_PACKAGE_DIRECTFB_EXAMPLES_INPUT
 config BR2_PACKAGE_DIRECTFB_EXAMPLES_INPUT
 	bool "usr/bin/df_input"
 	bool "usr/bin/df_input"
-	depends on BR2_PACKAGE_DIRECTFB_EXAMPLES
 	help
 	help
 	  Test application for input devices.
 	  Test application for input devices.
 
 
 config BR2_PACKAGE_DIRECTFB_EXAMPLES_JOYSTICK
 config BR2_PACKAGE_DIRECTFB_EXAMPLES_JOYSTICK
 	bool "usr/bin/df_joystick"
 	bool "usr/bin/df_joystick"
-	depends on BR2_PACKAGE_DIRECTFB_EXAMPLES
 	help
 	help
 	  A colored version of df_particle, fointain can be moved with
 	  A colored version of df_particle, fointain can be moved with
 	  joystick. The particles of different colors can be spawned
 	  joystick. The particles of different colors can be spawned
@@ -87,7 +77,6 @@ config BR2_PACKAGE_DIRECTFB_EXAMPLES_JOYSTICK
 
 
 config BR2_PACKAGE_DIRECTFB_EXAMPLES_KNUCKLES
 config BR2_PACKAGE_DIRECTFB_EXAMPLES_KNUCKLES
 	bool "usr/bin/df_knuckles"
 	bool "usr/bin/df_knuckles"
-	depends on BR2_PACKAGE_DIRECTFB_EXAMPLES
 	help
 	help
 	  3D skull drawn using triangles that can be rotated using
 	  3D skull drawn using triangles that can be rotated using
 	  the mouse. 'Space' switches to wireframe, 'b' toggles
 	  the mouse. 'Space' switches to wireframe, 'b' toggles
@@ -95,25 +84,21 @@ config BR2_PACKAGE_DIRECTFB_EXAMPLES_KNUCKLES
 
 
 config BR2_PACKAGE_DIRECTFB_EXAMPLES_LAYER
 config BR2_PACKAGE_DIRECTFB_EXAMPLES_LAYER
 	bool "usr/bin/df_layer"
 	bool "usr/bin/df_layer"
-	depends on BR2_PACKAGE_DIRECTFB_EXAMPLES
 	help
 	help
 	  Simple videoplayer with layers.
 	  Simple videoplayer with layers.
 
 
 config BR2_PACKAGE_DIRECTFB_EXAMPLES_MATRIX
 config BR2_PACKAGE_DIRECTFB_EXAMPLES_MATRIX
 	bool "usr/bin/df_matrix"
 	bool "usr/bin/df_matrix"
-	depends on BR2_PACKAGE_DIRECTFB_EXAMPLES
 	help
 	help
 	  Testing SetMatrix() for free transforms.
 	  Testing SetMatrix() for free transforms.
 
 
 config BR2_PACKAGE_DIRECTFB_EXAMPLES_MATRIX_WATER
 config BR2_PACKAGE_DIRECTFB_EXAMPLES_MATRIX_WATER
 	bool "usr/bin/df_matrix_water"
 	bool "usr/bin/df_matrix_water"
-	depends on BR2_PACKAGE_DIRECTFB_EXAMPLES
 	help
 	help
 	  Same as df_matrix, but using new Water API.
 	  Same as df_matrix, but using new Water API.
 
 
 config BR2_PACKAGE_DIRECTFB_EXAMPLES_NEO
 config BR2_PACKAGE_DIRECTFB_EXAMPLES_NEO
 	bool "usr/bin/df_neo"
 	bool "usr/bin/df_neo"
-	depends on BR2_PACKAGE_DIRECTFB_EXAMPLES
 	help
 	help
 	  Port from a gdk-pixbuf demo to DirectFB, uses scaling,
 	  Port from a gdk-pixbuf demo to DirectFB, uses scaling,
 	  alpha blending and color modulation, use cursor keys and
 	  alpha blending and color modulation, use cursor keys and
@@ -121,62 +106,55 @@ config BR2_PACKAGE_DIRECTFB_EXAMPLES_NEO
 
 
 config BR2_PACKAGE_DIRECTFB_EXAMPLES_NETLOAD
 config BR2_PACKAGE_DIRECTFB_EXAMPLES_NETLOAD
 	bool "usr/bin/df_netload"
 	bool "usr/bin/df_netload"
-	depends on BR2_PACKAGE_DIRECTFB_EXAMPLES
 	help
 	help
 	  Network statistica from /proc/net/dev.
 	  Network statistica from /proc/net/dev.
 
 
 config BR2_PACKAGE_DIRECTFB_EXAMPLES_PALETTE
 config BR2_PACKAGE_DIRECTFB_EXAMPLES_PALETTE
 	bool "usr/bin/df_palette"
 	bool "usr/bin/df_palette"
-	depends on BR2_PACKAGE_DIRECTFB_EXAMPLES
 	help
 	help
 	  A example blitting from a surface with a
 	  A example blitting from a surface with a
 	  rotating/morphing palette.
 	  rotating/morphing palette.
 
 
 config BR2_PACKAGE_DIRECTFB_EXAMPLES_PARTICLE
 config BR2_PACKAGE_DIRECTFB_EXAMPLES_PARTICLE
 	bool "usr/bin/df_particle"
 	bool "usr/bin/df_particle"
-	depends on BR2_PACKAGE_DIRECTFB_EXAMPLES
 	help
 	help
 	  A moving fountain consisting of alphablended rectangles,
 	  A moving fountain consisting of alphablended rectangles,
 	  nice and fast if hardware accelerated.
 	  nice and fast if hardware accelerated.
 
 
 config BR2_PACKAGE_DIRECTFB_EXAMPLES_PORTER
 config BR2_PACKAGE_DIRECTFB_EXAMPLES_PORTER
 	bool "usr/bin/df_porter"
 	bool "usr/bin/df_porter"
-	depends on BR2_PACKAGE_DIRECTFB_EXAMPLES
 	help
 	help
 	  Shows porter/duff blending rules.
 	  Shows porter/duff blending rules.
 
 
 config BR2_PACKAGE_DIRECTFB_EXAMPLES_STRESS
 config BR2_PACKAGE_DIRECTFB_EXAMPLES_STRESS
 	bool "usr/bin/df_stress"
 	bool "usr/bin/df_stress"
-	depends on BR2_PACKAGE_DIRECTFB_EXAMPLES
 	help
 	help
 	  Stress tests surface manager, for debugging purposes only.
 	  Stress tests surface manager, for debugging purposes only.
 
 
 config BR2_PACKAGE_DIRECTFB_EXAMPLES_TEXTURE
 config BR2_PACKAGE_DIRECTFB_EXAMPLES_TEXTURE
 	bool "usr/bin/df_texture"
 	bool "usr/bin/df_texture"
-	depends on BR2_PACKAGE_DIRECTFB_EXAMPLES
 	help
 	help
 	  A simple texture example. The 3d windows can be rotated
 	  A simple texture example. The 3d windows can be rotated
 	  with the mouse.
 	  with the mouse.
 
 
 config BR2_PACKAGE_DIRECTFB_EXAMPLES_VIDEO
 config BR2_PACKAGE_DIRECTFB_EXAMPLES_VIDEO
 	bool "usr/bin/df_video"
 	bool "usr/bin/df_video"
-	depends on BR2_PACKAGE_DIRECTFB_EXAMPLES
 	help
 	help
 	  Shows window stack with alpha blending and video playback
 	  Shows window stack with alpha blending and video playback
 	  in a moving window.
 	  in a moving window.
 
 
 config BR2_PACKAGE_DIRECTFB_EXAMPLES_VIDEO_PARTICLE
 config BR2_PACKAGE_DIRECTFB_EXAMPLES_VIDEO_PARTICLE
 	bool "usr/bin/df_video_particle"
 	bool "usr/bin/df_video_particle"
-	depends on BR2_PACKAGE_DIRECTFB_EXAMPLES
 	help
 	help
 	  Same as df_particle, but the rectangles have been
 	  Same as df_particle, but the rectangles have been
 	  replaced by a video (via video4linux). Nice color effects.
 	  replaced by a video (via video4linux). Nice color effects.
 
 
 config BR2_PACKAGE_DIRECTFB_EXAMPLES_WINDOW
 config BR2_PACKAGE_DIRECTFB_EXAMPLES_WINDOW
 	bool "usr/bin/df_window"
 	bool "usr/bin/df_window"
-	depends on BR2_PACKAGE_DIRECTFB_EXAMPLES
 	help
 	help
 	  Simple demonstration of the DirectFB window stack, follow
 	  Simple demonstration of the DirectFB window stack, follow
 	  the instructions in the upper left corner. Pass a video
 	  the instructions in the upper left corner. Pass a video
 	  device file or a movie file on the command-line to enable
 	  device file or a movie file on the command-line to enable
 	  video playback in one of the windows.
 	  video playback in one of the windows.
+
+endif

+ 0 - 1
package/e2fsprogs/Config.in

@@ -79,7 +79,6 @@ config BR2_PACKAGE_E2FSPROGS_MKE2FS
 config BR2_PACKAGE_E2FSPROGS_MKLOSTFOUND
 config BR2_PACKAGE_E2FSPROGS_MKLOSTFOUND
 	bool "mklost+found"
 	bool "mklost+found"
 	default y
 	default y
-	depends on BR2_PACKAGE_E2FSPROGS
 
 
 config BR2_PACKAGE_E2FSPROGS_RESIZE2FS
 config BR2_PACKAGE_E2FSPROGS_RESIZE2FS
 	bool "resize2fs"
 	bool "resize2fs"

+ 4 - 1
package/efl/libedje/Config.in

@@ -14,9 +14,12 @@ config BR2_PACKAGE_LIBEDJE
 
 
 	  http://trac.enlightenment.org/e/wiki/Edje
 	  http://trac.enlightenment.org/e/wiki/Edje
 
 
+if BR2_PACKAGE_LIBEDJE
+
 config BR2_PACKAGE_LIBEDJE_CC
 config BR2_PACKAGE_LIBEDJE_CC
 	bool "build edje_cc"
 	bool "build edje_cc"
-	depends on BR2_PACKAGE_LIBEDJE
 	help
 	help
 	  Build and install the Edje compiler for the target. Normally this
 	  Build and install the Edje compiler for the target. Normally this
 	  is not required.
 	  is not required.
+
+endif

+ 4 - 1
package/evtest/Config.in

@@ -8,11 +8,14 @@ config BR2_PACKAGE_EVTEST
 
 
 	  http://www.freedesktop.org/wiki/Evtest
 	  http://www.freedesktop.org/wiki/Evtest
 
 
+if BR2_PACKAGE_EVTEST
+
 config BR2_PACKAGE_EVTEST_CAPTURE
 config BR2_PACKAGE_EVTEST_CAPTURE
 	bool "evtest-capture"
 	bool "evtest-capture"
-	depends on BR2_PACKAGE_EVTEST
 	select BR2_PACKAGE_LIBXML2
 	select BR2_PACKAGE_LIBXML2
 	help
 	help
 	  evtest-capture captures the information and events from the
 	  evtest-capture captures the information and events from the
 	  input device specified on the command line and writes it to
 	  input device specified on the command line and writes it to
 	  the xml file given.
 	  the xml file given.
+
+endif

+ 4 - 1
package/gadgetfs-test/Config.in

@@ -4,10 +4,11 @@ config BR2_PACKAGE_GADGETFS_TEST
 	help
 	help
 	  Test program for gadgetfs from linux-usb.org
 	  Test program for gadgetfs from linux-usb.org
 
 
+if BR2_PACKAGE_GADGETFS_TEST
+
 config BR2_PACKAGE_GADGETFS_TEST_USE_AIO
 config BR2_PACKAGE_GADGETFS_TEST_USE_AIO
 	bool "use asynchronous i/o"
 	bool "use asynchronous i/o"
 	select BR2_PACKAGE_LIBAIO
 	select BR2_PACKAGE_LIBAIO
-	depends on BR2_PACKAGE_GADGETFS_TEST
 	# libaio is available only on few architectures
 	# libaio is available only on few architectures
 	depends on \
 	depends on \
 		BR2_arm   || BR2_armeb || BR2_avr32  || BR2_i386    || \
 		BR2_arm   || BR2_armeb || BR2_avr32  || BR2_i386    || \
@@ -17,5 +18,7 @@ config BR2_PACKAGE_GADGETFS_TEST_USE_AIO
 	  Select this to have gadgetfs-test do asynchronous I/O using
 	  Select this to have gadgetfs-test do asynchronous I/O using
 	  the libaio library.
 	  the libaio library.
 
 
+endif
+
 comment "gadgetfs-test needs a toolchain w/ threads"
 comment "gadgetfs-test needs a toolchain w/ threads"
 	depends on !BR2_TOOLCHAIN_HAS_THREADS
 	depends on !BR2_TOOLCHAIN_HAS_THREADS

+ 4 - 1
package/gettext/Config.in

@@ -13,9 +13,10 @@ config BR2_PACKAGE_GETTEXT
 
 
 	  http://www.gnu.org/software/gettext/
 	  http://www.gnu.org/software/gettext/
 
 
+if BR2_PACKAGE_GETTEXT
+
 config BR2_PACKAGE_GETTEXT_TOOLS
 config BR2_PACKAGE_GETTEXT_TOOLS
 	bool "Install gettext tools"
 	bool "Install gettext tools"
-	depends on BR2_PACKAGE_GETTEXT
 	depends on BR2_USE_MMU # fork()
 	depends on BR2_USE_MMU # fork()
 	depends on BR2_LARGEFILE
 	depends on BR2_LARGEFILE
 	select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE
 	select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE
@@ -24,6 +25,8 @@ config BR2_PACKAGE_GETTEXT_TOOLS
 	  the target filesystem. This is typically not useful for
 	  the target filesystem. This is typically not useful for
 	  correct operation of programs.
 	  correct operation of programs.
 
 
+endif
+
 comment "gettext needs a toolchain w/ wchar"
 comment "gettext needs a toolchain w/ wchar"
 	depends on BR2_NEEDS_GETTEXT
 	depends on BR2_NEEDS_GETTEXT
 	depends on !BR2_USE_WCHAR
 	depends on !BR2_USE_WCHAR

+ 4 - 1
package/gnutls/Config.in

@@ -9,11 +9,14 @@ config BR2_PACKAGE_GNUTLS
 
 
 	  http://www.gnutls.org
 	  http://www.gnutls.org
 
 
+if BR2_PACKAGE_GNUTLS
+
 config BR2_PACKAGE_GNUTLS_TOOLS
 config BR2_PACKAGE_GNUTLS_TOOLS
 	bool "install tools"
 	bool "install tools"
-	depends on BR2_PACKAGE_GNUTLS
 	help
 	help
 	  Install GnuTLS command line tools for various cryptographic tasks.
 	  Install GnuTLS command line tools for various cryptographic tasks.
 
 
+endif
+
 comment "gnutls needs a toolchain w/ wchar"
 comment "gnutls needs a toolchain w/ wchar"
 	depends on !BR2_USE_WCHAR
 	depends on !BR2_USE_WCHAR

+ 4 - 1
package/googlefontdirectory/Config.in

@@ -5,9 +5,12 @@ config BR2_PACKAGE_GOOGLEFONTDIRECTORY
 
 
 	  http://code.google.com/p/googlefontdirectory/
 	  http://code.google.com/p/googlefontdirectory/
 
 
+if BR2_PACKAGE_GOOGLEFONTDIRECTORY
+
 config BR2_PACKAGE_GOOGLEFONTDIRECTORY_FONTS
 config BR2_PACKAGE_GOOGLEFONTDIRECTORY_FONTS
 	string "List of fonts to install"
 	string "List of fonts to install"
 	default "droid"
 	default "droid"
-	depends on BR2_PACKAGE_GOOGLEFONTDIRECTORY
 	help
 	help
 	  Specify a space-separated list of fonts to install
 	  Specify a space-separated list of fonts to install
+
+endif

+ 4 - 3
package/gpsd/Config.in

@@ -17,13 +17,13 @@ config BR2_PACKAGE_GPSD
 
 
 	  http://gpsd.berlios.de/
 	  http://gpsd.berlios.de/
 
 
+if BR2_PACKAGE_GPSD
+
 config BR2_PACKAGE_GPSD_DEVICES
 config BR2_PACKAGE_GPSD_DEVICES
 	string "Where to look for GPSes"
 	string "Where to look for GPSes"
 	default "/dev/ttyS1"
 	default "/dev/ttyS1"
-	depends on BR2_PACKAGE_GPSD
 
 
 menu "Features"
 menu "Features"
-	depends on BR2_PACKAGE_GPSD
 
 
 config BR2_PACKAGE_GPSD_CLIENT_DEBUG
 config BR2_PACKAGE_GPSD_CLIENT_DEBUG
 	bool "client debugging support"
 	bool "client debugging support"
@@ -95,7 +95,6 @@ config BR2_PACKAGE_GPSD_SQUELCH
 endmenu
 endmenu
 
 
 menu "Protocols"
 menu "Protocols"
-	depends on BR2_PACKAGE_GPSD
 
 
 config BR2_PACKAGE_GPSD_AIVDM
 config BR2_PACKAGE_GPSD_AIVDM
 	bool "Aivdm"
 	bool "Aivdm"
@@ -231,3 +230,5 @@ config BR2_PACKAGE_GPSD_UBX
 	  uBlox UBX binary support
 	  uBlox UBX binary support
 
 
 endmenu
 endmenu
+
+endif

+ 3 - 2
package/haserl/Config.in

@@ -8,9 +8,10 @@ config BR2_PACKAGE_HASERL
 
 
 	  http://haserl.sourceforge.net/
 	  http://haserl.sourceforge.net/
 
 
+if BR2_PACKAGE_HASERL
+
 config BR2_PACKAGE_HASERL_WITH_LUA
 config BR2_PACKAGE_HASERL_WITH_LUA
 	bool "Lua support"
 	bool "Lua support"
-	depends on BR2_PACKAGE_HASERL
 	depends on BR2_PACKAGE_HASERL_VERSION_0_9_X
 	depends on BR2_PACKAGE_HASERL_VERSION_0_9_X
 	select BR2_PACKAGE_LUA
 	select BR2_PACKAGE_LUA
 	help
 	help
@@ -19,7 +20,6 @@ config BR2_PACKAGE_HASERL_WITH_LUA
 choice
 choice
 	prompt "Haserl version"
 	prompt "Haserl version"
 	default BR2_PACKAGE_HASERL_VERSION_0_9_X
 	default BR2_PACKAGE_HASERL_VERSION_0_9_X
-	depends on BR2_PACKAGE_HASERL
 	help
 	help
 	  Select the older stable version, or the newer developer version
 	  Select the older stable version, or the newer developer version
 
 
@@ -35,6 +35,7 @@ config BR2_PACKAGE_HASERL_VERSION_0_9_X
 
 
 endchoice
 endchoice
 
 
+endif
 
 
 config BR2_PACKAGE_HASERL_VERSION
 config BR2_PACKAGE_HASERL_VERSION
 	string
 	string

+ 4 - 3
package/input-tools/Config.in

@@ -4,23 +4,24 @@ config BR2_PACKAGE_INPUT_TOOLS
 	  Tools for the Linux kernel input layer.
 	  Tools for the Linux kernel input layer.
 	  http://linuxconsole.sourceforge.net/
 	  http://linuxconsole.sourceforge.net/
 
 
+if BR2_PACKAGE_INPUT_TOOLS
+
 config BR2_PACKAGE_INPUT_TOOLS_INPUTATTACH
 config BR2_PACKAGE_INPUT_TOOLS_INPUTATTACH
 	bool "inputattach"
 	bool "inputattach"
-	depends on BR2_PACKAGE_INPUT_TOOLS
 	default y
 	default y
 	help
 	help
 	  Inputattach is used for attaching a serial line to the input layer.
 	  Inputattach is used for attaching a serial line to the input layer.
 
 
 config BR2_PACKAGE_INPUT_TOOLS_JSCAL
 config BR2_PACKAGE_INPUT_TOOLS_JSCAL
 	bool "jscal"
 	bool "jscal"
-	depends on BR2_PACKAGE_INPUT_TOOLS
 	default y
 	default y
 	help
 	help
 	  Joystick calibration program.
 	  Joystick calibration program.
 
 
 config BR2_PACKAGE_INPUT_TOOLS_JSTEST
 config BR2_PACKAGE_INPUT_TOOLS_JSTEST
 	bool "jstest"
 	bool "jstest"
-	depends on BR2_PACKAGE_INPUT_TOOLS
 	default y
 	default y
 	help
 	help
 	  Joystick test program.
 	  Joystick test program.
+
+endif

+ 4 - 1
package/kexec/Config.in

@@ -9,9 +9,12 @@ config BR2_PACKAGE_KEXEC
 
 
 	  https://www.kernel.org/pub/linux/utils/kernel/kexec/
 	  https://www.kernel.org/pub/linux/utils/kernel/kexec/
 
 
+if BR2_PACKAGE_KEXEC
+
 config BR2_PACKAGE_KEXEC_ZLIB
 config BR2_PACKAGE_KEXEC_ZLIB
 	bool "zlib support"
 	bool "zlib support"
-	depends on BR2_PACKAGE_KEXEC
 	select BR2_PACKAGE_ZLIB
 	select BR2_PACKAGE_ZLIB
 	help
 	help
 	  Support for compressed kernel images
 	  Support for compressed kernel images
+
+endif

+ 3 - 3
package/kismet/Config.in

@@ -26,16 +26,16 @@ config BR2_PACKAGE_KISMET
 
 
 	  http://www.kismetwireless.net
 	  http://www.kismetwireless.net
 
 
+if BR2_PACKAGE_KISMET
+
 config BR2_PACKAGE_KISMET_CLIENT
 config BR2_PACKAGE_KISMET_CLIENT
 	bool "Install client"
 	bool "Install client"
-	depends on BR2_PACKAGE_KISMET
 
 
 config BR2_PACKAGE_KISMET_DRONE
 config BR2_PACKAGE_KISMET_DRONE
 	bool "Install drone"
 	bool "Install drone"
-	depends on BR2_PACKAGE_KISMET
 
 
 config BR2_PACKAGE_KISMET_SERVER
 config BR2_PACKAGE_KISMET_SERVER
 	bool "Install server"
 	bool "Install server"
 	default y
 	default y
-	depends on BR2_PACKAGE_KISMET
 
 
+endif

+ 4 - 1
package/kmod/Config.in

@@ -6,10 +6,13 @@ config BR2_PACKAGE_KMOD
 
 
 	  http://git.kernel.org/?p=utils/kernel/kmod/kmod.git
 	  http://git.kernel.org/?p=utils/kernel/kmod/kmod.git
 
 
+if BR2_PACKAGE_KMOD
+
 config BR2_PACKAGE_KMOD_TOOLS
 config BR2_PACKAGE_KMOD_TOOLS
 	bool "kmod utilities"
 	bool "kmod utilities"
-	depends on BR2_PACKAGE_KMOD
 	depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
 	depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
 	help
 	help
 	  Install kmod module utilities (depmod, insmod, lsmod,
 	  Install kmod module utilities (depmod, insmod, lsmod,
 	  modinfo, modprobe, rmmod).
 	  modinfo, modprobe, rmmod).
+
+endif

+ 4 - 2
package/lcdproc/Config.in

@@ -9,15 +9,17 @@ config BR2_PACKAGE_LCDPROC
 
 
 	  http://lcdproc.org/
 	  http://lcdproc.org/
 
 
+if BR2_PACKAGE_LCDPROC
+
 config BR2_PACKAGE_LCDPROC_DRIVERS
 config BR2_PACKAGE_LCDPROC_DRIVERS
 	string "List of drivers to build"
 	string "List of drivers to build"
 	default "all"
 	default "all"
-	depends on BR2_PACKAGE_LCDPROC
 	help
 	help
 	  Specify a comma-separated list of lcdproc drivers to be built
 	  Specify a comma-separated list of lcdproc drivers to be built
 
 
 config BR2_PACKAGE_LCDPROC_MENUS
 config BR2_PACKAGE_LCDPROC_MENUS
 	bool "Menu support"
 	bool "Menu support"
-	depends on BR2_PACKAGE_LCDPROC
 	help
 	help
 	  Enable support for lcdproc menus
 	  Enable support for lcdproc menus
+
+endif

+ 5 - 4
package/libarchive/Config.in

@@ -1,3 +1,6 @@
+comment "libarchive needs a toolchain w/ wchar"
+	depends on !BR2_USE_WCHAR
+
 config BR2_PACKAGE_LIBARCHIVE
 config BR2_PACKAGE_LIBARCHIVE
 	bool "libarchive"
 	bool "libarchive"
 	depends on BR2_USE_WCHAR
 	depends on BR2_USE_WCHAR
@@ -7,20 +10,18 @@ config BR2_PACKAGE_LIBARCHIVE
 
 
 	  http://www.libarchive.org/
 	  http://www.libarchive.org/
 
 
-comment "libarchive needs a toolchain w/ wchar"
-	depends on !BR2_USE_WCHAR
+if BR2_PACKAGE_LIBARCHIVE
 
 
 config BR2_PACKAGE_LIBARCHIVE_BSDTAR
 config BR2_PACKAGE_LIBARCHIVE_BSDTAR
 	bool "bsdtar"
 	bool "bsdtar"
-	depends on BR2_PACKAGE_LIBARCHIVE
 	help
 	help
 	  The 'bsdtar' program is a full-featured 'tar'
 	  The 'bsdtar' program is a full-featured 'tar'
 	  replacement built on libarchive.
 	  replacement built on libarchive.
 
 
 config BR2_PACKAGE_LIBARCHIVE_BSDCPIO
 config BR2_PACKAGE_LIBARCHIVE_BSDCPIO
 	bool "bsdcpio"
 	bool "bsdcpio"
-	depends on BR2_PACKAGE_LIBARCHIVE
 	help
 	help
 	  The 'bsdcpio' program is a different interface to
 	  The 'bsdcpio' program is a different interface to
 	  essentially the same functionality as 'bsdtar'.
 	  essentially the same functionality as 'bsdtar'.
 
 
+endif

+ 4 - 1
package/libcurl/Config.in

@@ -6,8 +6,11 @@ config BR2_PACKAGE_LIBCURL
 
 
 	  http://curl.haxx.se/
 	  http://curl.haxx.se/
 
 
+if BR2_PACKAGE_LIBCURL
+
 config BR2_PACKAGE_CURL
 config BR2_PACKAGE_CURL
 	bool "curl binary"
 	bool "curl binary"
-	depends on BR2_PACKAGE_LIBCURL
 	help
 	help
 	  Install curl binary as well
 	  Install curl binary as well
+
+endif

+ 6 - 2
package/libdnet/Config.in

@@ -5,12 +5,16 @@ config BR2_PACKAGE_LIBDNET
 
 
 	  http://libdnet.sourceforge.net/
 	  http://libdnet.sourceforge.net/
 
 
+if BR2_PACKAGE_LIBDNET
+
 config BR2_PACKAGE_LIBDNET_PYTHON
 config BR2_PACKAGE_LIBDNET_PYTHON
 	bool "libdnet python module"
 	bool "libdnet python module"
-	depends on BR2_PACKAGE_LIBDNET && BR2_PACKAGE_PYTHON
+	depends on BR2_PACKAGE_PYTHON
 	help
 	help
 	  dnet module for python
 	  dnet module for python
 
 
 comment "dnet module for python requires python package"
 comment "dnet module for python requires python package"
-	depends on BR2_PACKAGE_LIBDNET && !BR2_PACKAGE_PYTHON
+	depends on !BR2_PACKAGE_PYTHON
+
+endif
 
 

+ 4 - 1
package/libidn/Config.in

@@ -7,8 +7,11 @@ config BR2_PACKAGE_LIBIDN
 
 
 	  http://www.gnu.org/software/libidn/
 	  http://www.gnu.org/software/libidn/
 
 
+if BR2_PACKAGE_LIBIDN
+
 config BR2_PACKAGE_LIBIDN_BINARY
 config BR2_PACKAGE_LIBIDN_BINARY
 	bool "idn binary"
 	bool "idn binary"
-	depends on BR2_PACKAGE_LIBIDN
 	help
 	help
 	  Install idn command line tool
 	  Install idn command line tool
+
+endif

+ 7 - 3
package/libmicrohttpd/Config.in

@@ -7,17 +7,21 @@ config BR2_PACKAGE_LIBMICROHTTPD
 
 
 	  http://www.gnu.org/software/libmicrohttpd/
 	  http://www.gnu.org/software/libmicrohttpd/
 
 
+if BR2_PACKAGE_LIBMICROHTTPD
+
 config BR2_PACKAGE_LIBMICROHTTPD_SSL
 config BR2_PACKAGE_LIBMICROHTTPD_SSL
 	bool "https support"
 	bool "https support"
-	depends on BR2_PACKAGE_LIBMICROHTTPD
 	depends on BR2_USE_WCHAR
 	depends on BR2_USE_WCHAR
 	select BR2_PACKAGE_GNUTLS
 	select BR2_PACKAGE_GNUTLS
 	select BR2_PACKAGE_LIBGCRYPT
 	select BR2_PACKAGE_LIBGCRYPT
 	help
 	help
 	  Enable HTTPS (SSL) support.
 	  Enable HTTPS (SSL) support.
 
 
+comment "libmicrohttpd https support needs a toolchain w/ wchar"
+	depends on !BR2_USE_WCHAR
+
+endif
+
 comment "libmicrohttpd needs a toolchain w/ threads"
 comment "libmicrohttpd needs a toolchain w/ threads"
 	depends on !BR2_TOOLCHAIN_HAS_THREADS
 	depends on !BR2_TOOLCHAIN_HAS_THREADS
 
 
-comment "libmicrohttpd https support needs a toolchain w/ wchar"
-	depends on BR2_PACKAGE_LIBMICROHTTPD && !BR2_USE_WCHAR

+ 4 - 1
package/libmpeg2/Config.in

@@ -5,9 +5,12 @@ config BR2_PACKAGE_LIBMPEG2
 
 
 	  http://libmpeg2.sourceforge.net/
 	  http://libmpeg2.sourceforge.net/
 
 
+if BR2_PACKAGE_LIBMPEG2
+
 config BR2_PACKAGE_LIBMPEG2_BINS
 config BR2_PACKAGE_LIBMPEG2_BINS
 	bool "mpeg2 binaries"
 	bool "mpeg2 binaries"
-	depends on BR2_PACKAGE_LIBMPEG2
 	help
 	help
 	  Install mpeg2dec, corrupt_mpeg2 and extract_mpeg2 programs as
 	  Install mpeg2dec, corrupt_mpeg2 and extract_mpeg2 programs as
 	  well.
 	  well.
+
+endif

+ 4 - 1
package/libnfc/Config.in

@@ -8,10 +8,13 @@ config BR2_PACKAGE_LIBNFC
 
 
 	  http://www.libnfc.org/
 	  http://www.libnfc.org/
 
 
+if BR2_PACKAGE_LIBNFC
+
 config BR2_PACKAGE_LIBNFC_EXAMPLES
 config BR2_PACKAGE_LIBNFC_EXAMPLES
 	bool "build libnfc examples"
 	bool "build libnfc examples"
-	depends on BR2_PACKAGE_LIBNFC
 	select BR2_PACKAGE_READLINE
 	select BR2_PACKAGE_READLINE
 
 
+endif
+
 comment "libnfc needs a toolchain w/ threads"
 comment "libnfc needs a toolchain w/ threads"
 	depends on !BR2_TOOLCHAIN_HAS_THREADS
 	depends on !BR2_TOOLCHAIN_HAS_THREADS

+ 4 - 2
package/libnspr/Config.in

@@ -2,11 +2,12 @@ config BR2_PACKAGE_LIBNSPR_ARCH_SUPPORT
 	def_bool y
 	def_bool y
 	depends on !BR2_arc && !BR2_xtensa && !BR2_bfin
 	depends on !BR2_arc && !BR2_xtensa && !BR2_bfin
 
 
+if BR2_PACKAGE_LIBNSPR_ARCH_SUPPORT
+
 config BR2_PACKAGE_LIBNSPR
 config BR2_PACKAGE_LIBNSPR
 	bool "libnspr"
 	bool "libnspr"
 	depends on BR2_LARGEFILE
 	depends on BR2_LARGEFILE
 	depends on BR2_TOOLCHAIN_HAS_THREADS
 	depends on BR2_TOOLCHAIN_HAS_THREADS
-	depends on BR2_PACKAGE_LIBNSPR_ARCH_SUPPORT
 	help
 	help
 	  NSPR is the Netscape Portable Runtime library which provides
 	  NSPR is the Netscape Portable Runtime library which provides
 	  a platform-neutral API for system level and libc like
 	  a platform-neutral API for system level and libc like
@@ -16,5 +17,6 @@ config BR2_PACKAGE_LIBNSPR
 	  http://www.mozilla.org/projects/nspr/
 	  http://www.mozilla.org/projects/nspr/
 
 
 comment "libnspr needs a toolchain w/ largefile, threads"
 comment "libnspr needs a toolchain w/ largefile, threads"
-	depends on BR2_PACKAGE_LIBNSPR_ARCH_SUPPORT
 	depends on !BR2_LARGEFILE || !BR2_TOOLCHAIN_HAS_THREADS
 	depends on !BR2_LARGEFILE || !BR2_TOOLCHAIN_HAS_THREADS
+
+endif

+ 0 - 1
package/lighttpd/Config.in

@@ -47,7 +47,6 @@ config BR2_PACKAGE_LIGHTTPD_WEBDAV
 
 
 config BR2_PACKAGE_LIGHTTPD_LUA
 config BR2_PACKAGE_LIGHTTPD_LUA
 	bool "lua support"
 	bool "lua support"
-	depends on BR2_PACKAGE_LIGHTTPD
 	select BR2_PACKAGE_LUA
 	select BR2_PACKAGE_LUA
 	help
 	help
 	  Enable Lua support. Needed to support mod_magnet
 	  Enable Lua support. Needed to support mod_magnet

+ 5 - 1
package/links/Config.in

@@ -6,11 +6,15 @@ config BR2_PACKAGE_LINKS
 
 
 	  http://links.twibright.com/
 	  http://links.twibright.com/
 
 
+if BR2_PACKAGE_LINKS
+
 config BR2_PACKAGE_LINKS_GRAPHICS
 config BR2_PACKAGE_LINKS_GRAPHICS
 	bool "use graphics"
 	bool "use graphics"
-	depends on BR2_PACKAGE_LINKS && (BR2_PACKAGE_DIRECTFB || BR2_PACKAGE_XORG7)
+	depends on BR2_PACKAGE_DIRECTFB || BR2_PACKAGE_XORG7
 	select BR2_PACKAGE_XLIB_LIBXT if BR2_PACKAGE_XORG7
 	select BR2_PACKAGE_XLIB_LIBXT if BR2_PACKAGE_XORG7
 	select BR2_PACKAGE_LIBPNG
 	select BR2_PACKAGE_LIBPNG
 	help
 	help
 	  Enable graphics output for DirectFB or X11.
 	  Enable graphics output for DirectFB or X11.
 	  Otherwise links will be text-mode only.
 	  Otherwise links will be text-mode only.
+
+endif

+ 4 - 3
package/live555/Config.in

@@ -7,27 +7,28 @@ config BR2_PACKAGE_LIVE555
 
 
 	  http://www.live555.com/liveMedia/
 	  http://www.live555.com/liveMedia/
 
 
+if BR2_PACKAGE_LIVE555
+
 config BR2_PACKAGE_LIVE555_OPENRTSP
 config BR2_PACKAGE_LIVE555_OPENRTSP
 	bool "OpenRTSP"
 	bool "OpenRTSP"
-	depends on BR2_PACKAGE_LIVE555
 	default y
 	default y
 	help
 	help
 	  Live555 RTSP Client.
 	  Live555 RTSP Client.
 
 
 config BR2_PACKAGE_LIVE555_MEDIASERVER
 config BR2_PACKAGE_LIVE555_MEDIASERVER
 	bool "live555MediaServer"
 	bool "live555MediaServer"
-	depends on BR2_PACKAGE_LIVE555
 	default y
 	default y
 	help
 	help
 	  RTSP Server. Supports numerous media formats such as H.264 and MPEG2.
 	  RTSP Server. Supports numerous media formats such as H.264 and MPEG2.
 
 
 config BR2_PACKAGE_LIVE555_MPEG2_INDEXER
 config BR2_PACKAGE_LIVE555_MPEG2_INDEXER
 	bool "MPEG2TransportStreamIndexer"
 	bool "MPEG2TransportStreamIndexer"
-	depends on BR2_PACKAGE_LIVE555
 	default y
 	default y
 	help
 	help
 	  MPEG2 Transport Stream Indexer. Provides indexes allowing 'trick play'
 	  MPEG2 Transport Stream Indexer. Provides indexes allowing 'trick play'
 	  operation in the Live555MediaServer.
 	  operation in the Live555MediaServer.
 
 
+endif
+
 comment "live555 needs a toolchain w/ C++"
 comment "live555 needs a toolchain w/ C++"
 	depends on !BR2_INSTALL_LIBSTDCPP
 	depends on !BR2_INSTALL_LIBSTDCPP

+ 5 - 1
package/madplay/Config.in

@@ -11,7 +11,11 @@ config BR2_PACKAGE_MADPLAY
 
 
 	  http://www.underbit.com/products/mad/
 	  http://www.underbit.com/products/mad/
 
 
+if BR2_PACKAGE_MADPLAY
+
 config BR2_PACKAGE_MADPLAY_ALSA
 config BR2_PACKAGE_MADPLAY_ALSA
 	bool
 	bool
 	default y
 	default y
-	depends on BR2_PACKAGE_MADPLAY && BR2_PACKAGE_ALSA_LIB
+	depends on BR2_PACKAGE_ALSA_LIB
+
+endif

+ 5 - 4
package/matchbox/Config.in

@@ -9,23 +9,23 @@ config BR2_PACKAGE_MATCHBOX
 	help
 	help
 	  http://projects.o-hand.com/matchbox
 	  http://projects.o-hand.com/matchbox
 
 
+if BR2_PACKAGE_MATCHBOX
+
 config BR2_PACKAGE_MATCHBOX_PANEL
 config BR2_PACKAGE_MATCHBOX_PANEL
 	bool "Matchbox Panel"
 	bool "Matchbox Panel"
-	depends on BR2_PACKAGE_MATCHBOX
 	help
 	help
 	  A flexible always present 'window bar' for holding
 	  A flexible always present 'window bar' for holding
 	  application launchers.
 	  application launchers.
 
 
 config BR2_PACKAGE_MATCHBOX_DESKTOP
 config BR2_PACKAGE_MATCHBOX_DESKTOP
 	bool "Matchbox Desktop"
 	bool "Matchbox Desktop"
-	depends on BR2_PACKAGE_MATCHBOX
 	select BR2_PACKAGE_ZLIB
 	select BR2_PACKAGE_ZLIB
 	help
 	help
 	  A PDA style application launcher or 'item browser'.
 	  A PDA style application launcher or 'item browser'.
 
 
 config BR2_PACKAGE_MATCHBOX_COMMON
 config BR2_PACKAGE_MATCHBOX_COMMON
 	bool "Matchbox session common files"
 	bool "Matchbox session common files"
-	depends on BR2_PACKAGE_MATCHBOX && BR2_PACKAGE_MATCHBOX_PANEL && BR2_PACKAGE_MATCHBOX_DESKTOP
+	depends on BR2_PACKAGE_MATCHBOX_PANEL && BR2_PACKAGE_MATCHBOX_DESKTOP
 	help
 	help
 	  Common desktop folders and matchbox-session script.
 	  Common desktop folders and matchbox-session script.
 
 
@@ -35,7 +35,8 @@ config BR2_PACKAGE_MATCHBOX_COMMON_PDA
 
 
 config BR2_PACKAGE_MATCHBOX_KEYBOARD
 config BR2_PACKAGE_MATCHBOX_KEYBOARD
 	bool "Matchbox Virtual Keyboard"
 	bool "Matchbox Virtual Keyboard"
-	depends on BR2_PACKAGE_MATCHBOX
 	select BR2_PACKAGE_XLIB_LIBXTST
 	select BR2_PACKAGE_XLIB_LIBXTST
 	help
 	help
 	  Virtual Keyboard
 	  Virtual Keyboard
+
+endif

+ 4 - 1
package/nano/Config.in

@@ -10,12 +10,15 @@ config BR2_PACKAGE_NANO
 
 
 	  http://www.nano-editor.org/
 	  http://www.nano-editor.org/
 
 
+if BR2_PACKAGE_NANO
+
 config BR2_PACKAGE_NANO_TINY
 config BR2_PACKAGE_NANO_TINY
 	bool "optimize for size"
 	bool "optimize for size"
 	default y
 	default y
-	depends on BR2_PACKAGE_NANO
 	help
 	help
 	  Disable all features for the sake of size.
 	  Disable all features for the sake of size.
 
 
+endif
+
 comment "nano needs a toolchain w/ wchar"
 comment "nano needs a toolchain w/ wchar"
 	depends on !BR2_USE_WCHAR
 	depends on !BR2_USE_WCHAR

+ 4 - 1
package/ncftp/Config.in

@@ -8,8 +8,9 @@ config BR2_PACKAGE_NCFTP
 
 
 	  http://www.ncftp.com/ncftp/
 	  http://www.ncftp.com/ncftp/
 
 
+if BR2_PACKAGE_NCFTP
+
 menu "ncFTP tools selection"
 menu "ncFTP tools selection"
-	depends on BR2_PACKAGE_NCFTP
 
 
 config BR2_PACKAGE_NCFTP_GET
 config BR2_PACKAGE_NCFTP_GET
 	bool "NcFTPGet - command-line utility program"
 	bool "NcFTPGet - command-line utility program"
@@ -32,3 +33,5 @@ config BR2_PACKAGE_NCFTP_BOOKMARKS
 	select BR2_PACKAGE_NCURSES
 	select BR2_PACKAGE_NCURSES
 
 
 endmenu
 endmenu
+
+endif

+ 4 - 4
package/netsnmp/Config.in

@@ -7,10 +7,11 @@ config BR2_PACKAGE_NETSNMP
 
 
 	  http://net-snmp.sourceforge.net/
 	  http://net-snmp.sourceforge.net/
 
 
+if BR2_PACKAGE_NETSNMP
+
 config BR2_PACKAGE_NETSNMP_ENABLE_MIBS
 config BR2_PACKAGE_NETSNMP_ENABLE_MIBS
 	bool "Install MIB files on target and enable MIB loading code"
 	bool "Install MIB files on target and enable MIB loading code"
 	default y
 	default y
-	depends on BR2_PACKAGE_NETSNMP
 	help
 	help
 	  The net-snmp package contains a selection of MIB files.
 	  The net-snmp package contains a selection of MIB files.
 	  Say yes if you want those MIB files installed on the target
 	  Say yes if you want those MIB files installed on the target
@@ -19,22 +20,21 @@ config BR2_PACKAGE_NETSNMP_ENABLE_MIBS
 config BR2_PACKAGE_NETSNMP_WITH_MIB_MODULES
 config BR2_PACKAGE_NETSNMP_WITH_MIB_MODULES
 	string "Build with these MIB modules"
 	string "Build with these MIB modules"
 	default "host ucd-snmp/dlmod agentx"
 	default "host ucd-snmp/dlmod agentx"
-	depends on BR2_PACKAGE_NETSNMP
 	help
 	help
 	  Specify which MIB modules to include.
 	  Specify which MIB modules to include.
 
 
 config BR2_PACKAGE_NETSNMP_WITHOUT_MIB_MODULES
 config BR2_PACKAGE_NETSNMP_WITHOUT_MIB_MODULES
 	string "Build without these MIB modules"
 	string "Build without these MIB modules"
 	default "disman/event disman/schedule utilities"
 	default "disman/event disman/schedule utilities"
-	depends on BR2_PACKAGE_NETSNMP
 	help
 	help
 	  Specify which MIB modules to exclude.
 	  Specify which MIB modules to exclude.
 
 
 config BR2_PACKAGE_NETSNMP_ENABLE_DEBUGGING
 config BR2_PACKAGE_NETSNMP_ENABLE_DEBUGGING
 	bool "Enable debugging code"
 	bool "Enable debugging code"
-	depends on BR2_PACKAGE_NETSNMP
 	help
 	help
 	  By default net-snmp is compiled without debugging support
 	  By default net-snmp is compiled without debugging support
 	  (--disable-debugging). Enable this options if you need debugging
 	  (--disable-debugging). Enable this options if you need debugging
 	  support, including the ability to log with DEBUGMSG(),
 	  support, including the ability to log with DEBUGMSG(),
 	  DEBUGMSGTL() and companion macros.
 	  DEBUGMSGTL() and companion macros.
+
+endif

+ 8 - 8
package/nfs-utils/Config.in

@@ -1,3 +1,8 @@
+comment "nfs-utils needs a toolchain w/ largefile, threads"
+	depends on BR2_USE_MMU
+	depends on !BR2_LARGEFILE || \
+		!(BR2_TOOLCHAIN_HAS_THREADS || BR2_TOOLCHAIN_HAS_NATIVE_RPC)
+
 config BR2_PACKAGE_NFS_UTILS
 config BR2_PACKAGE_NFS_UTILS
 	bool "nfs-utils"
 	bool "nfs-utils"
 	depends on BR2_TOOLCHAIN_HAS_NATIVE_RPC || BR2_TOOLCHAIN_HAS_THREADS # libtirpc
 	depends on BR2_TOOLCHAIN_HAS_NATIVE_RPC || BR2_TOOLCHAIN_HAS_THREADS # libtirpc
@@ -11,30 +16,25 @@ config BR2_PACKAGE_NFS_UTILS
 
 
 	  http://sourceforge.net/projects/nfs
 	  http://sourceforge.net/projects/nfs
 
 
-comment "nfs-utils needs a toolchain w/ largefile, threads"
-	depends on BR2_USE_MMU
-	depends on !BR2_LARGEFILE || \
-		!(BR2_TOOLCHAIN_HAS_THREADS || BR2_TOOLCHAIN_HAS_NATIVE_RPC)
+if BR2_PACKAGE_NFS_UTILS
 
 
 menu "NFS utilities selection"
 menu "NFS utilities selection"
-	depends on BR2_PACKAGE_NFS_UTILS
 
 
 config BR2_PACKAGE_NFS_UTILS_RPCDEBUG
 config BR2_PACKAGE_NFS_UTILS_RPCDEBUG
 	bool "rpcdebug"
 	bool "rpcdebug"
-	depends on BR2_PACKAGE_NFS_UTILS
 	help
 	help
 	  The RPC debugging utility
 	  The RPC debugging utility
 
 
 config BR2_PACKAGE_NFS_UTILS_RPC_LOCKD
 config BR2_PACKAGE_NFS_UTILS_RPC_LOCKD
 	bool "rpc.lockd"
 	bool "rpc.lockd"
-	depends on BR2_PACKAGE_NFS_UTILS
 	help
 	help
 	  NFS lock manager for Linux kernels older than 2.4
 	  NFS lock manager for Linux kernels older than 2.4
 
 
 config BR2_PACKAGE_NFS_UTILS_RPC_RQUOTAD
 config BR2_PACKAGE_NFS_UTILS_RPC_RQUOTAD
 	bool "rpc.rquotad"
 	bool "rpc.rquotad"
-	depends on BR2_PACKAGE_NFS_UTILS
 	help
 	help
 	  NFS remote quota server
 	  NFS remote quota server
 
 
 endmenu
 endmenu
+
+endif

+ 4 - 2
package/openssl/Config.in

@@ -9,9 +9,10 @@ config BR2_PACKAGE_OPENSSL
 
 
 	  http://www.openssl.org/
 	  http://www.openssl.org/
 
 
+if BR2_PACKAGE_OPENSSL
+
 config BR2_PACKAGE_OPENSSL_BIN
 config BR2_PACKAGE_OPENSSL_BIN
 	bool "openssl binary"
 	bool "openssl binary"
-	depends on BR2_PACKAGE_OPENSSL
 	# uses fork()
 	# uses fork()
 	depends on BR2_USE_MMU
 	depends on BR2_USE_MMU
 	help
 	help
@@ -20,6 +21,7 @@ config BR2_PACKAGE_OPENSSL_BIN
 
 
 config BR2_PACKAGE_OPENSSL_ENGINES
 config BR2_PACKAGE_OPENSSL_ENGINES
 	bool "openssl additional engines"
 	bool "openssl additional engines"
-	depends on BR2_PACKAGE_OPENSSL
 	help
 	help
 	  Install additional encryption engine libraries.
 	  Install additional encryption engine libraries.
+
+endif

+ 4 - 1
package/polarssl/Config.in

@@ -13,9 +13,10 @@ config BR2_PACKAGE_POLARSSL
 
 
 	  http://polarssl.org/
 	  http://polarssl.org/
 
 
+if BR2_PACKAGE_POLARSSL
+
 config BR2_PACKAGE_POLARSSL_PROGRAMS
 config BR2_PACKAGE_POLARSSL_PROGRAMS
 	bool "polarssl programs"
 	bool "polarssl programs"
-	depends on BR2_PACKAGE_POLARSSL
 	help
 	help
 	  This option enables the installation and the build of
 	  This option enables the installation and the build of
 	  PolarSSL companion programs: aescrypt2, benchmark, cert_app,
 	  PolarSSL companion programs: aescrypt2, benchmark, cert_app,
@@ -26,3 +27,5 @@ config BR2_PACKAGE_POLARSSL_PROGRAMS
 	  selftest, sha1sum, sha2sum, ssi-cgi, ssl_cert_test,
 	  selftest, sha1sum, sha2sum, ssi-cgi, ssl_cert_test,
 	  ssl_client1, ssl_client2, ssl_fork_server, ssl_mail_client,
 	  ssl_client1, ssl_client2, ssl_fork_server, ssl_mail_client,
 	  ssl_server, ssl_test
 	  ssl_server, ssl_test
+
+endif

+ 4 - 2
package/pppd/Config.in

@@ -7,8 +7,9 @@ config BR2_PACKAGE_PPPD
 
 
 	  http://www.samba.org/ppp/
 	  http://www.samba.org/ppp/
 
 
+if BR2_PACKAGE_PPPD
+
 config BR2_PACKAGE_PPPD_FILTER
 config BR2_PACKAGE_PPPD_FILTER
-	depends on BR2_PACKAGE_PPPD
 	select BR2_PACKAGE_LIBPCAP
 	select BR2_PACKAGE_LIBPCAP
 	bool "filtering"
 	bool "filtering"
 	help
 	help
@@ -17,11 +18,12 @@ config BR2_PACKAGE_PPPD_FILTER
 	  are available.
 	  are available.
 
 
 config BR2_PACKAGE_PPPD_RADIUS
 config BR2_PACKAGE_PPPD_RADIUS
-	depends on BR2_PACKAGE_PPPD
 	bool "radius"
 	bool "radius"
 	help
 	help
 	  Install RADIUS support for pppd
 	  Install RADIUS support for pppd
 
 
+endif
+
 comment "pppd needs a toolchain w/ dynamic library"
 comment "pppd needs a toolchain w/ dynamic library"
 	depends on BR2_PREFER_STATIC_LIB
 	depends on BR2_PREFER_STATIC_LIB
 	depends on BR2_USE_MMU
 	depends on BR2_USE_MMU

+ 4 - 1
package/proftpd/Config.in

@@ -6,8 +6,11 @@ config BR2_PACKAGE_PROFTPD
 
 
 	  http://www.proftpd.org/
 	  http://www.proftpd.org/
 
 
+if BR2_PACKAGE_PROFTPD
+
 config BR2_PACKAGE_PROFTPD_MOD_REWRITE
 config BR2_PACKAGE_PROFTPD_MOD_REWRITE
 	bool "mod_rewrite support"
 	bool "mod_rewrite support"
-	depends on BR2_PACKAGE_PROFTPD
 	help
 	help
 	  Compile ProFTPD with mod_rewrite support
 	  Compile ProFTPD with mod_rewrite support
+
+endif

+ 4 - 1
package/pulseaudio/Config.in

@@ -18,13 +18,16 @@ config BR2_PACKAGE_PULSEAUDIO
 
 
 	  http://pulseaudio.org
 	  http://pulseaudio.org
 
 
+if BR2_PACKAGE_PULSEAUDIO
+
 config BR2_PACKAGE_PULSEAUDIO_DAEMON
 config BR2_PACKAGE_PULSEAUDIO_DAEMON
 	bool "start as a system daemon"
 	bool "start as a system daemon"
-	depends on BR2_PACKAGE_PULSEAUDIO
 	help
 	help
 	  PulseAudio can be started as a system daemon. This is not the
 	  PulseAudio can be started as a system daemon. This is not the
 	  recommended way of using PulseAudio unless you are building a
 	  recommended way of using PulseAudio unless you are building a
 	  headless system.
 	  headless system.
 
 
+endif
+
 comment "pulseaudio needs a toolchain w/ wchar, largefile, threads"
 comment "pulseaudio needs a toolchain w/ wchar, largefile, threads"
 	depends on !BR2_USE_WCHAR || !BR2_LARGEFILE || !BR2_TOOLCHAIN_HAS_THREADS
 	depends on !BR2_USE_WCHAR || !BR2_LARGEFILE || !BR2_TOOLCHAIN_HAS_THREADS

+ 4 - 1
package/qtuio/Config.in

@@ -7,12 +7,15 @@ config BR2_PACKAGE_QTUIO
 
 
 	  https://github.com/x29a/qTUIO
 	  https://github.com/x29a/qTUIO
 
 
+if BR2_PACKAGE_QTUIO
+
 config BR2_QTUIO_EXAMPLES
 config BR2_QTUIO_EXAMPLES
 	bool "qtuio examples"
 	bool "qtuio examples"
-	depends on BR2_PACKAGE_QTUIO
 	help
 	help
 	  Build and install qtuio examples
 	  Build and install qtuio examples
 
 
+endif
+
 comment "qtuio depends on QT gui module"
 comment "qtuio depends on QT gui module"
 	depends on !BR2_PACKAGE_QT_GUI_MODULE
 	depends on !BR2_PACKAGE_QT_GUI_MODULE
 
 

+ 4 - 5
package/rsh-redone/Config.in

@@ -7,25 +7,24 @@ config BR2_PACKAGE_RSH_REDONE
 
 
 	  http://packages.debian.org/source/sid/rsh-redone
 	  http://packages.debian.org/source/sid/rsh-redone
 
 
+if BR2_PACKAGE_RSH_REDONE
+
 # this is incomplete in the source
 # this is incomplete in the source
 #config BR2_PACKAGE_RSH_REDONE_RCP
 #config BR2_PACKAGE_RSH_REDONE_RCP
 #	bool "rcp"
 #	bool "rcp"
-#	depends on BR2_PACKAGE_RSH_REDONE
 
 
 config BR2_PACKAGE_RSH_REDONE_RLOGIN
 config BR2_PACKAGE_RSH_REDONE_RLOGIN
 	bool "rlogin"
 	bool "rlogin"
-	depends on BR2_PACKAGE_RSH_REDONE
 
 
 # requires PAM
 # requires PAM
 #config BR2_PACKAGE_RSH_REDONE_RLOGIND
 #config BR2_PACKAGE_RSH_REDONE_RLOGIND
 #	bool "rlogind"
 #	bool "rlogind"
-#	depends on BR2_PACKAGE_RSH_REDONE
 
 
 config BR2_PACKAGE_RSH_REDONE_RSH
 config BR2_PACKAGE_RSH_REDONE_RSH
 	bool "rsh"
 	bool "rsh"
-	depends on BR2_PACKAGE_RSH_REDONE
 
 
 # requires PAM
 # requires PAM
 #config BR2_PACKAGE_RSH_REDONE_RSHD
 #config BR2_PACKAGE_RSH_REDONE_RSHD
 #	bool "rshd"
 #	bool "rshd"
-#	depends on BR2_PACKAGE_RSH_REDONE
+
+endif

+ 4 - 1
package/schifra/Config.in

@@ -8,11 +8,14 @@ config BR2_PACKAGE_SCHIFRA
 
 
 	  http://www.schifra.com/
 	  http://www.schifra.com/
 
 
+if BR2_PACKAGE_SCHIFRA
+
 config BR2_PACKAGE_SCHIFRA_EXAMPLES
 config BR2_PACKAGE_SCHIFRA_EXAMPLES
 	bool "schifra examples"
 	bool "schifra examples"
-	depends on BR2_PACKAGE_SCHIFRA
 	help
 	help
 	  Build and install the schifra example applications.
 	  Build and install the schifra example applications.
 
 
+endif
+
 comment "schifra needs a toolchain w/ C++"
 comment "schifra needs a toolchain w/ C++"
 	depends on !BR2_INSTALL_LIBSTDCPP
 	depends on !BR2_INSTALL_LIBSTDCPP

+ 4 - 1
package/sdl_image/Config.in

@@ -8,8 +8,9 @@ config BR2_PACKAGE_SDL_IMAGE
 
 
 	  http://www.libsdl.org/projects/SDL_image/
 	  http://www.libsdl.org/projects/SDL_image/
 
 
+if BR2_PACKAGE_SDL_IMAGE
+
 menu "SDL_image file format support"
 menu "SDL_image file format support"
-	depends on BR2_PACKAGE_SDL_IMAGE
 
 
 config BR2_PACKAGE_SDL_IMAGE_BMP
 config BR2_PACKAGE_SDL_IMAGE_BMP
 	bool "enable BMP file format support"
 	bool "enable BMP file format support"
@@ -56,3 +57,5 @@ config BR2_PACKAGE_SDL_IMAGE_XV
 	bool "enable XV file format support"
 	bool "enable XV file format support"
 
 
 endmenu
 endmenu
+
+endif

+ 4 - 1
package/sdl_sound/Config.in

@@ -12,9 +12,12 @@ config BR2_PACKAGE_SDL_SOUND
 
 
 	  http://icculus.org/SDL_sound/
 	  http://icculus.org/SDL_sound/
 
 
+if BR2_PACKAGE_SDL_SOUND
+
 config BR2_PACKAGE_SDL_SOUND_PLAYSOUND
 config BR2_PACKAGE_SDL_SOUND_PLAYSOUND
 	bool "install playsound tool"
 	bool "install playsound tool"
-	depends on BR2_PACKAGE_SDL_SOUND
 	help
 	help
 	  Enable this option to install the playsound/playsound_simple
 	  Enable this option to install the playsound/playsound_simple
 	  tools to target.
 	  tools to target.
+
+endif

+ 4 - 1
package/sg3_utils/Config.in

@@ -8,9 +8,12 @@ config BR2_PACKAGE_SG3_UTILS
 
 
 	  http://sg.danny.cz/sg/sg3_utils.html
 	  http://sg.danny.cz/sg/sg3_utils.html
 
 
+if BR2_PACKAGE_SG3_UTILS
+
 config BR2_PACKAGE_SG3_UTILS_PROGS
 config BR2_PACKAGE_SG3_UTILS_PROGS
 	bool "install programs"
 	bool "install programs"
-	depends on BR2_PACKAGE_SG3_UTILS
+
+endif
 
 
 comment "sg3-utils needs a toolchain w/ largefile, threads"
 comment "sg3-utils needs a toolchain w/ largefile, threads"
 	depends on !BR2_LARGEFILE || !BR2_TOOLCHAIN_HAS_THREADS
 	depends on !BR2_LARGEFILE || !BR2_TOOLCHAIN_HAS_THREADS

+ 6 - 2
package/speex/Config.in

@@ -8,13 +8,17 @@ config BR2_PACKAGE_SPEEX
 
 
 	  http://www.speex.org/
 	  http://www.speex.org/
 
 
+if BR2_PACKAGE_SPEEX
+
 config BR2_PACKAGE_SPEEX_ARM4
 config BR2_PACKAGE_SPEEX_ARM4
 	bool
 	bool
 	default y
 	default y
-	depends on BR2_PACKAGE_SPEEX && (BR2_arm7tdmi || BR2_arm720t || BR2_arm920t || BR2_arm922t || BR2_strongarm || BR2_fa526)
+	depends on BR2_arm7tdmi || BR2_arm720t || BR2_arm920t || BR2_arm922t || BR2_strongarm || BR2_fa526
 
 
 config BR2_PACKAGE_SPEEX_ARM5E
 config BR2_PACKAGE_SPEEX_ARM5E
 	default y
 	default y
 	bool
 	bool
-	depends on BR2_PACKAGE_SPEEX && BR2_arm && !BR2_PACKAGE_SPEEX_ARM4
+	depends on BR2_arm && !BR2_PACKAGE_SPEEX_ARM4
+
+endif
 
 

+ 4 - 2
package/taglib/Config.in

@@ -10,13 +10,15 @@ config BR2_PACKAGE_TAGLIB
 
 
 	  http://taglib.github.com
 	  http://taglib.github.com
 
 
+if BR2_PACKAGE_TAGLIB
+
 config BR2_PACKAGE_TAGLIB_MP4
 config BR2_PACKAGE_TAGLIB_MP4
-	depends on BR2_PACKAGE_TAGLIB
 	bool "taglib mp4 support"
 	bool "taglib mp4 support"
 
 
 config BR2_PACKAGE_TAGLIB_ASF
 config BR2_PACKAGE_TAGLIB_ASF
-	depends on BR2_PACKAGE_TAGLIB
 	bool "taglib wma support"
 	bool "taglib wma support"
 
 
+endif
+
 comment "taglib needs a toolchain w/ C++"
 comment "taglib needs a toolchain w/ C++"
 	depends on !BR2_INSTALL_LIBSTDCPP
 	depends on !BR2_INSTALL_LIBSTDCPP

+ 4 - 2
package/tcl/Config.in

@@ -5,10 +5,11 @@ config BR2_PACKAGE_TCL
 
 
 	  http://www.tcl.tk
 	  http://www.tcl.tk
 
 
+if BR2_PACKAGE_TCL
+
 config BR2_PACKAGE_TCL_DEL_ENCODINGS
 config BR2_PACKAGE_TCL_DEL_ENCODINGS
 	bool "delete encodings (saves 1.4Mb)"
 	bool "delete encodings (saves 1.4Mb)"
 	default y
 	default y
-	depends on BR2_PACKAGE_TCL
 	help
 	help
 	  Delete encoding files for TCL. If your programs do not use
 	  Delete encoding files for TCL. If your programs do not use
 	  various tcl character recoding functions, you may safely
 	  various tcl character recoding functions, you may safely
@@ -19,9 +20,10 @@ config BR2_PACKAGE_TCL_DEL_ENCODINGS
 config BR2_PACKAGE_TCL_SHLIB_ONLY
 config BR2_PACKAGE_TCL_SHLIB_ONLY
 	bool "install only shared library"
 	bool "install only shared library"
 	default y
 	default y
-	depends on BR2_PACKAGE_TCL
 	help
 	help
 	  Install only TCL shared library and not binary tcl
 	  Install only TCL shared library and not binary tcl
 	  interpreter(tclsh8.4).
 	  interpreter(tclsh8.4).
 
 
 	  Saves ~14kb.
 	  Saves ~14kb.
+
+endif

+ 4 - 1
package/tcpdump/Config.in

@@ -6,8 +6,11 @@ config BR2_PACKAGE_TCPDUMP
 
 
 	  http://www.tcpdump.org/
 	  http://www.tcpdump.org/
 
 
+if BR2_PACKAGE_TCPDUMP
+
 config BR2_PACKAGE_TCPDUMP_SMB
 config BR2_PACKAGE_TCPDUMP_SMB
 	bool "smb dump support"
 	bool "smb dump support"
-	depends on BR2_PACKAGE_TCPDUMP
 	help
 	help
 	  enable possibly-buggy SMB printer
 	  enable possibly-buggy SMB printer
+
+endif

+ 2 - 4
package/tiff/Config.in

@@ -60,16 +60,14 @@ config BR2_PACKAGE_TIFF_JBIG
 	default y
 	default y
 endmenu
 endmenu
 
 
-endif
-
 config BR2_PACKAGE_TIFF_TIFF2PDF
 config BR2_PACKAGE_TIFF_TIFF2PDF
 	bool "tiff2pdf"
 	bool "tiff2pdf"
-	depends on BR2_PACKAGE_TIFF
 	help
 	help
 	  tiff2pdf utility
 	  tiff2pdf utility
 
 
 config BR2_PACKAGE_TIFF_TIFFCP
 config BR2_PACKAGE_TIFF_TIFFCP
 	bool "tiffcp"
 	bool "tiffcp"
-	depends on BR2_PACKAGE_TIFF
 	help
 	help
 	  tiffcp utility
 	  tiffcp utility
+
+endif

+ 4 - 1
package/tzdata/Config.in

@@ -9,9 +9,10 @@ config BR2_PACKAGE_TZDATA
 
 
 	  http://www.iana.org/time-zones/repository/tz-link.html
 	  http://www.iana.org/time-zones/repository/tz-link.html
 
 
+if BR2_PACKAGE_TZDATA
+
 config BR2_PACKAGE_TZDATA_ZONELIST
 config BR2_PACKAGE_TZDATA_ZONELIST
 	string "Time zone list"
 	string "Time zone list"
-	depends on BR2_PACKAGE_TZDATA
 	default "default"
 	default "default"
 	help
 	help
 	  Space-separated list of time zones to compile.
 	  Space-separated list of time zones to compile.
@@ -21,3 +22,5 @@ config BR2_PACKAGE_TZDATA_ZONELIST
 
 
 	  The full list is the list of files in the time zone database source,
 	  The full list is the list of files in the time zone database source,
 	  not including the build and .tab files.
 	  not including the build and .tab files.
+
+endif

+ 4 - 3
package/udpcast/Config.in

@@ -13,19 +13,20 @@ comment "udpcast needs a toolchain w/ largefile, threads"
 	depends on BR2_USE_MMU
 	depends on BR2_USE_MMU
 	depends on !BR2_LARGEFILE || !BR2_TOOLCHAIN_HAS_THREADS
 	depends on !BR2_LARGEFILE || !BR2_TOOLCHAIN_HAS_THREADS
 
 
+if BR2_PACKAGE_UDPCAST
+
 menu "udpcast tools selection"
 menu "udpcast tools selection"
-depends on BR2_PACKAGE_UDPCAST
 
 
 config BR2_PACKAGE_UDPCAST_SENDER
 config BR2_PACKAGE_UDPCAST_SENDER
 	bool "sender"
 	bool "sender"
-	depends on BR2_PACKAGE_UDPCAST
 	help
 	help
 	  The udpcast transmitter.
 	  The udpcast transmitter.
 
 
 config BR2_PACKAGE_UDPCAST_RECEIVER
 config BR2_PACKAGE_UDPCAST_RECEIVER
 	bool "receiver"
 	bool "receiver"
-	depends on BR2_PACKAGE_UDPCAST
 	help
 	help
 	  The udpcast receiver.
 	  The udpcast receiver.
 
 
 endmenu
 endmenu
+
+endif

+ 4 - 1
package/usbutils/Config.in

@@ -7,9 +7,10 @@ config BR2_PACKAGE_USBUTILS
 
 
 	  http://linux-usb.sourceforge.net/
 	  http://linux-usb.sourceforge.net/
 
 
+if BR2_PACKAGE_USBUTILS
+
 config BR2_PACKAGE_USBUTILS_ZLIB
 config BR2_PACKAGE_USBUTILS_ZLIB
 	bool "compressed data support"
 	bool "compressed data support"
-	depends on BR2_PACKAGE_USBUTILS
 	select BR2_PACKAGE_ZLIB
 	select BR2_PACKAGE_ZLIB
 	help
 	help
 	  Enable use of zlib for a compressed usb.ids.gz
 	  Enable use of zlib for a compressed usb.ids.gz
@@ -17,5 +18,7 @@ config BR2_PACKAGE_USBUTILS_ZLIB
 	  filesystem, but it also makes lsusb slower since it has
 	  filesystem, but it also makes lsusb slower since it has
 	  to decompress the file every time it's run.
 	  to decompress the file every time it's run.
 
 
+endif
+
 comment "usbutils needs a toolchain w/ threads"
 comment "usbutils needs a toolchain w/ threads"
 	depends on !BR2_TOOLCHAIN_HAS_THREADS
 	depends on !BR2_TOOLCHAIN_HAS_THREADS

+ 4 - 1
package/vim/Config.in

@@ -8,10 +8,13 @@ config BR2_PACKAGE_VIM
 
 
 	  http://www.vim.org/
 	  http://www.vim.org/
 
 
+if BR2_PACKAGE_VIM
+
 config BR2_PACKAGE_VIM_RUNTIME
 config BR2_PACKAGE_VIM_RUNTIME
 	bool "install runtime"
 	bool "install runtime"
 	default y
 	default y
-	depends on BR2_PACKAGE_VIM
 	help
 	help
 	  Install VIM runtime (syntax highlighing + macros).
 	  Install VIM runtime (syntax highlighing + macros).
 	  This option adds about 15MB of data to /usr/share/
 	  This option adds about 15MB of data to /usr/share/
+
+endif

+ 4 - 1
package/wireless_tools/Config.in

@@ -5,8 +5,11 @@ config BR2_PACKAGE_WIRELESS_TOOLS
 
 
 	  http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html
 	  http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html
 
 
+if BR2_PACKAGE_WIRELESS_TOOLS
+
 config BR2_PACKAGE_WIRELESS_TOOLS_LIB
 config BR2_PACKAGE_WIRELESS_TOOLS_LIB
 	bool "Install shared library"
 	bool "Install shared library"
-	depends on BR2_PACKAGE_WIRELESS_TOOLS
 	help
 	help
 	  The shared library of wireless tools
 	  The shared library of wireless tools
+
+endif

+ 4 - 1
package/zeromq/Config.in

@@ -27,12 +27,15 @@ config BR2_PACKAGE_ZEROMQ
 
 
 	  http://www.zeromq.org/
 	  http://www.zeromq.org/
 
 
+if BR2_PACKAGE_ZEROMQ
+
 config BR2_PACKAGE_ZEROMQ_PGM
 config BR2_PACKAGE_ZEROMQ_PGM
 	bool "PGM/EPGM support"
 	bool "PGM/EPGM support"
-	depends on BR2_PACKAGE_ZEROMQ
 	depends on !BR2_avr32 # openpgm
 	depends on !BR2_avr32 # openpgm
 	select BR2_PACKAGE_OPENPGM
 	select BR2_PACKAGE_OPENPGM
 	help
 	help
 	  Add support for Pragmatic General Multicast protocol (RFC 3208)
 	  Add support for Pragmatic General Multicast protocol (RFC 3208)
 	  implemented either over raw IP packets or UDP datagrams
 	  implemented either over raw IP packets or UDP datagrams
 	  (encapsulated PGM). This requires OpenPGM library.
 	  (encapsulated PGM). This requires OpenPGM library.
+
+endif