depends  bc            &&
depends  libice        &&
depends  libx11        &&
depends  libxxf86misc  &&
depends  libxxf86vm "--with-xf86vmode-ext" &&
depends  libxi         &&
depends  libxmu        &&
depends  libxrender    &&
depends  libxt         &&
depends  zlib          &&
depends  freetype2 "--with-xft" &&

depends  gtk+3        "--with-gtk"    &&
depends  gdk-pixbuf2 "--with-pixbuf" &&
depends  gdk-pixbuf-xlib             &&


message  "${MESSAGE_COLOR}The xscreensaver demo program allows you to"    \
         "browse among the different effects available in xscreensaver."  \
         "${DEFAULT_COLOR}"                                               &&
optional_depends  libglade2 '' '' 'Enable xscreensaver demo?'             &&

optional_depends  -sub 'CHKPWDSUID' linux-pam                   \
                  "--with-pam"                                  \
                  "--without-pam"                               \
                  "for Pluggable Authentication Modules (PAM)"  &&

optional_depends  krb5                                          \
                  "--with-kerberos"                             \
                  "--without-kerberos"                          \
                  "for Kerberos authentication support"         &&

optional_depends  shadow                                        \
                  "--with-shadow"                               \
                  "--without-shadow"                            \
                  "for shadow password authentication support"  &&

optional_depends  gdm2                                          \
                  "--with-login-manager"                        \
                  "--without-login-manager"                     \
                  "for login manager support"                   &&

optional_depends  libgnome                                      \
                  ""                                            \
                  ""                                            \
                  "use gnome-open to open stuff?"               &&

optional_depends  GLUT                                          \
                  "--with-gl"                                   \
                  "--without-gl"                                \
                  "for OpenGL/GLUT screensavers"                &&

optional_depends  libgle                                        \
                  "--with-gle"                                  \
                  "--without-gle"                               \
                  "Enable GLE OpenGL tubing and extrusion"      &&

optional_depends  libpng                                        \
                  "--with-png"                                  \
                  "--without-png"                               \
                  "Include support for PNG files?"              &&

optional_depends  JPEG                                          \
                  "--with-jpeg"                                 \
                  "--without-jpeg"                              \
                  "for JPEG image support"                      &&

optional_depends  WEB-BROWSER                                   \
                  ""                                            \
                  ""                                            \
                  "Which browser to use for help"               &&

optional_depends  libxext                                              \
                  "--with-dpms-ext --with-xshm-ext --with-xdbe-ext"    \
                  "--without-dpms-ext --with-xshm-ext --with-xdbe-ext" \
                  "Enable power mgmt, shared mem and double buffer support?" &&

optional_depends  libxrandr                                     \
                  "--with-randr-ext"                            \
                  "--without-randr-ext"                         \
                  "Include support for the X Resize+Rotate extension?" &&

optional_depends  libxinerama                                   \
                  "--with-xinerama-ext"                         \
                  "--without-xinerama-ext"                      \
                  "Enable Xinerama multihead support?"          &&

optional_depends  xinput                                        \
                  "--with-xinput-ext"                           \
                  "--without-xinput-ext"                        \
                  "Enable XInput2 support?"                     &&

suggest_depends  xplanet                                        \
                  ""                                            \
                  ""                                            \
                  "support for xplanet screensaver"             &&
suggest_depends  xsnow                                          \
                  ""                                            \
                  ""                                            \
                  "support for xsnow screensaver"               &&
suggest_depends  xmountains                                     \
                  ""                                            \
                  ""                                            \
                  "support for xmountains screensaver"          &&
suggest_depends  xearth                                         \
                  ""                                            \
                  ""                                            \
                  "support for xearth screensaver"              &&
suggest_depends  xdaliclock                                     \
                  ""                                            \
                  ""                                            \
                  "support for xdaliclock screensaver"          &&
suggest_depends  electricsheep                                  \
                  ""                                            \
                  ""                                            \
                  "support for ElectricSheep screensaver"       &&
optional_depends  systemd                                       \
                  "--with-systemd"                              \
                  "--without-systemd"                           \
                  "build xscreensaver-systemd to lock on suspend" &&
optional_depends  elogind                                       \
                  "--with-elogind"                              \
                  "--without-elogind"                           \
                  "use elogin instead of systemd for lock on suspend"


