2017-09-30 15:43:10 -07:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO Exiv2/exiv2
|
2021-12-14 03:55:50 +08:00
|
|
|
REF ad5484cb1eaba3ad0e49b290d244f6b1ee9ff076 #v0.27.5
|
|
|
|
SHA512 33b8c60990b05f1599860974d6fe44baba8369356acd2cab3ce4919a48bb44348ed0496ffc4581d9fd5eb8a1b36d48a0eaa3fafe4584bfd655d0a88e7a9458ef
|
2017-09-30 15:43:10 -07:00
|
|
|
HEAD_REF master
|
2021-07-07 04:48:44 +08:00
|
|
|
PATCHES
|
2021-12-14 03:55:50 +08:00
|
|
|
fix-find_expat.patch
|
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
|
|
|
|
unicode EXIV2_ENABLE_WIN_UNICODE
|
|
|
|
xmp EXIV2_ENABLE_XMP
|
|
|
|
video EXIV2_ENABLE_VIDEO
|
|
|
|
png EXIV2_ENABLE_PNG
|
2021-07-20 01:42:44 +02:00
|
|
|
nls EXIV2_ENABLE_NLS
|
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)
|
|
|
|
|
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 09:46:03 +11:00
|
|
|
endif()
|
|
|
|
|
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_PRINTUCS2=OFF
|
|
|
|
-DEXIV2_ENABLE_LENSDATA=ON
|
|
|
|
-DEXIV2_ENABLE_DYNAMIC_RUNTIME=${EXIV2_CRT_DYNAMIC}
|
|
|
|
-DEXIV2_ENABLE_WEBREADY=OFF
|
|
|
|
-DEXIV2_ENABLE_CURL=OFF
|
|
|
|
-DEXIV2_ENABLE_SSH=OFF
|
|
|
|
-DEXIV2_ENABLE_BMFF=OFF
|
|
|
|
-DEXIV2_TEAM_EXTRA_WARNINGS=OFF
|
|
|
|
-DEXIV2_TEAM_WARNINGS_AS_ERRORS=OFF
|
|
|
|
-DEXIV2_TEAM_PACKAGING=OFF
|
|
|
|
-DEXIV2_TEAM_USE_SANITIZERS=OFF
|
2018-02-23 23:55:32 -08:00
|
|
|
)
|
|
|
|
|
2021-12-14 03:55:50 +08:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/exiv2)
|
2020-12-31 14:41:54 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
2017-12-11 22:14:57 -08:00
|
|
|
|
2021-07-20 01:42:44 +02:00
|
|
|
if("nls" IN_LIST FEATURES)
|
|
|
|
set(EXIV2_ENABLE_NLS ON)
|
|
|
|
else()
|
|
|
|
set(EXIV2_ENABLE_NLS OFF)
|
|
|
|
endif()
|
2019-03-29 09:46:03 +11: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 09:46:03 +11:00
|
|
|
@ONLY
|
|
|
|
)
|
|
|
|
|
2017-09-30 15:43:10 -07:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
|
|
|
# Clean
|
2021-12-14 03:55:50 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/lib/exiv2" "${CURRENT_PACKAGES_DIR}/lib/exiv2")
|
2017-09-30 15:43:10 -07:00
|
|
|
|
2018-02-23 22:32:02 -08:00
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
2021-12-14 03:55:50 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
2018-02-23 22:32:02 -08:00
|
|
|
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 00:48:17 +02:00
|
|
|
# Handle copyright
|
2021-12-14 03:55:50 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|