From 7f5ac30bd461f04913ac85406fef6e4fa9791994 Mon Sep 17 00:00:00 2001 From: mef Date: Mon, 13 Oct 2014 13:07:13 +0000 Subject: Import ham/gr-fcdproplus as gr-fcdproplus-3.7.11 gr-fcdproplus is an linux and OSX addon for gnuradio to implement a funcube dongle pro+ source. On linux autodetects the correct soundcard from /proc/asound/cards. This idea was taken from the osmosdr drivers. To control the device the hidraw code of the hidapi is used. --- ham/gr-fcdproplus/DESCR | 6 ++++++ ham/gr-fcdproplus/Makefile | 39 +++++++++++++++++++++++++++++++++++++++ ham/gr-fcdproplus/PLIST | 15 +++++++++++++++ ham/gr-fcdproplus/buildlink3.mk | 13 +++++++++++++ ham/gr-fcdproplus/distinfo | 6 ++++++ 5 files changed, 79 insertions(+) create mode 100644 ham/gr-fcdproplus/DESCR create mode 100644 ham/gr-fcdproplus/Makefile create mode 100644 ham/gr-fcdproplus/PLIST create mode 100644 ham/gr-fcdproplus/buildlink3.mk create mode 100644 ham/gr-fcdproplus/distinfo (limited to 'ham/gr-fcdproplus') diff --git a/ham/gr-fcdproplus/DESCR b/ham/gr-fcdproplus/DESCR new file mode 100644 index 00000000000..67152243e85 --- /dev/null +++ b/ham/gr-fcdproplus/DESCR @@ -0,0 +1,6 @@ +gr-fcdproplus is an linux and OSX addon for gnuradio to implement a +funcube dongle pro+ source. +On linux autodetects the correct soundcard from /proc/asound/cards. +This idea was taken from the osmosdr drivers. + +To control the device the hidraw code of the hidapi is used. diff --git a/ham/gr-fcdproplus/Makefile b/ham/gr-fcdproplus/Makefile new file mode 100644 index 00000000000..a8ae0b3cfe5 --- /dev/null +++ b/ham/gr-fcdproplus/Makefile @@ -0,0 +1,39 @@ +# $NetBSD: Makefile,v 1.1 2014/10/13 13:07:13 mef Exp $ + +DISTNAME= gr-fcdproplus_3.7.11.orig +PKGNAME= ${DISTNAME:S/_/-/S/.orig//} +CATEGORIES= ham +MASTER_SITES+= ${MASTER_SITE_DEBIAN:=pool/main/g/gr-fcdproplus/} +EXTRACT_SUFX= .tar.xz + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= https://github.com/dl1ksv/gr-fcdproplus +COMMENT= Addon for funcube dongle pro+ to GNU Radio +LICENSE= gnu-gpl-v2 + +USE_LANGUAGES= c c++ +USE_TOOLS= cmake +USE_CMAKE= yes + +WRKSRC= ${WRKDIR}/${PKGNAME_NOREV} +CXXFLAGS+= -I${PREFIX}/include/libusb-1.0 + +# Suppress warning for developer +CMAKE_ARGS+= -Wno-dev +CMAKE_ARGS+= -DGNURADIO_RUNTIME_INCLUDE_DIRS=${PREFIX}/include +PLIST_SUBST+= PYSITELIB=${PYSITELIB} + +SUBST_CLASSES+= libusb +SUBST_FILES.libusb+= CMakeLists.txt +SUBST_STAGE.libusb= pre-configure +SUBST_SED.libusb= -e 's,@@PREFIX@@,${PREFIX},' +SUBST_MESSAGE.libusb= Fix for "libusb.h not found" + +.include "../../devel/boost-headers/buildlink3.mk" +.include "../../devel/boost-libs/buildlink3.mk" +.include "../../devel/libusb1/buildlink3.mk" +.include "../../lang/python/application.mk" +.include "../../lang/python/pyversion.mk" +.include "../../ham/gnuradio-core/buildlink3.mk" + +.include "../../mk/bsd.pkg.mk" diff --git a/ham/gr-fcdproplus/PLIST b/ham/gr-fcdproplus/PLIST new file mode 100644 index 00000000000..de646d80383 --- /dev/null +++ b/ham/gr-fcdproplus/PLIST @@ -0,0 +1,15 @@ +@comment $NetBSD: PLIST,v 1.1 2014/10/13 13:07:13 mef Exp $ +include/fcdproplus/api.h +include/fcdproplus/fcdproplus.h +include/fcdproplus/fcdproplus/swig/fcdproplus_swig.i +include/fcdproplus/fcdproplus/swig/fcdproplus_swig_doc.i +lib/libgnuradio-fcdproplus.so +lib/pkgconfig/gnuradio-fcdproplus.pc +${PYSITELIB}/fcdproplus/__init__.py +${PYSITELIB}/fcdproplus/__init__.pyc +${PYSITELIB}/fcdproplus/__init__.pyo +${PYSITELIB}/fcdproplus/_fcdproplus_swig.so +${PYSITELIB}/fcdproplus/fcdproplus_swig.py +${PYSITELIB}/fcdproplus/fcdproplus_swig.pyc +${PYSITELIB}/fcdproplus/fcdproplus_swig.pyo +share/gnuradio/grc/blocks/fcdproplus_fcdproplus.xml diff --git a/ham/gr-fcdproplus/buildlink3.mk b/ham/gr-fcdproplus/buildlink3.mk new file mode 100644 index 00000000000..02967d7953c --- /dev/null +++ b/ham/gr-fcdproplus/buildlink3.mk @@ -0,0 +1,13 @@ +# $NetBSD: buildlink3.mk,v 1.1 2014/10/13 13:07:13 mef Exp $ + +BUILDLINK_TREE+= gr-fcdproplus + +.if !defined(GR_FCDPROPLUS_BUILDLINK3_MK) +GR_FCDPROPLUS_BUILDLINK3_MK:= + +BUILDLINK_API_DEPENDS.gr-fcdproplus+= gr-fcdproplus>=0.1 +BUILDLINK_ABI_DEPENDS.gr-fcdproplus+= gr-fcdproplus>=0.1 +BUILDLINK_PKGSRCDIR.gr-fcdproplus?= ../../ham/gr-fcdproplus +.endif # GR_FCDPROPLUS_BUILDLINK3_MK + +BUILDLINK_TREE+= -gr-fcdproplus diff --git a/ham/gr-fcdproplus/distinfo b/ham/gr-fcdproplus/distinfo new file mode 100644 index 00000000000..3375eb9d60b --- /dev/null +++ b/ham/gr-fcdproplus/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1 2014/10/13 13:07:13 mef Exp $ + +SHA1 (gr-fcdproplus_3.7.11.orig.tar.xz) = f9997af287116c821e49209d65e7cb5525b21544 +RMD160 (gr-fcdproplus_3.7.11.orig.tar.xz) = 571c4e698bd68d3f162cabb9dea03c7d4683ab10 +Size (gr-fcdproplus_3.7.11.orig.tar.xz) = 102896 bytes +SHA1 (patch-CMakeLists.txt) = 63f8e5ba6fef409d64f66638dc94df3ef9d1f63a -- cgit v1.2.3