diff options
author | tnn <tnn@pkgsrc.org> | 2020-08-01 07:46:14 +0000 |
---|---|---|
committer | tnn <tnn@pkgsrc.org> | 2020-08-01 07:46:14 +0000 |
commit | 1c60294a90aadeb51c5061368aab287fea66c432 (patch) | |
tree | bf3e3d59b77efd06f407cdf8489df2cc4d22960e | |
parent | 792d35128fa1767089b0c8cde4ff25069214d20d (diff) | |
download | pkgsrc-1c60294a90aadeb51c5061368aab287fea66c432.tar.gz |
ham/soapy-sdr: import soapy-sdr-0.7.2
SoapySDR is an open-source generalized API and runtime library for interfacing
with SDR devices. With SoapySDR, you can instantiate, configure, and stream
with an SDR device in a variety of environments. Most off the shelf
SDR hardware platforms are supported by SoapySDR, and many open source
applications rely on SoapySDR for hardware integration support. In addition,
SoapySDR has bindings for development frameworks like GNU Radio and Pothos.
-rw-r--r-- | ham/soapy-sdr/DESCR | 6 | ||||
-rw-r--r-- | ham/soapy-sdr/Makefile | 47 | ||||
-rw-r--r-- | ham/soapy-sdr/PLIST | 34 | ||||
-rw-r--r-- | ham/soapy-sdr/buildlink3.mk | 14 | ||||
-rw-r--r-- | ham/soapy-sdr/distinfo | 6 |
5 files changed, 107 insertions, 0 deletions
diff --git a/ham/soapy-sdr/DESCR b/ham/soapy-sdr/DESCR new file mode 100644 index 00000000000..3bbf471db74 --- /dev/null +++ b/ham/soapy-sdr/DESCR @@ -0,0 +1,6 @@ +SoapySDR is an open-source generalized API and runtime library for interfacing +with SDR devices. With SoapySDR, you can instantiate, configure, and stream +with an SDR device in a variety of environments. Most off the shelf +SDR hardware platforms are supported by SoapySDR, and many open source +applications rely on SoapySDR for hardware integration support. In addition, +SoapySDR has bindings for development frameworks like GNU Radio and Pothos. diff --git a/ham/soapy-sdr/Makefile b/ham/soapy-sdr/Makefile new file mode 100644 index 00000000000..406c645d544 --- /dev/null +++ b/ham/soapy-sdr/Makefile @@ -0,0 +1,47 @@ +# $NetBSD: Makefile,v 1.1 2020/08/01 07:46:14 tnn Exp $ + +DISTNAME= soapy-sdr-0.7.2 +CATEGORIES= ham +MASTER_SITES= ${MASTER_SITE_GITHUB:=pothosware/} +GITHUB_PROJECT= SoapySDR +GITHUB_TAG= ${DISTNAME} + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= https://github.com/pothosware/SoapySDR/wiki +COMMENT= Vendor and platform neutral SDR support library +LICENSE= boost-license + +USE_CMAKE= yes +USE_TOOLS+= pkg-config +USE_LANGUAGES+= c c++ + +# Uses PyObject_Compare() (Supports python 3.8 in master branch) +PYTHON_VERSIONS_ACCEPTED= 27 +PY_PATCHPLIST= yes + +.include "../../lang/python/pyversion.mk" + +.if !empty(_PYTHON_VERSION:M3*) +CMAKE_ARGS+= -DPYTHON3_EXECUTABLE=${PYTHONBIN:Q} +CMAKE_ARGS+= -DPYTHON3_LIBRARIES=${PREFIX:Q}/${PYLIB:Q} +CMAKE_ARGS+= -DPYTHON3_INCLUDE_DIRS=${PREFIX:Q}/${PYINC:Q} +.endif + +SUBST_CLASSES+= getopt +SUBST_STAGE.getopt= pre-configure +SUBST_MESSAGE.getopt= Fixing getopt_long_only +SUBST_FILES.getopt+= apps/SoapySDRUtil.cpp +SUBST_SED.getopt+= -e s,getopt_long_only,getopt_long, + +SUBST_CLASSES+= mandir +SUBST_STAGE.mandir= pre-configure +SUBST_MESSAGE.mandir= Fixing manpage directory +SUBST_FILES.mandir+= apps/CMakeLists.txt +SUBST_SED.mandir+= -e 's,share/man,${PKGMANDIR},' + +# boost's posix_thread header causes pthread_create() reference +LDFLAGS+= -lpthread + +.include "../../devel/boost-headers/buildlink3.mk" +.include "../../lang/python/extension.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/ham/soapy-sdr/PLIST b/ham/soapy-sdr/PLIST new file mode 100644 index 00000000000..561255f31bc --- /dev/null +++ b/ham/soapy-sdr/PLIST @@ -0,0 +1,34 @@ +@comment $NetBSD: PLIST,v 1.1 2020/08/01 07:46:14 tnn Exp $ +bin/SoapySDRUtil +include/SoapySDR/Config.h +include/SoapySDR/Config.hpp +include/SoapySDR/Constants.h +include/SoapySDR/ConverterPrimitives.hpp +include/SoapySDR/ConverterRegistry.hpp +include/SoapySDR/Device.h +include/SoapySDR/Device.hpp +include/SoapySDR/Errors.h +include/SoapySDR/Errors.hpp +include/SoapySDR/Formats.h +include/SoapySDR/Formats.hpp +include/SoapySDR/Logger.h +include/SoapySDR/Logger.hpp +include/SoapySDR/Modules.h +include/SoapySDR/Modules.hpp +include/SoapySDR/Registry.hpp +include/SoapySDR/Time.h +include/SoapySDR/Time.hpp +include/SoapySDR/Types.h +include/SoapySDR/Types.hpp +include/SoapySDR/Version.h +include/SoapySDR/Version.hpp +lib/libSoapySDR.so +lib/libSoapySDR.so.0.7 +lib/libSoapySDR.so.${PKGVERSION} +lib/pkgconfig/SoapySDR.pc +${PYSITELIB}/SoapySDR.py +${PYSITELIB}/_SoapySDR.so +man/man1/SoapySDRUtil.1 +share/cmake/SoapySDR/SoapySDRConfig.cmake +share/cmake/SoapySDR/SoapySDRConfigVersion.cmake +share/cmake/SoapySDR/SoapySDRUtil.cmake diff --git a/ham/soapy-sdr/buildlink3.mk b/ham/soapy-sdr/buildlink3.mk new file mode 100644 index 00000000000..6635b72fb4f --- /dev/null +++ b/ham/soapy-sdr/buildlink3.mk @@ -0,0 +1,14 @@ +# $NetBSD: buildlink3.mk,v 1.1 2020/08/01 07:46:14 tnn Exp $ + +BUILDLINK_TREE+= soapy-sdr + +.if !defined(SOAPY_SDR_BUILDLINK3_MK) +SOAPY_SDR_BUILDLINK3_MK:= + +BUILDLINK_API_DEPENDS.soapy-sdr+= soapy-sdr>=0.7.2 +BUILDLINK_PKGSRCDIR.soapy-sdr?= ../../ham/soapy-sdr + +#.include "../../devel/boost-libs/buildlink3.mk" +.endif # SOAPY_SDR_BUILDLINK3_MK + +BUILDLINK_TREE+= -soapy-sdr diff --git a/ham/soapy-sdr/distinfo b/ham/soapy-sdr/distinfo new file mode 100644 index 00000000000..b91944a9d37 --- /dev/null +++ b/ham/soapy-sdr/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1 2020/08/01 07:46:14 tnn Exp $ + +SHA1 (soapy-sdr-0.7.2.tar.gz) = f2639510f2ba006c1f8f96e53de6809dbbf41c51 +RMD160 (soapy-sdr-0.7.2.tar.gz) = bea70c024d73ed0053d4ecc43c9b8a78fb7c60ea +SHA512 (soapy-sdr-0.7.2.tar.gz) = 2454b9b6bf4542f3bce2c6a8e1c886cee9179ca0e13e3c1e22817a05ef671428a3cb8fea69e496c8b62573f360c248508edf3d0871ec5063dfac8211b122d371 +Size (soapy-sdr-0.7.2.tar.gz) = 124607 bytes |