1config BR2_PACKAGE_OSM2PGSQL
2	bool "osm2pgsql"
3	depends on BR2_ARCH_IS_64
4	depends on BR2_INSTALL_LIBSTDCPP # boost, libosmium, protozero
5	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # C++14
6	depends on BR2_TOOLCHAIN_HAS_THREADS # boost, libosmium
7	depends on BR2_TOOLCHAIN_SUPPORTS_ALWAYS_LOCKFREE_ATOMIC_INTS # boost-filesystem
8	depends on BR2_USE_WCHAR # boost, libosmium
9	depends on !BR2_TOOLCHAIN_HAS_GCC_BUG_64735 # std::future
10	select BR2_PACKAGE_BOOST
11	select BR2_PACKAGE_BOOST_SYSTEM
12	select BR2_PACKAGE_BOOST_FILESYSTEM
13	select BR2_PACKAGE_BZIP2
14	select BR2_PACKAGE_EXPAT
15	select BR2_PACKAGE_JSON_FOR_MODERN_CPP
16	select BR2_PACKAGE_LIBOSMIUM
17	select BR2_PACKAGE_PROTOZERO
18	select BR2_PACKAGE_ZLIB
19	help
20	  osm2pgsql is a tool for loading OpenStreetMap data into a
21	  PostgreSQL / PostGIS database suitable for applications like
22	  rendering into a map, geocoding with Nominatim,
23	  or general analysis.
24
25	  https://osm2pgsql.org
26
27comment "osm2pgsql needs a toolchain w/ C++, wchar, threads, gcc >= 4.9"
28	depends on BR2_ARCH_IS_64
29	depends on BR2_TOOLCHAIN_SUPPORTS_ALWAYS_LOCKFREE_ATOMIC_INTS
30	depends on !BR2_INSTALL_LIBSTDCPP || !BR2_USE_WCHAR || \
31		!BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 || !BR2_TOOLCHAIN_HAS_THREADS
32
33comment "osm2pgsql needs a toolchain not affected by GCC bug 64735"
34	depends on BR2_ARCH_IS_64
35	depends on BR2_TOOLCHAIN_HAS_GCC_BUG_64735
36