[soapysdr] New Port (#39729)

This commit is contained in:
Howard Su 2024-07-09 10:03:20 -07:00 committed by GitHub
parent 47bf3d1ac1
commit 775f1cd092
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 68 additions and 0 deletions

View File

@ -0,0 +1,28 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO pothosware/SoapySDR
REF soapy-sdr-${VERSION}
SHA512 50c8f1652bf9ca09215f9c4115175427ca7b5338add7591e31ca0e627093c94b73e7cf7f84fa71ff419cc010d3c1263931506c728bbaa00413a7915d56a87787
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DENABLE_DOCS=OFF
-DENABLE_APPS=OFF
-DENABLE_PYTHON=OFF
-DENABLE_PYTHON3=OFF
-DENABLE_TESTS=OFF
)
vcpkg_cmake_install()
vcpkg_fixup_pkgconfig()
vcpkg_cmake_config_fixup(CONFIG_PATH cmake)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE_1_0.txt")

9
ports/soapysdr/usage Normal file
View File

@ -0,0 +1,9 @@
soapysdr provides CMake targets:
find_package(SoapySDR CONFIG REQUIRED)
target_link_libraries(main PRIVATE SoapySDR)
soapysdr provides pkg-config modules:
# Vendor and platform neutral SDR interface library.
SoapySDR

18
ports/soapysdr/vcpkg.json Normal file
View File

@ -0,0 +1,18 @@
{
"name": "soapysdr",
"version": "0.8.1",
"description": "Vendor and platform neutral SDR interface library.",
"homepage": "https://github.com/pothosware/SoapySDR/wiki",
"license": "BSL-1.0",
"supports": "!uwp & !static",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}

View File

@ -8296,6 +8296,10 @@
"baseline": "1.6.1",
"port-version": 0
},
"soapysdr": {
"baseline": "0.8.1",
"port-version": 0
},
"sobjectizer": {
"baseline": "5.8.2",
"port-version": 0

View File

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "18fb7aebeffe086e6bd1ccb6441d1c31c032a91c",
"version": "0.8.1",
"port-version": 0
}
]
}