Skip to content
Closed
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
2 changes: 1 addition & 1 deletion ports/libarchive/CONTROL
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Source: libarchive
Version: 3.4.3
Port-Version: 2
Port-Version: 3
Homepage: https://github.com/libarchive/libarchive
Description: Library for reading and writing streaming archives
Build-Depends: zlib
Expand Down
16 changes: 16 additions & 0 deletions ports/libarchive/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,22 @@ vcpkg_configure_cmake(
)

vcpkg_install_cmake()

# create a very simple cmake config that just includes the required packages that have their own cmake configs
set(LIBARCHIVE_CONFIG "")
if(FEATURES MATCHES "lz4")
set(LIBARCHIVE_CONFIG "${LIBARCHIVE_CONFIG}find_package(lz4 REQUIRED)\n")
endif()
if(FEATURES MATCHES "lzma")
set(LIBARCHIVE_CONFIG "${LIBARCHIVE_CONFIG}find_package(liblzma REQUIRED)\n")
endif()
if(FEATURES MATCHES "zstd")
set(LIBARCHIVE_CONFIG "${LIBARCHIVE_CONFIG}find_package(zstd REQUIRED)\n")
endif()
if(LIBARCHIVE_CONFIG)
file(WRITE ${CURRENT_PACKAGES_DIR}/share/libarchive/libarchiveConfig.cmake "${LIBARCHIVE_CONFIG}")
endif()

vcpkg_copy_pdbs()

foreach(_feature IN LISTS FEATURE_OPTIONS)
Expand Down
2 changes: 1 addition & 1 deletion ports/tesseract/CONTROL
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Source: tesseract
Version: 4.1.1
Port-Version: 5
Port-Version: 6
Homepage: https://github.com/tesseract-ocr/tesseract
Description: An OCR Engine that was developed at HP Labs between 1985 and 1995... and now at Google.
Build-Depends: leptonica, libarchive
Expand Down
3 changes: 2 additions & 1 deletion ports/tesseract/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ find_package(ZLIB REQUIRED)
find_package(BZip2 REQUIRED)
find_package(LibXml2 REQUIRED)
find_package(zstd REQUIRED)
find_package(LibLZMA REQUIRED)" TESSERACT_CONFIG "${TESSERACT_CONFIG}")
find_package(LibLZMA REQUIRED)
find_package(libarchive REQUIRED)" TESSERACT_CONFIG "${TESSERACT_CONFIG}")
file(WRITE ${CURRENT_PACKAGES_DIR}/share/tesseract/TesseractConfig.cmake "${TESSERACT_CONFIG}")

vcpkg_copy_tools(TOOL_NAMES tesseract AUTO_CLEAN)
Expand Down