2020-01-07 03:00:01 +08:00
|
|
|
vcpkg_fail_port_install(ON_TARGET "uwp")
|
2016-11-06 01:41:40 +08:00
|
|
|
|
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
|
2020-08-25 02:19:26 +08:00
|
|
|
REF 4d7757feedc9dd36f64393ae08acfd3b9600ac17 #v2.4.0
|
|
|
|
SHA512 197f701016c91fda944328e7d867f0a5baa152cce53fa35826986923456af593595bad884008944e041d9ac2e1d769a54eaad4142e19b42a3bb2a2010d814cc9
|
2017-05-03 19:57:23 +08:00
|
|
|
HEAD_REF master
|
2020-01-07 03:00:01 +08:00
|
|
|
PATCHES
|
|
|
|
export-targets.patch
|
2017-05-03 19:57:23 +08:00
|
|
|
)
|
2016-11-06 01:41:40 +08:00
|
|
|
|
2018-05-02 06:39:19 +08:00
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PREFER_NINJA
|
2020-01-07 03:00:01 +08:00
|
|
|
OPTIONS
|
|
|
|
-DBUILD_TESTS=OFF
|
|
|
|
-DBUILD_SAMPLES=OFF
|
2018-05-02 06:39:19 +08:00
|
|
|
)
|
|
|
|
vcpkg_install_cmake()
|
2016-11-06 01:41:40 +08:00
|
|
|
|
2020-01-07 03:00:01 +08:00
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
2016-11-06 01:41:40 +08:00
|
|
|
|
2020-01-07 03:00:01 +08:00
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH share/unofficial-box2d TARGET_PATH share/unofficial-box2d)
|
2016-11-06 01:41:40 +08:00
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|
2018-05-02 06:39:19 +08:00
|
|
|
|
2020-01-07 03:00:01 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|