2024-06-15 02:40:01 +08:00
|
|
|
if(VCPKG_TARGET_IS_WINDOWS)
|
2020-04-22 04:19:48 +08:00
|
|
|
set(PATCHES fix-POSIX_name.patch)
|
|
|
|
endif()
|
2018-10-18 02:46:46 +08:00
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO yaml/libyaml
|
2020-09-28 08:33:19 +08:00
|
|
|
REF 2c891fc7a770e8ba2fec34fc6b545c672beb37e6 # 0.2.5
|
|
|
|
SHA512 7cdde7b48c937777b851747f7e0b9a74cb7da30173e09305dad931ef83c3fcee3e125e721166690fe6a0987ba897564500530e5518e4b66b1c9b1db8900bf320
|
2018-10-18 02:46:46 +08:00
|
|
|
HEAD_REF master
|
2021-12-07 12:38:26 +08:00
|
|
|
PATCHES
|
|
|
|
${PATCHES}
|
|
|
|
export-pkgconfig.patch
|
2018-10-18 02:46:46 +08:00
|
|
|
)
|
|
|
|
|
2021-12-07 12:38:26 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
[many ports] Updates 2019.05.24 (#6618)
* [many ports] Updates 2019.05.24
* Update SHA512 and resolve conflict for ebml and matroska
* [avro-c]Fix build error caused by jansson upgrades.
* [xxhash]Update to the next version to fix build error.(xxhash issue:#179)
* Fix failures and undo asio
* [libyaml, grpc, miniz, paho-mqtt, sqlitecpp] Update patches
* Update REF
* Undo nvtt flann itk libtins aws-sdk-cpp openvdb vlpp xmsh changes
* [flann, fastcdr] Fix old patches and build error.
* [flann, fastcdr] Fix build error.
* Fix ensmallen uvatlas cppcms libplist failures and undo aws-c-common libopusenc arb taglib changes
* [dcmtk, draco, flatbuffers, forge, ftgl, mosquitto,nmslib, ogre] Update old patches and fix build error.
* fix libusbmuxd failures and undo xxhash paho-mqtt mongo-c-driver flann libffi
* fix libimobiledevice and undo qhull harfbuzz lcm libbson draco flatbuffers
* undo libmupdf forge kd-soap qca
* [mosquitto] Fix installation of import libs
* [arb][asio][aws-c-common][collada-dom][concurrentqueue][cryptopp][ebml] Revert trivial/undesired changes
* [fastcdr] Minimize patch
* [many ports] Revert trivial changes
* [libyaml] Switch to non-dist tag
* [sqlite-modern-cpp] Track master due to infrequent release
* [nano-signal-slot] Revert downgrade
* [openvpn3] Bump control version to account for portfile change
* [sqlite-modern-cpp] Fixup wrong hash
* [mosquitto] Commit missing patch
2019-06-11 08:01:54 +08:00
|
|
|
OPTIONS
|
|
|
|
-DBUILD_TESTING=OFF
|
2019-09-17 03:58:05 +08:00
|
|
|
-DINSTALL_CMAKE_DIR=share/yaml
|
2018-10-18 02:46:46 +08:00
|
|
|
)
|
|
|
|
|
2021-12-07 12:38:26 +08:00
|
|
|
vcpkg_cmake_install()
|
2018-10-18 02:46:46 +08:00
|
|
|
|
2021-12-07 12:38:26 +08:00
|
|
|
vcpkg_copy_pdbs()
|
2019-09-17 03:58:05 +08:00
|
|
|
|
2021-12-07 12:38:26 +08:00
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME yaml CONFIG_PATH share/yaml)
|
2018-10-18 02:46:46 +08:00
|
|
|
|
2021-12-07 12:38:26 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/include/config.h" "${CURRENT_PACKAGES_DIR}/debug/share")
|
|
|
|
|
|
|
|
configure_file("${SOURCE_PATH}/License" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" COPYONLY)
|