early-access version 2853
This commit is contained in:
21
externals/vcpkg/ports/lerc/create_package.patch
vendored
Executable file
21
externals/vcpkg/ports/lerc/create_package.patch
vendored
Executable file
@@ -0,0 +1,21 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index e90fcdd..17c79e8 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -26,9 +26,16 @@ add_library(LercLib ${SOURCES})
|
||||
endif()
|
||||
|
||||
install(
|
||||
TARGETS Lerc
|
||||
+ EXPORT LercTargets
|
||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
|
||||
)
|
||||
+target_include_directories(Lerc PUBLIC "$<INSTALL_INTERFACE:include>")
|
||||
+install(EXPORT LercTargets
|
||||
+ FILE unofficial-lerc-config.cmake
|
||||
+ NAMESPACE unofficial::Lerc::
|
||||
+ DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/unofficial-lerc"
|
||||
+)
|
||||
20
externals/vcpkg/ports/lerc/portfile.cmake
vendored
Executable file
20
externals/vcpkg/ports/lerc/portfile.cmake
vendored
Executable file
@@ -0,0 +1,20 @@
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO Esri/lerc
|
||||
REF v3.0
|
||||
SHA512 8e04d890c4d46528641b354ec3f47f2b0563e1740927ac894925a30f7de2b235cb3517ce7e477886bd3eb50ebd6c6e78f22d73d5500877e552d9e684e626293b
|
||||
HEAD_REF master
|
||||
PATCHES
|
||||
"create_package.patch"
|
||||
)
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
)
|
||||
vcpkg_cmake_install()
|
||||
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-lerc)
|
||||
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||
|
||||
file(INSTALL "${SOURCE_PATH}/NOTICE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
||||
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
||||
17
externals/vcpkg/ports/lerc/vcpkg.json
vendored
Executable file
17
externals/vcpkg/ports/lerc/vcpkg.json
vendored
Executable file
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"name": "lerc",
|
||||
"version": "3.0",
|
||||
"description": "An open-source image or raster format which supports rapid encoding and decoding for any pixel type",
|
||||
"homepage": "https://github.com/Esri/lerc",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user