2018-09-15 02:54:54 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO gracicot/kangaru
|
2022-09-23 02:42:38 +08:00
|
|
|
REF v4.3.1
|
|
|
|
SHA512 5c1c6081b266089ad4ef310f4782505db5c514adce87091dd8164a6da71fc7ef72c0992c32e9ec3c991aa7a2ca43f1d96f2f524c7198bf899876af214fea28f3
|
2018-09-15 02:54:54 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2022-09-23 02:42:38 +08:00
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
|
|
FEATURES
|
|
|
|
hashtypeid KANGARU_HASH_TYPE_ID
|
|
|
|
)
|
|
|
|
|
2022-04-19 07:38:53 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
OPTIONS
|
|
|
|
-DKANGARU_EXPORT=OFF
|
|
|
|
-DKANGARU_TEST=OFF
|
|
|
|
-DKANGARU_REVERSE_DESTRUCTION=ON
|
2022-09-23 02:42:38 +08:00
|
|
|
${FEATURE_OPTIONS}
|
2018-09-15 02:54:54 +08:00
|
|
|
)
|
|
|
|
|
2022-04-19 07:38:53 +08:00
|
|
|
vcpkg_cmake_install()
|
2018-09-15 02:54:54 +08:00
|
|
|
|
2022-04-19 07:38:53 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/kangaru)
|
2018-09-15 02:54:54 +08:00
|
|
|
|
|
|
|
file(REMOVE_RECURSE
|
2022-04-19 07:38:53 +08:00
|
|
|
"${CURRENT_PACKAGES_DIR}/lib"
|
|
|
|
"${CURRENT_PACKAGES_DIR}/debug"
|
2018-09-15 02:54:54 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
# Put the license file where vcpkg expects it
|
2022-04-19 07:38:53 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|