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
2023-10-03 11:24:33 +08:00
R E F " l i b X p m - $ { V E R S I O N } "
S H A 5 1 2 0 0 6 d 5 f b 2 f d 9 5 1 b 8 8 5 7 b 8 d 4 0 9 d 6 5 e b e 4 f 8 1 9 d c 5 1 d f 3 b b e 9 3 3 e f 9 b 8 7 9 a 9 d c 8 3 2 b 0 8 2 8 4 8 1 c 7 c 0 c a c 4 5 3 a 8 2 a 1 e 8 1 f 3 9 9 9 0 f c 4 9 8 1 9 3 1 4 a 4 4 3 a 1 0 8 2 b d a e a 6 0 4 4 b b 3 0 1 3
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 )
2023-10-03 11:24:33 +08:00
endif ( )