kumquat-buildroot/package/osm2pgsql/osm2pgsql.mk
Fabrice Fontaine d4811802ac package/osm2pgsql: disable external fmt
osm2pgsql doesn't support fmt > 8.0 yet resulting in the following build
failure since bump of fmt to version 8.1.1 in commit
ec7fd50d08:

/home/buildroot/autobuild/instance-0/output-1/host/aarch64-buildroot-linux-gnu/sysroot/usr/include/fmt/core.h:1728:7: error: static assertion failed: Cannot format an argument. To make type T formattable provide a formatter<T> specialization: https://fmt.dev/latest/api.html#udt
 1728 |       formattable,
      |       ^~~~~~~~~~~

Fixes:
 - http://autobuild.buildroot.org/results/5af1a0ea176559a5dc787ba945a3a83823f5b1bb

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Reviewed-by: Maxim Kochetkov <fido_max@inbox.ru>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
2022-03-07 22:52:33 +01:00

41 lines
1.1 KiB
Makefile

################################################################################
#
# osm2pgsql
#
################################################################################
OSM2PGSQL_VERSION = 1.6.0
OSM2PGSQL_SITE = $(call github,openstreetmap,osm2pgsql,$(OSM2PGSQL_VERSION))
OSM2PGSQL_LICENSE = GPL-2.0+
OSM2PGSQL_LICENSE_FILES = COPYING
OSM2PGSQL_SUPPORTS_IN_SOURCE_BUILD = NO
OSM2PGSQL_DEPENDENCIES = boost bzip2 expat libosmium postgresql protozero zlib
# fmt > 8.0 is not yet supported
OSM2PGSQL_CONF_OPTS = \
-DBUILD_TESTS=OFF \
-DBUILD_COVERAGE=OFF \
-DEXTERNAL_FMT=OFF \
-DEXTERNAL_LIBOSMIUM=ON \
-DEXTERNAL_PROTOZERO=ON
ifeq ($(BR2_PACKAGE_LUAJIT),y)
OSM2PGSQL_DEPENDENCIES += luajit
OSM2PGSQL_CONF_OPTS += -DWITH_LUA=ON -DWITH_LUAJIT=ON
else ifeq ($(BR2_PACKAGE_LUA),y)
OSM2PGSQL_DEPENDENCIES += lua
OSM2PGSQL_CONF_OPTS += -DWITH_LUA=ON -DWITH_LUAJIT=OFF
else
OSM2PGSQL_CONF_OPTS += -DWITH_LUA=OFF -DWITH_LUAJIT=OFF
endif
ifeq ($(BR2_PACKAGE_PROJ),y)
OSM2PGSQL_DEPENDENCIES += proj
OSM2PGSQL_CONF_OPTS += -DUSE_PROJ_LIB=auto
else
OSM2PGSQL_CONF_OPTS += -DUSE_PROJ_LIB=off
endif
$(eval $(cmake-package))