mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-30 20:59:12 +08:00
4aedc13abe
* [xcb-cursor] add port * [xcb-errors] add port * [xcb-image] add port * [xcb-keysyms] add port * [xcb-util] add port * [xcb-wm] add port * v db * remove xcb-cursor * Apply CR Co-authored-by: Billy O'Neal <bion@microsoft.com> * update ports to new version * v db * fix v db * add missing DESTINATION parameter * v db * rename xcb-errors and xcb-wm * v db * only apply the patch on windows * v db Co-authored-by: Billy O'Neal <bion@microsoft.com>
41 lines
1.4 KiB
CMake
41 lines
1.4 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()
|
|
|
|
if(VCPKG_TARGET_IS_WINDOWS)
|
|
set(PATCHES fix_python.patch)
|
|
endif()
|
|
|
|
vcpkg_from_gitlab(
|
|
GITLAB_URL https://gitlab.freedesktop.org/xorg
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO lib/libxcb-errors
|
|
REF 517dd82c079de762a7426f20166a44f11e8d38c5 #1.0.1
|
|
SHA512 391f6bc9452bf4d6a3f1fa69232cdbef43f9fcd339b8d1965132a3b227ed7ebcbaad553fe64d42bc525811caedf3ff9d5bec108f6ac2efd5a014f75fb35cbf85
|
|
HEAD_REF master
|
|
PATCHES ${PATCHES}
|
|
)
|
|
file(TOUCH "${SOURCE_PATH}/m4/dummy")
|
|
set(ENV{ACLOCAL} "aclocal -I \"${CURRENT_INSTALLED_DIR}/share/xorg/aclocal/\"")
|
|
|
|
vcpkg_find_acquire_program(PYTHON3)
|
|
get_filename_component(PYTHON3_DIR "${PYTHON3}" DIRECTORY)
|
|
vcpkg_add_to_path("${PYTHON3_DIR}")
|
|
|
|
vcpkg_configure_make(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
AUTOCONFIG
|
|
COPY_SOURCE
|
|
)
|
|
|
|
vcpkg_install_make()
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
|
|
|
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
|
endif()
|
|
|