2017-08-16 23:08:15 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO DanBloomberg/leptonica
|
2024-02-22 14:33:32 +08:00
|
|
|
REF ${VERSION}
|
|
|
|
SHA512 968a88d2074717e6f379d2f9b8f7f0d5193fe9b8856051e09e2b31c939689b196a4a9b2cde595ce76ff8ae2784680ef5e68c40709c051d3d23738e862968016f
|
2017-08-16 23:08:15 +08:00
|
|
|
HEAD_REF master
|
|
|
|
PATCHES
|
2024-02-22 14:33:32 +08:00
|
|
|
fix-pc-and-config.patch
|
2017-08-16 23:08:15 +08:00
|
|
|
)
|
|
|
|
|
2023-02-01 10:04:06 +08:00
|
|
|
vcpkg_find_acquire_program(PKGCONFIG)
|
|
|
|
|
2021-09-17 01:50:15 +08:00
|
|
|
vcpkg_cmake_configure(
|
2022-03-29 02:33:04 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2017-08-16 23:08:15 +08:00
|
|
|
OPTIONS
|
2020-10-22 08:42:47 +08:00
|
|
|
-DSW_BUILD=OFF
|
2023-02-01 10:04:06 +08:00
|
|
|
-DPKG_CONFIG_EXECUTABLE=${PKGCONFIG}
|
2022-03-29 02:33:04 +08:00
|
|
|
-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
|
2017-08-16 23:08:15 +08:00
|
|
|
)
|
|
|
|
|
2021-09-17 01:50:15 +08:00
|
|
|
vcpkg_cmake_install()
|
2017-08-16 23:08:15 +08:00
|
|
|
|
2021-09-17 01:50:15 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
|
2022-03-29 02:33:04 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/leptonica)
|
2017-08-16 23:08:15 +08:00
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2021-09-17 01:50:15 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2017-08-16 23:08:15 +08:00
|
|
|
|
2024-02-22 14:33:32 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/leptonica-license.txt")
|