2022-08-23 03:26:13 +08:00
set ( VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled )
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 ( )
find_program ( XMLLINT_PATH NAMES xmllint PATHS "${CURRENT_HOST_INSTALLED_DIR}/tools/libxml2" )
if ( NOT XMLLINT_PATH )
message ( FATAL_ERROR "${PORT} requires xmllint which was not found!" )
endif ( )
string ( REGEX REPLACE "/[^/]+$" "" XMLLINT_DIR "${XMLLINT_PATH}" )
file ( TO_NATIVE_PATH "${XMLLINT_DIR}" XMLLINT_DIR_NATIVE )
message ( STATUS "Using xmlling at: ${XMLLINT_PATH}" )
vcpkg_add_to_path ( "${XMLLINT_DIR_NATIVE}" )
vcpkg_find_acquire_program ( PYTHON3 )
get_filename_component ( PYTHON3_DIR "${PYTHON3}" DIRECTORY )
file ( TO_NATIVE_PATH "${PYTHON3_DIR}" PYTHON3_DIR_NATIVE )
vcpkg_add_to_path ( "${PYTHON3_DIR}" )
set ( ENV{PYTHON} "${PYTHON3}" )
vcpkg_from_gitlab (
G I T L A B _ U R L h t t p s : / / g i t l a b . f r e e d e s k t o p . o r g / x o r g
O U T _ S O U R C E _ P A T H S O U R C E _ P A T H
R E P O p r o t o / x c b p r o t o
R E F 7 0 c a 6 5 f a 3 5 c 3 7 6 0 6 6 1 b 0 9 0 b c 4 b 2 6 0 1 d a a 7 a 0 9 9 b 8 #v1.14.1 + patches
S H A 5 1 2 9 e 0 8 e 1 d 2 a b 1 f e 7 a 8 d 3 9 8 5 5 6 8 9 1 8 a 8 5 8 d d f b 3 1 b 8 0 1 6 c c a c 8 e a 2 4 4 7 6 3 1 e 7 c e d e 3 b c c 7 b 1 e d 8 6 4 9 1 d 4 9 7 a b 8 7 1 6 7 4 c 9 b 5 5 d 9 4 f a b 2 5 e e 1 3 f f 6 d e 9 a 4 4 5 9 0 b 9 1 d 9 1 6 6 f d a
H E A D _ R E F m a s t e r
)
set ( ENV{ACLOCAL} "aclocal -I \" ${ CURRENT_INSTALLED_DIR } /share/xorg/aclocal/\ "" )
vcpkg_configure_make (
S O U R C E _ P A T H " $ { S O U R C E _ P A T H } "
A U T O C O N F I G
O P T I O N S
a c _ c v _ p a t h _ P Y T H O N = ' $ { P Y T H O N 3 } '
2024-03-12 05:09:15 +08:00
a m _ c v _ p y t h o n _ p y e x e c d i r = \ \ \ $ { p r e f i x } / $ { P Y T H O N 3 _ S I T E }
a m _ c v _ p y t h o n _ p y t h o n d i r = \ \ \ $ { p r e f i x } / $ { P Y T H O N 3 _ S I T E }
2022-08-23 03:26:13 +08:00
)
vcpkg_install_make ( )
vcpkg_fixup_pkgconfig ( )
file ( REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share" )
2023-07-13 13:56:50 +08:00
vcpkg_install_copyright ( FILE_LIST "${SOURCE_PATH}/COPYING" )
2022-08-23 03:26:13 +08:00
endif ( )