From f48c114a7dba4a3745df6ffaf1159dbe39d74edc Mon Sep 17 00:00:00 2001 From: Ganael LAPLANCHE Date: Fri, 17 May 2013 13:10:11 +0000 Subject: [PATCH] OsmoSDR is a 100% Free Software based small form-factor inexpensive SDR (Software Defined Radio) project. WWW: http://sdr.osmocom.org/trac --- comms/Makefile | 1 + comms/gr-osmosdr/Makefile | 47 +++++++++++++++++++++ comms/gr-osmosdr/distinfo | 2 + comms/gr-osmosdr/files/patch-CMakeLists.txt | 19 +++++++++ comms/gr-osmosdr/pkg-descr | 4 ++ comms/gr-osmosdr/pkg-plist | 32 ++++++++++++++ 6 files changed, 105 insertions(+) create mode 100644 comms/gr-osmosdr/Makefile create mode 100644 comms/gr-osmosdr/distinfo create mode 100644 comms/gr-osmosdr/files/patch-CMakeLists.txt create mode 100644 comms/gr-osmosdr/pkg-descr create mode 100644 comms/gr-osmosdr/pkg-plist diff --git a/comms/Makefile b/comms/Makefile index b4b606c394b0..7e7dc1594a49 100644 --- a/comms/Makefile +++ b/comms/Makefile @@ -51,6 +51,7 @@ SUBDIR += gnuradio SUBDIR += gpredict SUBDIR += gpsk31 + SUBDIR += gr-osmosdr SUBDIR += grig SUBDIR += gscmxx SUBDIR += gsmlib diff --git a/comms/gr-osmosdr/Makefile b/comms/gr-osmosdr/Makefile new file mode 100644 index 000000000000..3878362c8353 --- /dev/null +++ b/comms/gr-osmosdr/Makefile @@ -0,0 +1,47 @@ +# $FreeBSD$ + +PORTNAME= gr-osmosdr +PORTVERSION= 20130509 +CATEGORIES= comms hamradio +MASTER_SITES= http://contribs.martymac.org/FreeBSD-ports/distfiles/ \ + LOCAL/martymac +EXTRACT_SUFX= .tgz + +MAINTAINER= martymac@FreeBSD.org +COMMENT= GNU Radio OsmoSDR module + +LICENSE= GPLv3 + +BUILD_DEPENDS= swig:${PORTSDIR}/devel/swig13 \ + doxygen:${PORTSDIR}/devel/doxygen \ + cheetah:${PORTSDIR}/devel/py-cheetah +LIB_DEPENDS= gnuradio-core:${PORTSDIR}/comms/gnuradio \ + gnuradio-fcd:${PORTSDIR}/comms/gnuradio \ + gruel:${PORTSDIR}/comms/gnuradio \ + boost_system:${PORTSDIR}/devel/boost-libs \ + boost_thread:${PORTSDIR}/devel/boost-libs + +USES= pkgconfig cmake +USE_LDCONFIG= yes +USE_PYTHON= 2.7+ + +CMAKE_ARGS+= -DENABLE_DEFAULT:BOOL=OFF \ + -DENABLE_FCD:BOOL=ON \ + -DENABLE_FILE:BOOL=ON + +OPTIONS_DEFINE= RTLSDR +RTLSDR_DESC= Enable rtl-sdr (RTL2832) support +OPTIONS_DEFAULT= RTLSDR + +.include + +.if ${PORT_OPTIONS:MRTLSDR} +LIB_DEPENDS+= rtlsdr:${PORTSDIR}/comms/rtl-sdr +CMAKE_ARGS+= -DENABLE_RTL:BOOL=ON \ + -DENABLE_RTL_TCP:BOOL=ON +.endif + +post-install: + ${LN} -s libgnuradio-osmosdr.so.0.0.1git ${PREFIX}/lib/libgnuradio-osmosdr.so.0 + +.include diff --git a/comms/gr-osmosdr/distinfo b/comms/gr-osmosdr/distinfo new file mode 100644 index 000000000000..e49b93845dff --- /dev/null +++ b/comms/gr-osmosdr/distinfo @@ -0,0 +1,2 @@ +SHA256 (gr-osmosdr-20130509.tgz) = cb05c11c2b36a22105c925dd8bf972bbf1d6af0c4d68753edf0ba702d4dd715d +SIZE (gr-osmosdr-20130509.tgz) = 194496 diff --git a/comms/gr-osmosdr/files/patch-CMakeLists.txt b/comms/gr-osmosdr/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..1ed17e244ba5 --- /dev/null +++ b/comms/gr-osmosdr/files/patch-CMakeLists.txt @@ -0,0 +1,19 @@ +--- CMakeLists.txt.orig 2012-11-07 18:06:30.000000000 -0500 ++++ CMakeLists.txt 2012-11-07 18:07:40.000000000 -0500 +@@ -93,6 +93,7 @@ + include(GrPlatform) #define LIB_SUFFIX + set(GR_RUNTIME_DIR bin) + set(GR_LIBRARY_DIR lib${LIB_SUFFIX}) ++set(GR_LIBDATA_DIR libdata) + set(GR_INCLUDE_DIR include) + set(GR_DATA_DIR share) + set(GR_PKG_DATA_DIR ${GR_DATA_DIR}/${CMAKE_PROJECT_NAME}) +@@ -197,7 +198,7 @@ + + INSTALL( + FILES ${CMAKE_CURRENT_BINARY_DIR}/gnuradio-osmosdr.pc +- DESTINATION ${GR_LIBRARY_DIR}/pkgconfig ++ DESTINATION ${GR_LIBDATA_DIR}/pkgconfig + ) + + ######################################################################## diff --git a/comms/gr-osmosdr/pkg-descr b/comms/gr-osmosdr/pkg-descr new file mode 100644 index 000000000000..d079e813af62 --- /dev/null +++ b/comms/gr-osmosdr/pkg-descr @@ -0,0 +1,4 @@ +OsmoSDR is a 100% Free Software based small form-factor inexpensive SDR +(Software Defined Radio) project. + +WWW: http://sdr.osmocom.org/trac diff --git a/comms/gr-osmosdr/pkg-plist b/comms/gr-osmosdr/pkg-plist new file mode 100644 index 000000000000..be2d4628cb31 --- /dev/null +++ b/comms/gr-osmosdr/pkg-plist @@ -0,0 +1,32 @@ +bin/osmocom_fft +bin/osmocom_siggen +bin/osmocom_siggen_nogui +bin/osmocom_spectrum_sense +include/osmosdr/swig/osmosdr_swig.i +include/osmosdr/swig/osmosdr_swig_doc.i +include/osmosdr/osmosdr_api.h +include/osmosdr/osmosdr_pimpl.h +include/osmosdr/osmosdr_ranges.h +include/osmosdr/osmosdr_device.h +include/osmosdr/osmosdr_sink_c.h +include/osmosdr/osmosdr_source_c.h +lib/libgnuradio-osmosdr.so.0.0.1git +lib/libgnuradio-osmosdr.so.0 +lib/libgnuradio-osmosdr.so +libdata/pkgconfig/gnuradio-osmosdr.pc +share/gnuradio/grc/blocks/rtlsdr_source_c.xml +share/gnuradio/grc/blocks/osmosdr_sink_c.xml +share/gnuradio/grc/blocks/osmosdr_source_c.xml +%%PYTHON_SITELIBDIR%%/osmosdr/_osmosdr_swig.so +%%PYTHON_SITELIBDIR%%/osmosdr/osmocom_siggen_base.pyo +%%PYTHON_SITELIBDIR%%/osmosdr/osmocom_siggen_base.pyc +%%PYTHON_SITELIBDIR%%/osmosdr/osmocom_siggen_base.py +%%PYTHON_SITELIBDIR%%/osmosdr/osmosdr_swig.py +%%PYTHON_SITELIBDIR%%/osmosdr/osmosdr_swig.pyc +%%PYTHON_SITELIBDIR%%/osmosdr/osmosdr_swig.pyo +%%PYTHON_SITELIBDIR%%/osmosdr/__init__.py +%%PYTHON_SITELIBDIR%%/osmosdr/__init__.pyc +%%PYTHON_SITELIBDIR%%/osmosdr/__init__.pyo +@dirrm include/osmosdr/swig +@dirrm include/osmosdr +@dirrm %%PYTHON_SITELIBDIR%%/osmosdr