2021-09-10 12:15:36 +08:00
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
|
|
|
list(APPEND PATCHES fix_static_builds.patch)
|
|
|
|
endif()
|
|
|
|
|
2020-08-08 06:38:18 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO KDE/ki18n
|
2021-07-28 08:02:50 +08:00
|
|
|
REF v5.84.0
|
|
|
|
SHA512 611481b0d5f387b6e1201c1d38e050bd6c956607d059679c68f39d8560cdde666709f5aa1ae770e200fb81e902da85160eb3eeaf5c0bdb02c0ff13782df1d907
|
2021-09-10 12:15:36 +08:00
|
|
|
PATCHES ${PATCHES}
|
2020-08-08 06:38:18 +08:00
|
|
|
)
|
|
|
|
|
2021-04-13 01:15:11 +08:00
|
|
|
vcpkg_find_acquire_program(PYTHON3)
|
|
|
|
|
2020-08-08 06:38:18 +08:00
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
2021-06-25 04:04:57 +08:00
|
|
|
DISABLE_PARALLEL_CONFIGURE
|
2020-08-08 06:38:18 +08:00
|
|
|
PREFER_NINJA
|
|
|
|
OPTIONS
|
|
|
|
-DBUILD_TESTING=OFF
|
|
|
|
-DKDE_INSTALL_PLUGINDIR=plugins
|
2021-04-13 01:15:11 +08:00
|
|
|
-DPYTHON_EXECUTABLE=${PYTHON3}
|
2020-08-08 06:38:18 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/KF5I18n)
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2021-04-13 01:15:11 +08:00
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
|
|
|
endif()
|
|
|
|
|
2020-08-08 06:38:18 +08:00
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin/data)
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/bin/data)
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/etc)
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/etc)
|
2021-04-13 01:15:11 +08:00
|
|
|
|
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSES/ DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright)
|