2021-05-28 13:47:22 -04:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO KDE/kcodecs
|
2021-12-17 01:29:39 -06:00
|
|
|
REF v5.89.0
|
|
|
|
SHA512 77104ab234d0b0baf00c2d3a37d366dc36c6f831c0fa011cb5ad965310e5317bbca3b569d9202123ed23b70137fe61ffec1689f51cccf8d60cc750913d36856f
|
2021-05-28 13:47:22 -04:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2021-09-17 17:20:35 +02:00
|
|
|
# Prevent KDEClangFormat from writing to source effectively blocking parallel configure
|
2021-12-17 01:29:39 -06:00
|
|
|
file(WRITE "${SOURCE_PATH}/.clang-format" "DisableFormat: true\nSortIncludes: false\n")
|
2021-09-17 17:20:35 +02:00
|
|
|
|
2021-05-28 13:47:22 -04:00
|
|
|
vcpkg_cmake_configure(
|
2021-10-27 07:27:18 +02:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2021-05-28 13:47:22 -04:00
|
|
|
OPTIONS
|
2021-07-28 02:02:50 +02:00
|
|
|
-DBUILD_TESTING=OFF
|
2022-06-02 03:13:53 +03:00
|
|
|
"-DGperf_EXECUTABLE=${CURRENT_HOST_INSTALLED_DIR}/tools/gperf/gperf${VCPKG_HOST_EXECUTABLE_SUFFIX}"
|
2021-05-28 13:47:22 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME KF5Codecs CONFIG_PATH lib/cmake/KF5Codecs)
|
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2021-12-17 01:29:39 -06:00
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
2021-05-28 13:47:22 -04:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
|
|
|
endif()
|
|
|
|
|
2021-10-27 07:27:18 +02:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
2021-05-28 13:47:22 -04:00
|
|
|
|
2022-07-14 21:09:56 +02:00
|
|
|
file(GLOB LICENSE_FILES "${SOURCE_PATH}/LICENSES/*")
|
|
|
|
vcpkg_install_copyright(FILE_LIST ${LICENSE_FILES})
|