2017-09-30 15:43:10 -07:00
|
|
|
include(vcpkg_common_functions)
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO Exiv2/exiv2
|
2018-03-17 20:10:17 -07:00
|
|
|
REF a4a0516dc4b8b1376a5d9ca339c59c25e8799033
|
|
|
|
SHA512 84ebac0e0aafbf610ae27fd00106a531e5ef1e37f8832c5d52070b0d4f8b8ebad367774f3d0ed4177137fab81d76e08937491b62b77aa73eb563cd7439a111cc
|
2017-09-30 15:43:10 -07:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2018-02-23 23:36:52 -08:00
|
|
|
vcpkg_apply_patches(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
PATCHES "${CMAKE_CURRENT_LIST_DIR}/use-iconv.patch"
|
|
|
|
)
|
|
|
|
|
2018-02-23 23:55:32 -08:00
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PREFER_NINJA
|
|
|
|
)
|
|
|
|
|
2017-09-30 15:43:10 -07:00
|
|
|
vcpkg_install_cmake()
|
|
|
|
|
2017-12-11 22:14:57 -08:00
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH "share/exiv2/cmake")
|
|
|
|
|
2017-09-30 15:43:10 -07:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
|
|
|
# Clean
|
2018-03-11 23:41:51 -07:00
|
|
|
file(GLOB EXE ${CURRENT_PACKAGES_DIR}/bin/*.exe ${CURRENT_PACKAGES_DIR}/debug/bin/*.exe)
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include ${CURRENT_PACKAGES_DIR}/debug/share ${EXE} ${DEBUG_EXE})
|
2017-09-30 15:43:10 -07:00
|
|
|
|
2018-02-23 22:32:02 -08:00
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
|
|
|
|
endif()
|
|
|
|
|
2017-09-30 15:43:10 -07:00
|
|
|
# Handle copyright
|
|
|
|
file(COPY ${SOURCE_PATH}/ABOUT-NLS DESTINATION ${CURRENT_PACKAGES_DIR}/share/exiv2)
|
|
|
|
file(RENAME ${CURRENT_PACKAGES_DIR}/share/exiv2/ABOUT-NLS ${CURRENT_PACKAGES_DIR}/share/exiv2/copyright)
|