From: Maxim Kochetkov Date: Wed, 28 Apr 2021 04:12:14 +0000 (+0300) Subject: package/libosmium: new package X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=aaf3322c2862a1cea6df1e597bb1774cd5929fef;p=buildroot.git package/libosmium: new package A fast and flexible C++ library for working with OpenStreetMap data. Libosmium works on Linux, macOS and Windows. https://osmcode.org/libosmium/ Signed-off-by: Maxim Kochetkov Signed-off-by: Thomas Petazzoni --- diff --git a/DEVELOPERS b/DEVELOPERS index 7fa4851627..e8bb9fd54a 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -1864,6 +1864,7 @@ N: Max Filippov F: arch/Config.in.xtensa N: Maxim Kochetkov +F: package/libosmium/ F: package/postgis/ F: package/protozero/ F: package/timescaledb/ diff --git a/package/Config.in b/package/Config.in index 9ced0a139e..48ddbb63b2 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1938,6 +1938,7 @@ menu "Other" 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" diff --git a/package/libosmium/Config.in b/package/libosmium/Config.in new file mode 100644 index 0000000000..9f002d3516 --- /dev/null +++ b/package/libosmium/Config.in @@ -0,0 +1,17 @@ +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 diff --git a/package/libosmium/libosmium.hash b/package/libosmium/libosmium.hash new file mode 100644 index 0000000000..05d898bc7f --- /dev/null +++ b/package/libosmium/libosmium.hash @@ -0,0 +1,3 @@ +# Locally calculated +sha256 4a7672d7caf4da3bc68619912b298462370c423c697871a0be6273c6686e10d6 libosmium-2.17.0.tar.gz +sha256 c9bff75738922193e67fa726fa225535870d2aa1059f91452c411736284ad566 LICENSE diff --git a/package/libosmium/libosmium.mk b/package/libosmium/libosmium.mk new file mode 100644 index 0000000000..3beca73c4a --- /dev/null +++ b/package/libosmium/libosmium.mk @@ -0,0 +1,38 @@ +################################################################################ +# +# 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))