mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-28 13:10:17 +08:00
821d0d20d7
* [leptonica] Fix find openjpeg * update version * update patch * update version * format portfile.cmake * update version * update patch * update version * format portfile.cmake * update version * update to 1.82.0 * update version * update patches * update version * update patches * update version * Revise patching and configuration * Update versions * update patch * update version * update version * update patch * update version Co-authored-by: Lily Wang <v-lilywang@microsoft.com> Co-authored-by: Kai Pastor <dg0yt@darc.de>
33 lines
987 B
CMake
33 lines
987 B
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO DanBloomberg/leptonica
|
|
REF f4138265b390f1921b9891d6669674d3157887d8 # 1.82.0
|
|
SHA512 cd8c55454fc2cb4d23c2b3f01870e154766fa5a35c07b79d25c2d85dc2675dcb224d9be8a1cdcb7e9a0bd3c17e90141aa4084f67a311a1c327d7ac2439ba196a
|
|
HEAD_REF master
|
|
PATCHES
|
|
fix-CMakeDependency.patch
|
|
)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
-DSW_BUILD=OFF
|
|
-DCMAKE_REQUIRE_FIND_PACKAGE_GIF=TRUE
|
|
-DCMAKE_REQUIRE_FIND_PACKAGE_JPEG=TRUE
|
|
-DCMAKE_REQUIRE_FIND_PACKAGE_PNG=TRUE
|
|
-DCMAKE_REQUIRE_FIND_PACKAGE_TIFF=TRUE
|
|
-DCMAKE_REQUIRE_FIND_PACKAGE_ZLIB=TRUE
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/leptonica)
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
file(INSTALL "${SOURCE_PATH}/leptonica-license.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|