aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/soapysdr
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/soapysdr')
-rw-r--r--vcpkg/ports/soapysdr/portfile.cmake28
-rw-r--r--vcpkg/ports/soapysdr/usage9
-rw-r--r--vcpkg/ports/soapysdr/vcpkg.json18
3 files changed, 55 insertions, 0 deletions
diff --git a/vcpkg/ports/soapysdr/portfile.cmake b/vcpkg/ports/soapysdr/portfile.cmake
new file mode 100644
index 0000000..05aa72d
--- /dev/null
+++ b/vcpkg/ports/soapysdr/portfile.cmake
@@ -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")
diff --git a/vcpkg/ports/soapysdr/usage b/vcpkg/ports/soapysdr/usage
new file mode 100644
index 0000000..34a2b48
--- /dev/null
+++ b/vcpkg/ports/soapysdr/usage
@@ -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
diff --git a/vcpkg/ports/soapysdr/vcpkg.json b/vcpkg/ports/soapysdr/vcpkg.json
new file mode 100644
index 0000000..c950cba
--- /dev/null
+++ b/vcpkg/ports/soapysdr/vcpkg.json
@@ -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
+ }
+ ]
+}