2024-05-16 06:22:35 +08:00
|
|
|
string(REGEX REPLACE "^([0-9]+)[.]([1-9])\$" "\\1.0\\2" VERSION_STR "${VERSION}")
|
2020-06-11 15:57:38 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO herumi/xbyak
|
2024-05-16 06:22:35 +08:00
|
|
|
REF "v${VERSION_STR}"
|
|
|
|
SHA512 42b8338a1bf565ad0359542748f2e93df36aae567fcd15236b212b70e64b5e1d417f88c8a617935a4acc1ae048592522da221cb0d890eb0efc4f9a808366d7f3
|
2020-06-11 15:57:38 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2021-09-28 12:07:48 +08:00
|
|
|
vcpkg_cmake_configure(SOURCE_PATH "${SOURCE_PATH}")
|
|
|
|
vcpkg_cmake_install()
|
2020-06-11 15:57:38 +08:00
|
|
|
|
2022-06-09 20:24:05 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/xbyak")
|
2020-12-02 06:00:09 +08:00
|
|
|
|
|
|
|
file(REMOVE_RECURSE
|
2021-09-28 12:07:48 +08:00
|
|
|
"${CURRENT_PACKAGES_DIR}/debug"
|
|
|
|
"${CURRENT_PACKAGES_DIR}/lib"
|
2020-12-02 06:00:09 +08:00
|
|
|
)
|
|
|
|
|
2021-09-28 12:07:48 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/COPYRIGHT" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|