Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[kfr] Update to 6.0.3 and disable detect cross-compiling
Browse files Browse the repository at this point in the history
WangWeiLin-MV committed Oct 9, 2024
1 parent 797ae22 commit 4692bd3
Showing 6 changed files with 29 additions and 11 deletions.
13 changes: 13 additions & 0 deletions ports/kfr/0100-disable-detect-cross-compiling.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 243d04e..d5bfe96 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -244,7 +244,7 @@ if (NOT X86)
endif ()
endif ()

-if (KFR_ARCH IN_LIST DETECT_NAMES AND NOT CMAKE_CROSSCOMPILING)
+if (0)
message(STATUS "Detecting ${KFR_ARCH} architecture")
try_run(
RUN_RESULT COMPILE_RESULT "${CMAKE_CURRENT_BINARY_DIR}/tmpdir"
14 changes: 8 additions & 6 deletions ports/kfr/portfile.cmake
Original file line number Diff line number Diff line change
@@ -3,9 +3,11 @@ vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO kfrlib/kfr
REF "${VERSION}"
SHA512 90ae299b1d3b9cc73de665f7c5ace757978b95d1546a4b00383a1a677ecfcd56698ea80e7bf7367e3f169238fff6391ee1f2a3558cfba7cc11c762cc3fbb3292
HEAD_REF master
REF "${VERSION}"
SHA512 f494aa700cbfb95da8d55f818cafa976a346ef4880b2f85f7c8af8f731b1b48487f10d4ad44a9b2e8cefd08383035173c0487f22080e6f1375f013c556bdb045
HEAD_REF main
PATCHES
0100-disable-detect-cross-compiling.patch
)

vcpkg_check_features(
@@ -28,9 +30,9 @@ vcpkg_cmake_configure(
)

vcpkg_cmake_install()

vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/${PORT}")

vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/${PORT}")

file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")

file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt")
4 changes: 2 additions & 2 deletions ports/kfr/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "kfr",
"version-semver": "6.0.2",
"version-semver": "6.0.3",
"description": "Fast, modern C++ DSP framework.",
"homepage": "https://www.kfr.dev/",
"license": "GPL-2.0",

Check notice on line 6 in ports/kfr/vcpkg.json

GitHub Actions / Check

SPDX deprecated license identifier GPL-2.0. If you feel able to do so, please consider replacing it. Updated license identifiers can be found at https://spdx.org/licenses/.
"supports": "!(arm | linux | xbox)",
"supports": "!(arm | xbox)",
"dependencies": [
{
"name": "vcpkg-cmake",
2 changes: 0 additions & 2 deletions scripts/ci.baseline.txt
Original file line number Diff line number Diff line change
@@ -503,8 +503,6 @@ jemalloc:x64-uwp=fail
jinja2cpplight:arm-neon-android=fail
jinja2cpplight:arm64-android=fail
jinja2cpplight:x64-android=fail
kfr:x64-android=fail
kfr:x64-uwp=fail
# needs android-24
kubazip:arm-neon-android=fail
lcm:x64-windows-static=fail
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
@@ -4093,7 +4093,7 @@
"port-version": 0
},
"kfr": {
"baseline": "6.0.2",
"baseline": "6.0.3",
"port-version": 0
},
"kinectsdk1": {
5 changes: 5 additions & 0 deletions versions/k-/kfr.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "7b7078786a4e81f73a6b4e2188f72b9349b7ce3b",
"version-semver": "6.0.3",
"port-version": 0
},
{
"git-tree": "d2a0f77d81e8be067f6fc0e97d768ed7cbcbb90a",
"version-semver": "6.0.2",

0 comments on commit 4692bd3

Please sign in to comment.