xref: /OK3568_Linux_fs/buildroot/package/pinentry/Config.in (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1menuconfig BR2_PACKAGE_PINENTRY
2	bool "pinentry"
3	depends on BR2_PACKAGE_LIBGPG_ERROR_ARCH_SUPPORTS # libgpg-error
4	depends on BR2_USE_MMU # libassuan
5	select BR2_PACKAGE_LIBASSUAN
6	select BR2_PACKAGE_LIBGPG_ERROR
7	# At least one backend is needed to avoid build breakage
8	select BR2_PACKAGE_PINENTRY_NCURSES if \
9		!BR2_PACKAGE_PINENTRY_GTK2 && \
10		!BR2_PACKAGE_PINENTRY_QT5
11	help
12	  A collection of simple PIN or pass-phrase entry dialogs
13
14	  https://www.gnupg.org/related_software/pinentry/
15
16if BR2_PACKAGE_PINENTRY
17
18config BR2_PACKAGE_PINENTRY_EFL
19	bool "pinentry-efl"
20	depends on BR2_PACKAGE_EFL
21	depends on BR2_PACKAGE_XORG7
22	select BR2_PACKAGE_EFL_X_XLIB
23	help
24	  The pinentry-efl tool
25
26comment "pinentry-efl needs efl and X"
27	depends on !BR2_PACKAGE_EFL || !BR2_PACKAGE_XORG7
28
29config BR2_PACKAGE_PINENTRY_FLTK
30	bool "pinentry-fltk"
31	depends on BR2_USE_MMU # fltk
32	depends on BR2_INSTALL_LIBSTDCPP # fltk
33	depends on BR2_PACKAGE_XORG7 # fltk
34	select BR2_PACKAGE_FLTK
35	help
36	  The pinentry-fltk tool
37
38comment "pinentry-fltk needs X and a toolchain w/ C++"
39	depends on BR2_USE_MMU
40	depends on !BR2_PACKAGE_XORG7 || !BR2_INSTALL_LIBSTDCPP
41
42config BR2_PACKAGE_PINENTRY_NCURSES
43	bool "pinentry-ncurses"
44	select BR2_PACKAGE_NCURSES
45	select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE
46	help
47	  The pinentry-ncurses tool
48
49config BR2_PACKAGE_PINENTRY_GTK2
50	bool "pinentry-gtk2"
51	depends on BR2_PACKAGE_XORG7
52	depends on BR2_USE_WCHAR
53	depends on BR2_TOOLCHAIN_HAS_THREADS
54	depends on BR2_USE_MMU
55	depends on BR2_INSTALL_LIBSTDCPP
56	depends on BR2_TOOLCHAIN_HAS_SYNC_4 # libgtk2 -> pango -> harfbuzz
57	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 # libgtk2 -> pango -> harfbuzz
58	select BR2_PACKAGE_LIBGTK2
59	select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE
60	help
61	  The pinentry-gtk2 tool
62
63comment "pinentry-gtk2 needs X and a toolchain w/ wchar, threads, C++, gcc >= 4.8"
64	depends on BR2_USE_MMU
65	depends on BR2_TOOLCHAIN_HAS_SYNC_4
66	depends on !BR2_PACKAGE_XORG7 || !BR2_USE_WCHAR || \
67		!BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 || \
68		!BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS
69
70config BR2_PACKAGE_PINENTRY_QT5
71	bool "pinentry-qt5"
72	depends on BR2_INSTALL_LIBSTDCPP
73	depends on BR2_USE_WCHAR
74	depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL
75	depends on BR2_HOST_GCC_AT_LEAST_5
76	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_5
77	depends on !BR2_arc
78	depends on !BR2_STATIC_LIBS
79	select BR2_PACKAGE_QT5
80	select BR2_PACKAGE_QT5BASE_GUI
81	select BR2_PACKAGE_QT5BASE_WIDGETS
82	help
83	  The pinentry-qt5 tool
84
85comment "pinentry-qt5 needs a host gcc >= 5.0, and a toolchain w/ wchar, NPTL, gcc >= 5.0, C++, dynamic library"
86	depends on !BR2_arc
87	depends on !BR2_INSTALL_LIBSTDCPP || !BR2_USE_WCHAR || \
88		!BR2_TOOLCHAIN_HAS_THREADS_NPTL || !BR2_TOOLCHAIN_GCC_AT_LEAST_5 || \
89		BR2_STATIC_LIBS || !BR2_HOST_GCC_AT_LEAST_5
90
91endif
92