diff options
Diffstat (limited to 'crypto/pinentry/DEPENDS')
-rwxr-xr-x | crypto/pinentry/DEPENDS | 36 |
1 files changed, 22 insertions, 14 deletions
diff --git a/crypto/pinentry/DEPENDS b/crypto/pinentry/DEPENDS index 41b1e93630..25d201afde 100755 --- a/crypto/pinentry/DEPENDS +++ b/crypto/pinentry/DEPENDS @@ -1,15 +1,23 @@ depends pkgconfig && -optional_depends gtk+ \ - "" \ - "--disable-pinentry-gtk" \ - "to build GTK+ pinentry" && - -optional_depends gtk+2 \ - "" \ - "--disable-pinentry-gtk2" \ - "to build GTK+2 pinentry" && - -optional_depends qt4 \ - "--enable-pinentry-qt4" \ - "--disable-pinentry-qt4" \ - "to build Qt4 pinentry" + +optional_depends libx11 \ + "--with-x" \ + "--without-x --disable-pinentry-gtk --disable-pinentry-gtk2 --disable-pinentry-qt --disable-pinentry-qt4" \ + "for X11 support (needed for GTK+/GTK+2/QT4 support)" && + +if is_depends_enabled "$SPELL" "libx11"; then + optional_depends gtk+ \ + "" \ + "--disable-pinentry-gtk" \ + "to build GTK+ pinentry" && + + optional_depends gtk+2 \ + "" \ + "--disable-pinentry-gtk2" \ + "to build GTK+2 pinentry" && + + optional_depends qt4 \ + "--enable-pinentry-qt4" \ + "--disable-pinentry-qt4" \ + "to build Qt4 pinentry" +fi |