mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-31 05:03:22 +08:00
32 lines
1.2 KiB
CMake
32 lines
1.2 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/libxpresent
|
||
|
REF ced59e4373b7ad8f89ba222b3f489fb22050b991 # 1.0.0
|
||
|
SHA512 3904af03ff03a5fca84e63ed92b53668b7d3c9b8572dc829016dbdc3176f3813f7731e519c2769ae84c4c105a4f5dec8378165f02f48d89354842c4dd8062328
|
||
|
HEAD_REF master
|
||
|
)
|
||
|
file(MAKE_DIRECTORY "${SOURCE_PATH}/m4/")
|
||
|
file(TOUCH "${SOURCE_PATH}/m4/dummy")
|
||
|
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()
|