mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 19:25:27 +08:00
6b07285422
* [exiv2] update to 0.28.1 * update version * Fix option * update version --------- Co-authored-by: vzhli17 <v-zhli17@microsoft.com>
70 lines
2.0 KiB
CMake
70 lines
2.0 KiB
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO Exiv2/exiv2
|
|
REF "v${VERSION}"
|
|
SHA512 7b872a3c0cbe343014b1ca4618cecaf6ee8d78dec7ef83accfce95cb8eadc6b52116977a41e1f1be5c6149a47bdd9457fadc08d73708aa2a6ab69795fd3de23b
|
|
HEAD_REF master
|
|
PATCHES
|
|
fix-find_expat.patch
|
|
fix-inih.patch
|
|
fix-brotli.patch
|
|
fix-expat.patch
|
|
dont-find-python.patch
|
|
)
|
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
FEATURES
|
|
xmp EXIV2_ENABLE_XMP
|
|
png EXIV2_ENABLE_PNG
|
|
nls EXIV2_ENABLE_NLS
|
|
bmff EXIV2_ENABLE_BMFF
|
|
)
|
|
|
|
string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "dynamic" EXIV2_CRT_DYNAMIC)
|
|
|
|
vcpkg_add_to_path(PREPEND "${CURRENT_HOST_INSTALLED_DIR}/tools/gettext/bin")
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
${FEATURE_OPTIONS}
|
|
-DEXIV2_BUILD_EXIV2_COMMAND=OFF
|
|
-DEXIV2_BUILD_UNIT_TESTS=OFF
|
|
-DEXIV2_BUILD_SAMPLES=OFF
|
|
-DEXIV2_BUILD_DOC=OFF
|
|
-DEXIV2_ENABLE_EXTERNAL_XMP=OFF
|
|
-DEXIV2_ENABLE_LENSDATA=ON
|
|
-DEXIV2_ENABLE_DYNAMIC_RUNTIME=${EXIV2_CRT_DYNAMIC}
|
|
-DEXIV2_ENABLE_WEBREADY=OFF
|
|
-DEXIV2_ENABLE_CURL=OFF
|
|
-DEXIV2_ENABLE_VIDEO=OFF
|
|
-DEXIV2_TEAM_EXTRA_WARNINGS=OFF
|
|
-DEXIV2_TEAM_WARNINGS_AS_ERRORS=OFF
|
|
-DEXIV2_TEAM_PACKAGING=OFF
|
|
-DEXIV2_TEAM_USE_SANITIZERS=OFF
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH share/cmake/exiv2)
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
configure_file(
|
|
${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake
|
|
${CURRENT_PACKAGES_DIR}/share/${PORT}
|
|
@ONLY
|
|
)
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
file(REMOVE_RECURSE
|
|
"${CURRENT_PACKAGES_DIR}/debug/include"
|
|
"${CURRENT_PACKAGES_DIR}/debug/lib/exiv2"
|
|
"${CURRENT_PACKAGES_DIR}/debug/share"
|
|
"${CURRENT_PACKAGES_DIR}/lib/exiv2"
|
|
"${CURRENT_PACKAGES_DIR}/share/man"
|
|
)
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
|
|
|
|
configure_file("${CMAKE_CURRENT_LIST_DIR}/usage" "${CURRENT_PACKAGES_DIR}/share/${PORT}/usage" COPYONLY)
|