generated from gaoyang3513/SDK_RK3288
[Mod] First commit
This commit is contained in:
@ -0,0 +1,32 @@
|
||||
From caee28d84685071da3ff3a4ea57ff0b6ae64fc87 Mon Sep 17 00:00:00 2001
|
||||
From: SpaceIm <30052553+SpaceIm@users.noreply.github.com>
|
||||
Date: Sat, 28 Mar 2020 19:08:40 +0100
|
||||
Subject: [PATCH] allow building static libs (#183)
|
||||
|
||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
[Retrieved from:
|
||||
https://github.com/libspatialindex/libspatialindex/commit/caee28d84685071da3ff3a4ea57ff0b6ae64fc87]
|
||||
---
|
||||
CMakeLists.txt | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index c34ee8d..3bfac51 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -43,7 +43,6 @@ SET(SIDX_VERSION_MINOR "9")
|
||||
SET(SIDX_VERSION_PATCH "3")
|
||||
SET(SIDX_LIB_VERSION "6.1.1")
|
||||
SET(SIDX_LIB_SOVERSION "6")
|
||||
-SET(BUILD_SHARED_LIBS ON)
|
||||
|
||||
|
||||
set(SIDX_VERSION_STRING "${SIDX_VERSION_MAJOR}.${SIDX_VERSION_MINOR}.${SIDX_VERSION_PATCH}")
|
||||
@@ -52,6 +51,7 @@ set(SIDX_VERSION_STRING "${SIDX_VERSION_MAJOR}.${SIDX_VERSION_MINOR}.${SIDX_VERS
|
||||
# libspatialindex general cmake options
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
+option(BUILD_SHARED_LIBS "Build shared libraries" ON)
|
||||
option(SIDX_BUILD_TESTS "Enables integrated test suites" OFF)
|
||||
|
||||
|
||||
@ -0,0 +1,30 @@
|
||||
From 26d417b9f981cf9a6df42d89fd297539b96180cb Mon Sep 17 00:00:00 2001
|
||||
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
Date: Fri, 24 Apr 2020 18:03:31 +0200
|
||||
Subject: [PATCH] CMakeLists.txt: fix CMAKE_BUILD_TYPE (#188)
|
||||
|
||||
The user is unable to override CMAKE_BUILD_TYPE since version 1.9.1 and
|
||||
https://github.com/libspatialindex/libspatialindex/commit/e3bcccf38d9f100b59ccf29f7e1cfa174969decd
|
||||
|
||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
[Retrieved from:
|
||||
https://github.com/libspatialindex/libspatialindex/commit/26d417b9f981cf9a6df42d89fd297539b96180cb]
|
||||
---
|
||||
CMakeLists.txt | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 191ac72..84676a2 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -93,8 +93,10 @@ INCLUDE (CheckIncludeFiles)
|
||||
|
||||
# note we default to RelWithDebInfo mode
|
||||
if(NOT MSVC_IDE)
|
||||
+ if(NOT CMAKE_BUILD_TYPE)
|
||||
set(CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING
|
||||
"Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel" FORCE)
|
||||
+ endif()
|
||||
message(STATUS "Setting libspatialindex build type - ${CMAKE_BUILD_TYPE}")
|
||||
endif()
|
||||
|
||||
31
package/libspatialindex/Config.in
Normal file
31
package/libspatialindex/Config.in
Normal file
@ -0,0 +1,31 @@
|
||||
config BR2_PACKAGE_LIBSPATIALINDEX
|
||||
bool "libspatialindex"
|
||||
depends on BR2_INSTALL_LIBSTDCPP
|
||||
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 # C++11
|
||||
help
|
||||
The purpose of libspatialindex is to provide:
|
||||
|
||||
* An extensible framework that will support robust spatial
|
||||
indexing methods.
|
||||
|
||||
* Support for sophisticated spatial queries. Range, point
|
||||
location, nearest neighbor and k-nearest neighbor as well
|
||||
as parametric queries (defined by spatial constraints)
|
||||
should be easy to deploy and run.
|
||||
|
||||
* Easy to use interfaces for inserting, deleting and updating
|
||||
information.
|
||||
|
||||
* Wide variety of customization capabilities. Basic index and
|
||||
storage characteristics like the page size, node capacity,
|
||||
minimum fan-out, splitting algorithm, etc. should be easy
|
||||
to customize.
|
||||
|
||||
* Index persistence. Internal memory and external memory
|
||||
structures should be supported. Clustered and non-clustered
|
||||
indices should be easy to be persisted.
|
||||
|
||||
https://libspatialindex.github.io
|
||||
|
||||
comment "libspatialindex needs a toolchain w/ C++, gcc >= 4.7"
|
||||
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_7
|
||||
5
package/libspatialindex/libspatialindex.hash
Normal file
5
package/libspatialindex/libspatialindex.hash
Normal file
@ -0,0 +1,5 @@
|
||||
# From https://github.com/libspatialindex/libspatialindex/releases/download/1.9.3/spatialindex-src-1.9.3.tar.bz2.sha512sum
|
||||
sha512 7922807a2f7026542a014d3d7943da5410429b291cf469267ffea5b8075eab2a94e68b6c013425615d221b930fd319c403f3bf43404c9b1d2c92d0e2baae3066 spatialindex-src-1.9.3.tar.bz2
|
||||
|
||||
# Hash for license file
|
||||
sha256 b63ebfaca9d7ce582580f3e11acabc9d2e37c46ce234533f7fa8a6c7278898a0 COPYING
|
||||
24
package/libspatialindex/libspatialindex.mk
Normal file
24
package/libspatialindex/libspatialindex.mk
Normal file
@ -0,0 +1,24 @@
|
||||
################################################################################
|
||||
#
|
||||
# libspatialindex
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LIBSPATIALINDEX_VERSION = 1.9.3
|
||||
LIBSPATIALINDEX_SITE = \
|
||||
https://github.com/libspatialindex/libspatialindex/releases/download/$(LIBSPATIALINDEX_VERSION)
|
||||
LIBSPATIALINDEX_SOURCE = spatialindex-src-$(LIBSPATIALINDEX_VERSION).tar.bz2
|
||||
LIBSPATIALINDEX_INSTALL_STAGING = YES
|
||||
LIBSPATIALINDEX_LICENSE = MIT
|
||||
LIBSPATIALINDEX_LICENSE_FILES = COPYING
|
||||
|
||||
LIBSPATIALINDEX_CXXFLAGS = $(TARGET_CXXFLAGS)
|
||||
LIBSPATIALINDEX_CONF_OPTS = \
|
||||
-DSIDX_BUILD_TESTS=OFF \
|
||||
-DCMAKE_CXX_FLAGS="$(LIBSPATIALINDEX_CXXFLAGS)"
|
||||
|
||||
ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_68485),y)
|
||||
LIBSPATIALINDEX_CXXFLAGS += -O0
|
||||
endif
|
||||
|
||||
$(eval $(cmake-package))
|
||||
Reference in New Issue
Block a user