57aba033e6
- Switch to cmake-package as autotools has been removed since version
9.0.0
- This bump will fix the following build failure with gcc 13 thanks to
b0b8937c56
:
In file included from proj_json_streaming_writer.cpp:34:
proj_json_streaming_writer.hpp:42:14: error: 'int64_t' in namespace 'std' does not name a type
42 | typedef std::int64_t GIntBig;
| ^~~~~~~
https://github.com/OSGeo/PROJ/blob/9.3.0/NEWS
Fixes:
- http://autobuild.buildroot.org/results/68416dcbed1ece589a7438b085f57064fc20f87d
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
42 lines
945 B
Makefile
42 lines
945 B
Makefile
################################################################################
|
|
#
|
|
# proj
|
|
#
|
|
################################################################################
|
|
|
|
PROJ_VERSION = 9.3.0
|
|
PROJ_SITE = http://download.osgeo.org/proj
|
|
PROJ_LICENSE = MIT
|
|
PROJ_LICENSE_FILES = COPYING
|
|
PROJ_INSTALL_STAGING = YES
|
|
PROJ_DEPENDENCIES = host-pkgconf host-sqlite sqlite
|
|
|
|
PROJ_CFLAGS = $(TARGET_CFLAGS)
|
|
PROJ_CXXFLAGS = $(TARGET_CXXFLAGS)
|
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_68485),y)
|
|
PROJ_CFLAGS += -O0
|
|
PROJ_CXXFLAGS += -O0
|
|
endif
|
|
|
|
PROJ_CONF_OPTS = \
|
|
-DBUILD_APPS=OFF \
|
|
-DCMAKE_C_FLAGS="$(PROJ_CFLAGS)" \
|
|
-DCMAKE_CXX_FLAGS="$(PROJ_CXXFLAGS)"
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBCURL),y)
|
|
PROJ_DEPENDENCIES += libcurl
|
|
PROJ_CONF_OPTS += -DENABLE_CURL=ON
|
|
else
|
|
PROJ_CONF_OPTS += -DENABLE_CURL=OFF
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_TIFF),y)
|
|
PROJ_DEPENDENCIES += tiff
|
|
PROJ_CONF_OPTS += -DENABLE_TIFF=ON
|
|
else
|
|
PROJ_CONF_OPTS += -DENABLE_TIFF=OFF
|
|
endif
|
|
|
|
$(eval $(cmake-package))
|