source "package/libloki/Config.in"
source "package/libnpth/Config.in"
source "package/libnspr/Config.in"
+ source "package/libosmium/Config.in"
source "package/libpfm4/Config.in"
source "package/libplatform/Config.in"
source "package/libplist/Config.in"
--- /dev/null
+config BR2_PACKAGE_LIBOSMIUM
+ bool "libosmium"
+ depends on BR2_INSTALL_LIBSTDCPP
+ depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 # C++11
+ depends on BR2_TOOLCHAIN_HAS_THREADS # boost
+ depends on BR2_USE_WCHAR # boost
+ select BR2_PACKAGE_BOOST
+ select BR2_PACKAGE_PROTOZERO
+ help
+ A fast and flexible C++ library for working with OpenStreetMap
+ data. Libosmium works on Linux, macOS and Windows.
+
+ https://osmcode.org/libosmium/
+
+comment "libosmium needs a toolchain w/ C++, wchar, threads, gcc >= 4.7"
+ depends on !BR2_INSTALL_LIBSTDCPP || !BR2_USE_WCHAR || \
+ !BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 || !BR2_TOOLCHAIN_HAS_THREADS
--- /dev/null
+################################################################################
+#
+# libosmium
+#
+################################################################################
+
+LIBOSMIUM_VERSION = 2.17.0
+LIBOSMIUM_SITE = $(call github,osmcode,libosmium,v$(LIBOSMIUM_VERSION))
+LIBOSMIUM_LICENSE = BSL-1.0
+LIBOSMIUM_LICENSE_FILES = LICENSE
+LIBOSMIUM_INSTALL_STAGING = YES
+LIBOSMIUM_DEPENDENCIES = boost protozero
+
+ifeq ($(BR2_PACKAGE_BZIP2),y)
+LIBOSMIUM_DEPENDENCIES += bzip2
+endif
+
+ifeq ($(BR2_PACKAGE_EXPAT),y)
+LIBOSMIUM_DEPENDENCIES += expat
+endif
+
+ifeq ($(BR2_PACKAGE_LIBGEOS),y)
+LIBOSMIUM_DEPENDENCIES += libgeos
+endif
+
+ifeq ($(BR2_PACKAGE_LZ4),y)
+LIBOSMIUM_DEPENDENCIES += lz4
+endif
+
+ifeq ($(BR2_PACKAGE_PROJ),y)
+LIBOSMIUM_DEPENDENCIES += proj
+endif
+
+ifeq ($(BR2_PACKAGE_ZLIB),y)
+LIBOSMIUM_DEPENDENCIES += zlib
+endif
+
+$(eval $(cmake-package))