mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-13 14:49:01 +08:00
559cbd3d15
* [libcap] Normalize * Update license * Finish WIP
30 lines
961 B
CMake
30 lines
961 B
CMake
vcpkg_from_git(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
URL git://git.kernel.org/pub/scm/libs/libcap/libcap.git
|
|
FETCH_REF "libcap-${VERSION}"
|
|
REF 3c7dda330bd9a154bb5b878d31fd591e4951fe17
|
|
)
|
|
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/configure" DESTINATION "${SOURCE_PATH}")
|
|
|
|
if(VCPKG_CROSSCOMPILING)
|
|
file(TOUCH "${SOURCE_PATH}/libcap/_makenames")
|
|
file(COPY "${CURRENT_HOST_INSTALLED_DIR}/include/sys/libcap-private/cap_names.list.h" DESTINATION "${SOURCE_PATH}/libcap/")
|
|
file(COPY "${CURRENT_HOST_INSTALLED_DIR}/include/sys/libcap-private/cap_names.h" DESTINATION "${SOURCE_PATH}/libcap/")
|
|
file(TOUCH "${SOURCE_PATH}/libcap/cap_names.h")
|
|
endif()
|
|
|
|
vcpkg_configure_make(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
COPY_SOURCE
|
|
DETERMINE_BUILD_TRIPLET
|
|
)
|
|
vcpkg_install_make(
|
|
MAKEFILE "Makefile.vcpkg"
|
|
)
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/License")
|