2020-02-14 09:51:10 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO garyhouston/rxspencer
|
2021-07-23 04:36:21 +08:00
|
|
|
REF 9f835b523f1af617ca54e06863a1924c23f6e56a #v3.9.0
|
|
|
|
SHA512 fe7721bd4b4e4f7d31fd5a7e42d34d0c9735d062d8b146ee47a25f87c809eead7133265fc37fa958c37bc4ffeaf101d143202080508d98efd160b8fd0a278598
|
2020-02-14 09:51:10 +08:00
|
|
|
HEAD_REF master
|
2022-05-12 07:46:29 +08:00
|
|
|
PATCHES
|
|
|
|
disable-docs-and-tests.patch
|
2020-02-14 09:51:10 +08:00
|
|
|
)
|
|
|
|
|
2021-07-23 04:36:21 +08:00
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" BUILD_SHARED)
|
|
|
|
|
|
|
|
vcpkg_cmake_configure(
|
2022-05-12 07:46:29 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2022-01-26 02:31:15 +08:00
|
|
|
OPTIONS
|
2021-07-23 04:36:21 +08:00
|
|
|
-DCMAKE_CONFIG_DEST=share/rxspencer
|
|
|
|
-Drxshared=${BUILD_SHARED}
|
2020-02-14 09:51:10 +08:00
|
|
|
)
|
|
|
|
|
2021-07-23 04:36:21 +08:00
|
|
|
vcpkg_cmake_install()
|
2022-05-12 07:46:29 +08:00
|
|
|
vcpkg_copy_pdbs()
|
2020-02-14 09:51:10 +08:00
|
|
|
|
2021-07-23 04:36:21 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH "share/rxspencer")
|
2020-02-14 09:51:10 +08:00
|
|
|
|
2021-07-23 04:36:21 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/regex")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
2020-02-14 09:51:10 +08:00
|
|
|
|
|
|
|
# Handle copyright
|
2021-07-23 04:36:21 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/COPYRIGHT" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|