[kfr] Add new port (#8322)

* [kfr] Add new port

* [kfr] Modernize and update to lastest

* [kfr] Add features

* [kfr] Fail fast on arm-uwp, arm64-windows

* [kfr] Fail fast on linux
This commit is contained in:
myd7349 2020-07-10 04:59:37 +08:00 committed by GitHub
parent a6ba0da984
commit dbba608d3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 52 additions and 0 deletions

15
ports/kfr/CONTROL Normal file
View File

@ -0,0 +1,15 @@
Source: kfr
Version: 2020-06-15
Description: Fast, modern C++ DSP framework
Homepage: https://www.kfr.dev/
Supports: !(arm|linux)
Feature: capi
Description: Enable C API build
Build-Depends: kfr[dft]
Feature: dft
Description: Enable DFT and related algorithms
Feature: dft-np
Description: Enable Non-power of 2 DFT

34
ports/kfr/portfile.cmake Normal file
View File

@ -0,0 +1,34 @@
vcpkg_fail_port_install(ON_ARCH "arm" ON_TARGET "Linux")
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO kfrlib/kfr
REF 1f9706197abfcd4b4ec19ded3ce37b70ebd9a223
SHA512 901c6984a46a7abcc28adf9397759156a9e8d173e028c236ab423568ed20b3a3efe207be9660c961539c73a2767afaedcd76133304f542d3299353942cf13f5e
HEAD_REF master
)
vcpkg_check_features(
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
capi ENABLE_CAPI_BUILD
dft ENABLE_DFT
dft-np ENABLE_DFT_NP
)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS
-DENABLE_TESTS=OFF
-DENABLE_ASMTEST=OFF
-DREGENERATE_TESTS=OFF
-DKFR_EXTENDED_TESTS=OFF
-DSKIP_TESTS=ON
${FEATURE_OPTIONS}
)
vcpkg_install_cmake()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)

View File

@ -629,6 +629,9 @@ jinja2cpplight:arm-uwp=fail
jinja2cpplight:x64-uwp=fail
keystone:arm-uwp=fail
keystone:x64-uwp=fail
kfr:arm64-windows=fail
kfr:arm-uwp=fail
kfr:x64-linux=fail
kinectsdk1:arm64-windows=fail
kinectsdk1:arm-uwp=fail
kinectsdk1:x64-linux=fail