2020-05-16 05:11:26 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2019-09-04 05:45:31 +08:00
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO eliasdaler/imgui-sfml
|
2022-04-07 05:43:02 +08:00
|
|
|
REF 004efd85a590343e8c9d166dc9d2524c199c9450 #v2.5
|
|
|
|
SHA512 feb11f0a52f89eedc5af4c686b71290a48d69e7bc371f29536eb51752d00b6879d642625f494035d2ccc0500878757709afa2a3810ac17496506db754a3a4ed6
|
2019-09-04 05:45:31 +08:00
|
|
|
HEAD_REF master
|
|
|
|
PATCHES
|
2019-09-11 04:52:21 +08:00
|
|
|
0001-fix_find_package.patch
|
2022-11-29 07:46:08 +08:00
|
|
|
0002-fix-imgui-dependency.patch
|
2020-05-16 05:11:26 +08:00
|
|
|
004-fix-find-sfml.patch
|
2019-09-04 05:45:31 +08:00
|
|
|
)
|
|
|
|
|
2021-10-27 14:43:45 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2022-06-28 04:27:25 +08:00
|
|
|
OPTIONS
|
|
|
|
-DCMAKE_CXX_STANDARD=11
|
2019-09-04 05:45:31 +08:00
|
|
|
)
|
2021-10-27 14:43:45 +08:00
|
|
|
vcpkg_cmake_install()
|
2019-09-04 05:45:31 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2021-10-27 14:43:45 +08:00
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME ImGui-SFML CONFIG_PATH lib/cmake/ImGui-SFML)
|
2020-05-16 05:11:26 +08:00
|
|
|
|
2021-10-27 14:43:45 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2020-05-16 05:11:26 +08:00
|
|
|
|
2021-10-27 14:43:45 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|