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
2022-12-10 02:58:11 +08:00
R E F l i b X p m - 3 . 5 . 1 4
S H A 5 1 2 1 a e 8 c 4 8 b 0 d 9 2 8 2 6 5 c f c 6 b a a c 1 2 8 6 f 2 4 1 f 2 0 e 7 0 c 8 8 d 6 f 9 b 6 8 8 1 c c c c d 7 f 2 e 2 9 0 c a 0 a f a f 0 f 3 a 0 5 1 a d 5 5 2 6 4 4 9 d e c 9 3 c 6 c c 4 1 c 4 8 b b 6 e 4 8 8 e 2 9 e 2 b a e c 8 7 2 3 8 f 1 7 f 6 b c f
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-11-12 09:32:25 +08:00
s t r c a s e c m p . p a t c h
t o o l s . p a t c h # will look for libxt otherwise
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 ( )
2022-11-12 09:32:25 +08:00
#vcpkg_copy_tools(TOOL_NAMES sxpm cxpm AUTOCLEAN)
# Handle copyright
2022-09-09 02:40:05 +08:00
file ( INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright )
endif ( )