2017-10-17 18:25:58 -05:00
|
|
|
vcpkg_from_github(
|
2017-11-12 00:22:51 -08:00
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2017-10-17 18:25:58 -05:00
|
|
|
REPO jedisct1/libsodium
|
2019-06-18 04:19:39 +08:00
|
|
|
REF 1.0.18
|
|
|
|
SHA512 727fe50a5fb1df86ec5d807770f408a52609cbeb8510b4f4183b2a35a537905719bdb6348afcb103ff00ce946a8094ac9559b6e3e5b2ccc2a2d0c08f75577eeb
|
2017-10-17 18:25:58 -05:00
|
|
|
HEAD_REF master
|
2017-12-06 18:08:03 -08:00
|
|
|
)
|
|
|
|
|
2021-03-29 10:45:43 -06:00
|
|
|
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
2018-12-19 17:50:38 +08:00
|
|
|
|
2021-03-29 10:45:43 -06:00
|
|
|
vcpkg_cmake_configure(
|
2019-05-01 17:43:48 -05:00
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PREFER_NINJA
|
|
|
|
OPTIONS
|
|
|
|
-DBUILD_TESTING=OFF
|
2017-10-17 18:43:54 -05:00
|
|
|
)
|
|
|
|
|
2021-03-29 10:45:43 -06:00
|
|
|
vcpkg_cmake_install()
|
2018-12-19 20:01:14 +08:00
|
|
|
|
2019-05-01 17:43:48 -05:00
|
|
|
vcpkg_copy_pdbs()
|
2017-11-30 18:10:33 -08:00
|
|
|
|
2021-03-29 10:45:43 -06:00
|
|
|
vcpkg_cmake_config_fixup(
|
|
|
|
PACKAGE_NAME unofficial-sodium
|
2017-10-17 18:43:54 -05:00
|
|
|
)
|
2019-05-01 17:43:48 -05:00
|
|
|
|
|
|
|
file(REMOVE_RECURSE
|
|
|
|
${CURRENT_PACKAGES_DIR}/debug/include
|
2021-03-29 10:45:43 -06:00
|
|
|
${CURRENT_PACKAGES_DIR}/debug/share
|
2017-10-17 18:43:54 -05:00
|
|
|
)
|
|
|
|
|
2019-06-12 21:39:10 -07:00
|
|
|
file(REMOVE ${CURRENT_PACKAGES_DIR}/include/Makefile.am)
|
|
|
|
|
2019-05-01 17:43:48 -05:00
|
|
|
configure_file(
|
2018-02-22 06:22:12 -08:00
|
|
|
${SOURCE_PATH}/LICENSE
|
2019-05-01 17:43:48 -05:00
|
|
|
${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright
|
|
|
|
COPYONLY
|
2017-10-17 18:25:58 -05:00
|
|
|
)
|
2021-03-29 10:45:43 -06:00
|
|
|
|
|
|
|
configure_file(
|
|
|
|
${CMAKE_CURRENT_LIST_DIR}/sodiumConfig.cmake.in
|
|
|
|
${CURRENT_PACKAGES_DIR}/share/unofficial-sodium/unofficial-sodiumConfig.cmake
|
|
|
|
@ONLY
|
|
|
|
)
|