Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ports/lerc/CONTROL
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Source: lerc
Version: 2.2
Port-Version: 1
Homepage: https://github.com/Esri/lerc
Description: An open-source image or raster format which supports rapid encoding and decoding for any pixel type
26 changes: 26 additions & 0 deletions ports/lerc/create_package.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
CMakeLists.txt | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index e90fcdd..17c79e8 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -17,7 +17,7 @@ add_library(LercLib ${SOURCES})
target_link_libraries (LercLib)

install(
- TARGETS LercLib
+ TARGETS LercLib EXPORT LercTargets
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
@@ -28,3 +28,9 @@ install(
FILES "include/Lerc_types.h" "include/Lerc_c_api.h"
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
)
+
+install(EXPORT LercTargets
+ FILE lercConfig.cmake
+ NAMESPACE Esri::
+ DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/lerc"
+)
2 changes: 2 additions & 0 deletions ports/lerc/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ vcpkg_from_github(
PATCHES
"install_lib_to_archive_path.patch"
"enable_static_build.patch"
"create_package.patch"
)

vcpkg_configure_cmake(
Expand All @@ -15,6 +16,7 @@ vcpkg_configure_cmake(
)

vcpkg_install_cmake()
vcpkg_fixup_cmake_targets()

file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")

Expand Down