2019-05-03 13:57:43 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2017-05-03 19:57:23 +08:00
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO erincatto/Box2D
|
2021-02-25 05:58:56 +08:00
|
|
|
REF 9ebbbcd960ad424e03e5de6e66a40764c16f51bc #v2.4.1
|
|
|
|
SHA512 d9fa387ce893ed1fb73f80006491202f2624ef6d0fb37daf92fbd1a7f9071c84da45e4b418b333566435bbbdfd3d5f68a42dfca02416e9a3a2b4db039f1c6151
|
2017-05-03 19:57:23 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
2016-11-06 01:41:40 +08:00
|
|
|
|
2023-03-07 07:44:04 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2020-01-07 03:00:01 +08:00
|
|
|
OPTIONS
|
2021-06-04 03:52:57 +08:00
|
|
|
-DBOX2D_BUILD_UNIT_TESTS=OFF
|
|
|
|
-DBOX2D_BUILD_TESTBED=OFF
|
2018-05-02 06:39:19 +08:00
|
|
|
)
|
2023-03-07 07:44:04 +08:00
|
|
|
vcpkg_cmake_install()
|
2016-11-06 01:41:40 +08:00
|
|
|
|
2023-03-07 07:44:04 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2016-11-06 01:41:40 +08:00
|
|
|
|
2023-03-07 07:44:04 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/box2d)
|
2016-11-06 01:41:40 +08:00
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|
2018-05-02 06:39:19 +08:00
|
|
|
|
2023-03-07 07:44:04 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|