mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-16 20:17:49 +08:00
30 lines
1.1 KiB
CMake
30 lines
1.1 KiB
CMake
|
if(NOT X_VCPKG_FORCE_VCPKG_X_LIBRARIES AND NOT VCPKG_TARGET_IS_WINDOWS)
|
||
|
message(STATUS "Utils and libraries provided by '${PORT}' should be provided by your system! Install the required packages or force vcpkg libraries by setting X_VCPKG_FORCE_VCPKG_X_LIBRARIES in your triplet!")
|
||
|
set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
|
||
|
else()
|
||
|
|
||
|
vcpkg_from_gitlab(
|
||
|
GITLAB_URL https://gitlab.freedesktop.org/xorg
|
||
|
OUT_SOURCE_PATH SOURCE_PATH
|
||
|
REPO lib/libxtst
|
||
|
REF 99b89c3bcb0ebb0b6dd86bfdc9d276715eaea889
|
||
|
SHA512 6479294057c73e91a086891e461e98d2717ae1fbe746cd74c9d13036a59bce931b8b0d5293d3c5ab4feeea426f2297647335179997e06a040b847697c7557199
|
||
|
HEAD_REF master
|
||
|
)
|
||
|
|
||
|
set(ENV{ACLOCAL} "aclocal -I \"${CURRENT_INSTALLED_DIR}/share/xorg/aclocal/\"")
|
||
|
|
||
|
vcpkg_configure_make(
|
||
|
SOURCE_PATH "${SOURCE_PATH}"
|
||
|
AUTOCONFIG
|
||
|
)
|
||
|
|
||
|
vcpkg_install_make()
|
||
|
vcpkg_fixup_pkgconfig()
|
||
|
|
||
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
||
|
|
||
|
# Handle copyright
|
||
|
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
||
|
endif()
|