2022-10-06 05:54:44 +08:00
|
|
|
vcpkg_from_github(
|
2018-11-29 07:33:10 +08:00
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2022-10-06 05:54:44 +08:00
|
|
|
REPO icculus/physfs
|
|
|
|
REF eb3383b532c5f74bfeb42ec306ba2cf80eed988c # release-3.2.0
|
|
|
|
SHA512 4231b379107a8dbacad18d98c0800bad4a3aae1bdd1db0bd4cf0c89c69bb7590ed14422c77671c28bd7556f606d3ff155ad8432940ce6222340f647f9e73ae8e
|
2018-11-29 07:33:10 +08:00
|
|
|
)
|
2016-10-15 01:21:35 +08:00
|
|
|
|
2017-07-30 07:55:17 +08:00
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" PHYSFS_STATIC)
|
2019-10-08 01:35:13 +08:00
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" PHYSFS_SHARED)
|
2017-07-30 07:55:17 +08:00
|
|
|
|
2022-04-28 09:12:48 +08:00
|
|
|
if(VCPKG_TARGET_IS_UWP)
|
|
|
|
set(configure_opts WINDOWS_USE_MSBUILD)
|
|
|
|
endif()
|
|
|
|
|
2021-08-27 01:09:08 +08:00
|
|
|
vcpkg_cmake_configure(
|
2022-04-28 09:12:48 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
${configure_opts}
|
2019-10-08 01:35:13 +08:00
|
|
|
OPTIONS
|
2017-07-30 07:55:17 +08:00
|
|
|
-DPHYSFS_BUILD_STATIC=${PHYSFS_STATIC}
|
|
|
|
-DPHYSFS_BUILD_SHARED=${PHYSFS_SHARED}
|
|
|
|
-DPHYSFS_BUILD_TEST=OFF
|
2016-10-15 01:21:35 +08:00
|
|
|
)
|
|
|
|
|
2021-08-27 01:09:08 +08:00
|
|
|
vcpkg_cmake_install()
|
2017-07-30 07:55:17 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2022-10-06 05:54:44 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/PhysFS)
|
2021-08-27 01:09:08 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
2016-10-15 01:21:35 +08:00
|
|
|
|
2021-08-27 01:09:08 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
|
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|