diff options
| author | Alexander Neumann <30894796+Neumann-A@users.noreply.github.com> | 2019-08-21 12:00:35 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-08-21 12:00:35 +0200 |
| commit | 18d61a3fb140ac1f4d9d605e02fdd614e1c2ff14 (patch) | |
| tree | ef87d17ad7f6648a47c3367bf2acca5197a107dd /ports/libspatialindex | |
| parent | 70f4aabbe8bf5273e11a03f804d4361354cf0a11 (diff) | |
| parent | e5bf7eae99f3be342bfdd7a3c999daba62d4436a (diff) | |
| download | vcpkg-18d61a3fb140ac1f4d9d605e02fdd614e1c2ff14.tar.gz vcpkg-18d61a3fb140ac1f4d9d605e02fdd614e1c2ff14.zip | |
Merge branch 'master' into path_separator
Diffstat (limited to 'ports/libspatialindex')
| -rw-r--r-- | ports/libspatialindex/CONTROL | 6 | ||||
| -rw-r--r-- | ports/libspatialindex/portfile.cmake | 27 | ||||
| -rw-r--r-- | ports/libspatialindex/static.patch | 21 |
3 files changed, 54 insertions, 0 deletions
diff --git a/ports/libspatialindex/CONTROL b/ports/libspatialindex/CONTROL new file mode 100644 index 000000000..aa1da63c1 --- /dev/null +++ b/ports/libspatialindex/CONTROL @@ -0,0 +1,6 @@ +Source: libspatialindex +Version: 1.9.0 +Homepage: http://libspatialindex.github.com +Description: C++ implementation of R*-tree, an MVR-tree and a TPR-tree with C API. +Build-Depends: zlib + diff --git a/ports/libspatialindex/portfile.cmake b/ports/libspatialindex/portfile.cmake new file mode 100644 index 000000000..f71182d62 --- /dev/null +++ b/ports/libspatialindex/portfile.cmake @@ -0,0 +1,27 @@ +include(vcpkg_common_functions) + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO libspatialindex/libspatialindex + REF 1.9.0 + SHA512 368537e9bfe52db96486a1febfabe035f9f7714fd1cb50450e3ab89d51c5ffffb0e2ea219e08bee34f772ba9813a3a7f9e63d8b8946887ce83811ef68d17d1cc + HEAD_REF master + PATCHES + static.patch +) + +vcpkg_configure_cmake( + SOURCE_PATH ${SOURCE_PATH} + OPTIONS -DCMAKE_DEBUG_POSTFIX=d -DSIDX_BUILD_TESTS:BOOL=OFF +) + +vcpkg_install_cmake() + +vcpkg_copy_pdbs() + +#Debug +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) + +# Handle copyright +file(COPY ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/libspatialindex) +file(RENAME ${CURRENT_PACKAGES_DIR}/share/libspatialindex/COPYING ${CURRENT_PACKAGES_DIR}/share/libspatialindex/copyright)
\ No newline at end of file diff --git a/ports/libspatialindex/static.patch b/ports/libspatialindex/static.patch new file mode 100644 index 000000000..bf783bcca --- /dev/null +++ b/ports/libspatialindex/static.patch @@ -0,0 +1,21 @@ +diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt +index e6b733bd..8f227ab0 100644 +--- a/src/CMakeLists.txt ++++ b/src/CMakeLists.txt +@@ -194,9 +194,13 @@ if (NOT WITH_STATIC_LASZIP) + endif() + endif() + +-add_library(${SIDX_LIB_NAME} SHARED ${SIDX_SOURCES}) +- +-add_library(${SIDX_C_LIB_NAME} SHARED ${SIDX_CAPI_CPP}) ++if(BUILD_SHARED_LIBS) ++ add_library(${SIDX_LIB_NAME} SHARED ${SIDX_SOURCES}) ++ add_library(${SIDX_C_LIB_NAME} SHARED ${SIDX_CAPI_CPP}) ++else(BUILD_SHARED_LIBS) ++ add_library(${SIDX_LIB_NAME} STATIC ${SIDX_SOURCES}) ++ add_library(${SIDX_C_LIB_NAME} STATIC ${SIDX_CAPI_CPP}) ++endif(BUILD_SHARED_LIBS) + + target_link_libraries(${SIDX_C_LIB_NAME} + ${SIDX_LIB_NAME} |
