2022-09-09 02:40:05 +08:00
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_check_linkage ( ONLY_STATIC_LIBRARY )
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 l i b / l i b x p m
R E F l i b X p m - 3 . 5 . 1 3
S H A 5 1 2 2 5 0 c 8 b f 6 7 2 7 8 9 a 8 1 c f a 2 5 8 a 5 1 6 d 4 0 9 3 6 f 4 8 a 5 6 c f a e e 9 4 b f 3 f 6 2 8 e 3 f 4 a 4 6 2 b d d 9 0 e a a e a 7 8 7 d 6 6 d a f 0 9 c e 4 8 0 9 b 8 9 c 3 e a e a 1 e 0 7 7 1 d e 0 3 a 6 d 7 f 1 a 5 9 b 3 1 c c 8 2 b e 1 c 4 4
2022-09-15 02:20:47 +08:00
P A T C H E S
r e m o v e _ s t r i n g s _ h . p a t c h
f i x - d e p e n d e n c y - g e t t e x t . p a t c h
2022-09-09 02:40:05 +08:00
)
set ( ENV{ACLOCAL} "aclocal -I \" ${ CURRENT_INSTALLED_DIR } /share/xorg/aclocal/\ "" )
2022-09-15 02:20:47 +08:00
if ( "gettext" IN_LIST FEATURES )
set ( EXTRA_OPTIONS --with-gettext=yes )
else ( )
set ( EXTRA_OPTIONS --with-gettext=no )
endif ( )
2022-09-09 02:40:05 +08:00
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
2022-09-15 02:20:47 +08:00
O P T I O N S
$ { E X T R A _ O P T I O N S }
2022-09-09 02:40:05 +08:00
)
vcpkg_install_make ( )
vcpkg_fixup_pkgconfig ( SYSTEM_LIBRARIES pthread )
file ( REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" )
file ( REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share" )
if ( VCPKG_LIBRARY_LINKAGE STREQUAL static OR NOT VCPKG_TARGET_IS_WINDOWS )
file ( REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin" )
endif ( )
# # Handle copyright
file ( INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright )
endif ( )