2020-08-17 23:33:44 +08:00
|
|
|
#https://github.com/Exiv2/exiv2/issues/1063
|
|
|
|
vcpkg_fail_port_install(ON_TARGET "uwp")
|
|
|
|
|
2017-10-01 06:43:10 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO Exiv2/exiv2
|
2020-07-07 02:49:13 +08:00
|
|
|
REF 194bb65ac568a5435874c9d9d73b1c8a68e4edec #v0.27.3
|
|
|
|
SHA512 35a5a41e0a6cfe04d1ed005c8116ad4430516402b925db3d4f719e2385e2cfb09359eb7ab51853bc560138f221900778cd2e2d39f108c513b3e7d22dbb9bf503
|
2017-10-01 06:43:10 +08:00
|
|
|
HEAD_REF master
|
2020-08-17 23:33:44 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
|
|
unicode EXIV2_ENABLE_WIN_UNICODE
|
|
|
|
xmp EXIV2_ENABLE_XMP
|
2020-08-28 12:29:42 +08:00
|
|
|
video EXIV2_ENABLE_VIDEO
|
2018-02-24 15:36:52 +08:00
|
|
|
)
|
|
|
|
|
2020-08-17 23:33:44 +08:00
|
|
|
if("unicode" IN_LIST FEATURES AND NOT VCPKG_TARGET_IS_WINDOWS)
|
|
|
|
message(FATAL_ERROR "Feature unicode only supports Windows platform.")
|
2019-03-29 06:46:03 +08:00
|
|
|
endif()
|
|
|
|
|
2018-02-24 15:55:32 +08:00
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PREFER_NINJA
|
2019-03-29 06:46:03 +08:00
|
|
|
OPTIONS
|
2020-08-17 23:33:44 +08:00
|
|
|
${FEATURE_OPTIONS}
|
2019-03-29 06:46:03 +08:00
|
|
|
-DEXIV2_BUILD_EXIV2_COMMAND:BOOL=FALSE
|
|
|
|
-DEXIV2_BUILD_UNIT_TESTS:BOOL=FALSE
|
|
|
|
-DEXIV2_BUILD_SAMPLES:BOOL=FALSE
|
2018-02-24 15:55:32 +08:00
|
|
|
)
|
|
|
|
|
2017-10-01 06:43:10 +08:00
|
|
|
vcpkg_install_cmake()
|
2019-09-04 07:05:18 +08:00
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/exiv2)
|
2020-12-31 14:41:54 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
2017-12-12 14:14:57 +08:00
|
|
|
|
2019-03-29 06:46:03 +08:00
|
|
|
configure_file(
|
|
|
|
${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake
|
2020-08-17 23:33:44 +08:00
|
|
|
${CURRENT_PACKAGES_DIR}/share/${PORT}
|
2019-03-29 06:46:03 +08:00
|
|
|
@ONLY
|
|
|
|
)
|
|
|
|
|
2017-10-01 06:43:10 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
|
|
|
# Clean
|
2019-03-29 06:46:03 +08:00
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include ${CURRENT_PACKAGES_DIR}/debug/share)
|
2019-06-18 01:53:40 +08:00
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/lib/exiv2 ${CURRENT_PACKAGES_DIR}/lib/exiv2)
|
2017-10-01 06:43:10 +08:00
|
|
|
|
2018-02-24 14:32:02 +08:00
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
|
|
|
|
endif()
|
|
|
|
|
[openexr,openimageio,suitesparse,theia] updates for non-win32 (#6371)
* [openexr,openimageio,suitesparse,theia] updates for non-win32
* [theia] use only valid cmake symbols
* [suitesparse] Fix build
* [lapack] still not properly integrating with other ports
* [lapack] intercept cmake module calls and substitute them with our defs
* [suitesparse,clapack] fixes for proper integration
* [ceres,clapack] bump CONTROL
* [suitesparse] remove unnecessary defs
* [clapack] improve wrapper logic
* [WIN32] remove wrong symbol
* [clapack] fix wrapper integration
* [Accelerate] use best framework when available
* [clapack] separate config from wrapper
* [clapack] fix paths and filenames
* [mlpack,armadillo,clapack] improve library handling
* [mlpack] remove unnecessary cmake option
* [clp,coinutils,osi,liblemon] dependencies of openmvg, improve compatibility with non-win32
* [openmvg] fix for case-sensitive filesystems
* [clp,coinutils,osi] simplify CMakeLists removing many unnecessary steps
* [sophus] Force rebuild
* [theia] fixes for linux, part1
* [io2d] remove broken sintax
* [fontconfig] bump version to remove CI cached failure
* [theia] fixes for linux, part2
* [theia] remove unnecessary empty folders and comments from portfile
* [theia] use correct build type removing forced vars in cmakelists.txt
* [openmvg] add missing suitesparse target detection
* [sophus] fix Suitesparse dependency
* [sophus,openmvg] use suitesparse lowercase for module compatibility on case-sensitive filesystems
* [suitesparse] fixes for case-sensitive filesystems
* [openmvg] use correct Eigen3 name for case-sensitive filesystems
* [sophus] trigger rebuild
* [shogun] use modern vcpkg style
* [shogun] add missing cmake system processor symbol
2019-06-01 06:48:17 +08:00
|
|
|
# Handle copyright
|
2020-08-17 23:33:44 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|