mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-01 00:22:55 +08:00
f89336d703
* [tesseract] add missing reference for downstream projects * [tesseract] restore ci, fix many regressions that are uncovered by that * Update ports/opencv2/CONTROL Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * [opencv] fix regressions on uwp, accept failure on arm64 for now * Apply suggestions from code review Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * [opencv4] allow failures on all arm windows targets, both win32 and uwp * adopts hints from #15180 * [libarchive] bump control version * [libarchive] use vcpkg-cmake-wrapper instead of a custom libarchiveConfig, since it is vcpkg-provided and not port-provided * enable features to be visible in parent scope * apply documentation fix from CI * [libarchive] remove unnecessary lines in portfile * fix regressions * Update ports/gdcm/CONTROL * use more compact logic syntax * add new versions to baseline Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>
82 lines
2.5 KiB
CMake
82 lines
2.5 KiB
CMake
vcpkg_fail_port_install(ON_TARGET "UWP")
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO libarchive/libarchive
|
|
REF fc6563f5130d8a7ee1fc27c0e55baef35119f26c #v3.4.3
|
|
SHA512 54ca4f3cc3b38dcf6588b2369ce43109c4a57a04061348ab8bf046c5c13ace0c4f42c9f3961288542cb5fe12c05359d572b39fe7cec32a10151dbac78e8a3707
|
|
HEAD_REF master
|
|
PATCHES
|
|
fix-buildsystem.patch
|
|
fix-dependencies.patch
|
|
fix-cpu-set.patch
|
|
disable-warnings.patch
|
|
)
|
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
bzip2 ENABLE_BZip2
|
|
libxml2 ENABLE_LIBXML2
|
|
lz4 ENABLE_LZ4
|
|
lzma ENABLE_LZMA
|
|
lzo ENABLE_LZO
|
|
openssl ENABLE_OPENSSL
|
|
zstd ENABLE_ZSTD
|
|
# The below features should be added to CONTROL
|
|
#pcre ENABLE_PCREPOSIX
|
|
#nettle ENABLE_NETTLE
|
|
#expat ENABLE_EXPAT
|
|
#libgcc ENABLE_LibGCC
|
|
#cng ENABLE_CNG
|
|
#tar ENABLE_TAR # Tool build option?
|
|
#cpio ENABLE_CPIO # Tool build option?
|
|
#cat ENABLE_CAT # Tool build option?
|
|
#xattr ENABLE_XATTR # Tool support option?
|
|
#acl ENABLE_ACL # Tool support option?
|
|
#iconv ENABLE_ICONV # iconv support option?
|
|
#libb2 ENABLE_LIBB2
|
|
)
|
|
|
|
if(FEATURES MATCHES "pcre")
|
|
else()
|
|
list(APPEND FEATURE_OPTIONS -DPOSIX_REGEX_LIB=NONE)
|
|
endif()
|
|
|
|
list(APPEND FEATURE_OPTIONS -DENABLE_ZLIB=ON)
|
|
|
|
vcpkg_configure_cmake(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
PREFER_NINJA
|
|
OPTIONS
|
|
${FEATURE_OPTIONS}
|
|
-DENABLE_PCREPOSIX=OFF
|
|
-DENABLE_NETTLE=OFF
|
|
-DENABLE_EXPAT=OFF
|
|
-DENABLE_LibGCC=OFF
|
|
-DENABLE_CNG=OFF
|
|
-DENABLE_TAR=OFF
|
|
-DENABLE_CPIO=OFF
|
|
-DENABLE_CAT=OFF
|
|
-DENABLE_XATTR=OFF
|
|
-DENABLE_ACL=OFF
|
|
-DENABLE_ICONV=OFF
|
|
-DENABLE_TEST=OFF
|
|
-DENABLE_WERROR=OFF
|
|
)
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
configure_file("${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake.in" "${CURRENT_PACKAGES_DIR}/share/${PORT}/vcpkg-cmake-wrapper.cmake" @ONLY)
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
|
|
foreach(HEADER ${CURRENT_PACKAGES_DIR}/include/archive.h ${CURRENT_PACKAGES_DIR}/include/archive_entry.h)
|
|
file(READ ${HEADER} CONTENTS)
|
|
string(REPLACE "(!defined LIBARCHIVE_STATIC)" "0" CONTENTS "${CONTENTS}")
|
|
file(WRITE ${HEADER} "${CONTENTS}")
|
|
endforeach()
|
|
|
|
file(INSTALL ${CURRENT_PORT_DIR}/usage DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
|
|
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|