2017-09-30 15:43:10 -07:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO Exiv2/exiv2
|
2023-02-21 17:06:26 +01:00
|
|
|
REF "v${VERSION}"
|
2024-08-21 08:30:00 +02:00
|
|
|
SHA512 c8338a118feefa104d73932890c732247c884ab9ce1d170c43a22ab5884517a0e2a7fd1febde7705b8290fbbbc29e64738610404816e4db2b56a70fc444ca049
|
2017-09-30 15:43:10 -07:00
|
|
|
HEAD_REF master
|
2021-07-07 04:48:44 +08:00
|
|
|
PATCHES
|
2024-08-21 08:30:00 +02:00
|
|
|
dependencies.diff
|
2020-08-17 23:33:44 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
2021-07-07 04:48:44 +08:00
|
|
|
FEATURES
|
|
|
|
xmp EXIV2_ENABLE_XMP
|
|
|
|
png EXIV2_ENABLE_PNG
|
2021-07-20 01:42:44 +02:00
|
|
|
nls EXIV2_ENABLE_NLS
|
2023-06-06 15:13:00 -07:00
|
|
|
bmff EXIV2_ENABLE_BMFF
|
2018-02-23 23:36:52 -08:00
|
|
|
)
|
2024-08-21 08:30:00 +02:00
|
|
|
if(VCPKG_TARGET_IS_UWP)
|
|
|
|
list(APPEND FEATURE_OPTIONS -DEXIV2_ENABLE_FILESYSTEM_ACCESS=OFF)
|
|
|
|
endif()
|
2018-02-23 23:36:52 -08:00
|
|
|
|
2021-07-07 04:48:44 +08:00
|
|
|
string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "dynamic" EXIV2_CRT_DYNAMIC)
|
|
|
|
|
2021-12-14 03:55:50 +08:00
|
|
|
vcpkg_add_to_path(PREPEND "${CURRENT_HOST_INSTALLED_DIR}/tools/gettext/bin")
|
|
|
|
|
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2019-03-29 09:46:03 +11:00
|
|
|
OPTIONS
|
2020-08-17 23:33:44 +08:00
|
|
|
${FEATURE_OPTIONS}
|
2021-07-07 04:48:44 +08:00
|
|
|
-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
|
2023-11-15 17:02:47 -08:00
|
|
|
-DEXIV2_ENABLE_VIDEO=OFF
|
2021-07-07 04:48:44 +08:00
|
|
|
-DEXIV2_TEAM_EXTRA_WARNINGS=OFF
|
|
|
|
-DEXIV2_TEAM_WARNINGS_AS_ERRORS=OFF
|
|
|
|
-DEXIV2_TEAM_PACKAGING=OFF
|
|
|
|
-DEXIV2_TEAM_USE_SANITIZERS=OFF
|
2024-08-21 08:30:00 +02:00
|
|
|
-DCMAKE_DISABLE_FIND_PACKAGE_Python3=ON
|
2018-02-23 23:55:32 -08:00
|
|
|
)
|
|
|
|
|
2021-12-14 03:55:50 +08:00
|
|
|
vcpkg_cmake_install()
|
2024-08-21 08:30:00 +02:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/exiv2)
|
2020-12-31 14:41:54 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
2017-09-30 15:43:10 -07:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2023-02-21 17:06:26 +01:00
|
|
|
file(REMOVE_RECURSE
|
|
|
|
"${CURRENT_PACKAGES_DIR}/debug/include"
|
|
|
|
"${CURRENT_PACKAGES_DIR}/debug/share"
|
|
|
|
"${CURRENT_PACKAGES_DIR}/share/man"
|
|
|
|
)
|
2018-02-23 22:32:02 -08:00
|
|
|
|
2023-02-21 17:06:26 +01:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
|