2018-09-15 02:54:54 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO gracicot/kangaru
|
2022-04-19 07:38:53 +08:00
|
|
|
REF v4.3.0
|
|
|
|
SHA512 7763d25eed203a033e0420abc0194531082223183ed9ec28d98f871e0dc619d28ec9053ff69b5bf54bac07bd99551f2dfaad9f29d51e8ebdd72d4929f9a8fb93
|
2018-09-15 02:54:54 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
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
|
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)
|