vcpkg/ports/libnick/portfile.cmake
Nick Logozzo 32b208f7d0
[libnick] Update to 2024.2.0 (#36462)
* [libnick] Update to 2024.2.0

* Update versions
2024-01-30 12:37:04 -08:00

33 lines
905 B
CMake

if(VCPKG_TARGET_IS_WINDOWS)
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
endif()
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO NickvisionApps/libnick
REF "${VERSION}"
SHA512 e3bf73cd61440d5bed001ae0ec6c6b9214f160da3e2808ea63def22e7ac0aa7bea0c6db5143d51f55be2cf3e4ede3f08fe468bf02e19e0f624a823a1d32c5ad3
HEAD_REF main
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DBUILD_TESTING=OFF
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/libnick)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
vcpkg_copy_pdbs()
vcpkg_fixup_pkgconfig()
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
configure_file("${CMAKE_CURRENT_LIST_DIR}/usage" "${CURRENT_PACKAGES_DIR}/share/${PORT}/usage" COPYONLY)