1config BR2_PACKAGE_P7ZIP
2	bool "p7zip"
3	depends on BR2_TOOLCHAIN_HAS_SYNC_4 # __sync_*_4 intrisics
4	depends on BR2_INSTALL_LIBSTDCPP
5	depends on BR2_TOOLCHAIN_HAS_THREADS
6	depends on BR2_USE_WCHAR
7	help
8	  p7zip is a quick port of the command line version of 7-zip
9	  for Unix (see http://www.7-zip.org)
10
11	  7-Zip is a file archiver with highest compression ratio.
12
13	  https://github.com/p7zip-project/p7zip
14
15if BR2_PACKAGE_P7ZIP
16
17choice
18	prompt "p7zip binary"
19	default BR2_PACKAGE_P7ZIP_7ZR
20
21config BR2_PACKAGE_P7ZIP_7ZA
22	bool "7za"
23	help
24	  Full 7za archiver. The program supports 7z, ZIP, CAB, ARJ,
25	  GZIP, BZIP2, TAR, CPIO, RPM and DEB formats
26
27config BR2_PACKAGE_P7ZIP_7ZR
28	bool "7zr"
29	help
30	  Lightweight 7zr archiver. The program only handles 7z archives
31	  and cannot handle encrypted archives
32
33endchoice
34
35endif
36
37comment "p7zip needs a toolchain w/ threads, wchar, C++"
38	depends on BR2_TOOLCHAIN_HAS_SYNC_4
39	depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_USE_WCHAR || !BR2_INSTALL_LIBSTDCPP
40