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