2023-06-14 10:05:18 +08:00
|
|
|
vcpkg_download_distfile(
|
|
|
|
SYSCTL_REMOVED_PATCH
|
|
|
|
URLS https://github.com/slembcke/Chipmunk2D/commit/9a051e6fb970c7afe09ce2d564c163b81df050a8.patch?full_index=1
|
|
|
|
SHA512 54ec8766529d301ea35e8e0e7f7e9803101454d0f3655f7be87b6c81414a71e6fd269c14cf1d89902eebea78bb20526b0e4da4c53cf660d169ebabe46dadd059
|
|
|
|
FILENAME 9a051e6fb970c7afe09ce2d564c163b81df050a8.patch
|
|
|
|
)
|
|
|
|
|
2018-02-09 16:24:16 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO slembcke/Chipmunk2D
|
2024-02-22 14:46:03 +08:00
|
|
|
REF "Chipmunk-${VERSION}"
|
|
|
|
SHA512 edd16544a572c8f7654c99d6420aefe2f73ce2630f3e2e969f17b4980a8ea4044b5738f4a3cefbe0edd7bb4cd039a70748773b48cd59df12a09123eca9f451e4
|
2018-02-09 16:24:16 +08:00
|
|
|
HEAD_REF master
|
2023-06-14 10:05:18 +08:00
|
|
|
PATCHES
|
|
|
|
"${SYSCTL_REMOVED_PATCH}"
|
2024-02-22 14:46:03 +08:00
|
|
|
export-targets.patch
|
2018-02-09 16:24:16 +08:00
|
|
|
)
|
|
|
|
|
2020-12-05 07:33:20 +08:00
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" KEYSTONE_BUILD_STATIC)
|
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" KEYSTONE_BUILD_SHARED)
|
|
|
|
|
2023-03-07 07:44:04 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2020-12-05 07:33:20 +08:00
|
|
|
OPTIONS
|
|
|
|
-DBUILD_DEMOS=OFF
|
|
|
|
-DBUILD_SHARED=${KEYSTONE_BUILD_SHARED}
|
|
|
|
-DBUILD_STATIC=${KEYSTONE_BUILD_STATIC}
|
|
|
|
-DINSTALL_STATIC=${KEYSTONE_BUILD_STATIC}
|
2018-02-09 16:24:16 +08:00
|
|
|
)
|
|
|
|
|
2023-03-07 07:44:04 +08:00
|
|
|
vcpkg_cmake_install()
|
2020-12-05 07:33:20 +08:00
|
|
|
|
|
|
|
if (NOT VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL debug)
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
endif()
|
|
|
|
|
2024-02-22 14:46:03 +08:00
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-chipmunk)
|
2018-02-09 16:24:16 +08:00
|
|
|
|
2024-02-22 14:46:03 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt")
|