mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-24 17:30:27 +08:00
36 lines
1.3 KiB
CMake
36 lines
1.3 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/libxres
|
||
|
REF c05c6d918b0e2011d4bfa370c321482e34630b17 # 1.2.1
|
||
|
SHA512 c2eabf65b03393991b56b84bea4d770e9c0295d685e8b22bb7dabbd37dd6c7c6f5e519cefa790b05c0f124bb739a5abe03249b89e2ce6d5276014e9752c11251
|
||
|
HEAD_REF master
|
||
|
PATCHES build.patch
|
||
|
)
|
||
|
|
||
|
set(ENV{ACLOCAL} "aclocal -I \"${CURRENT_INSTALLED_DIR}/share/xorg/aclocal/\"")
|
||
|
|
||
|
if (VCPKG_CROSSCOMPILING)
|
||
|
list(APPEND OPTIONS --enable-malloc0returnsnull)
|
||
|
endif()
|
||
|
|
||
|
vcpkg_configure_make(
|
||
|
SOURCE_PATH "${SOURCE_PATH}"
|
||
|
AUTOCONFIG
|
||
|
OPTIONS ${OPTIONS}
|
||
|
)
|
||
|
|
||
|
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()
|