Date: Wed, 7 Nov 2012 07:48:48 +0000 (UTC) From: Ganael LAPLANCHE <martymac@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r307117 - in head/comms: . rtl-sdr rtl-sdr/files Message-ID: <201211070748.qA77mmmO079218@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: martymac Date: Wed Nov 7 07:48:48 2012 New Revision: 307117 URL: http://svnweb.freebsd.org/changeset/ports/307117 Log: Add rtl-sdr, set of tools to use RTL2832U-based USB dongles as cheap SDR Feature safe: yes Added: head/comms/rtl-sdr/ head/comms/rtl-sdr/Makefile (contents, props changed) head/comms/rtl-sdr/distinfo (contents, props changed) head/comms/rtl-sdr/files/ head/comms/rtl-sdr/files/extra-patch-Makefile.am (contents, props changed) head/comms/rtl-sdr/files/patch-configure.ac (contents, props changed) head/comms/rtl-sdr/pkg-descr (contents, props changed) head/comms/rtl-sdr/pkg-plist (contents, props changed) Modified: head/comms/Makefile Modified: head/comms/Makefile ============================================================================== --- head/comms/Makefile Wed Nov 7 07:47:56 2012 (r307116) +++ head/comms/Makefile Wed Nov 7 07:48:48 2012 (r307117) @@ -128,6 +128,7 @@ SUBDIR += qsstv SUBDIR += qtel SUBDIR += remserial + SUBDIR += rtl-sdr SUBDIR += rubygem-callsign SUBDIR += rubygem-ruby-termios SUBDIR += rxtx Added: head/comms/rtl-sdr/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/comms/rtl-sdr/Makefile Wed Nov 7 07:48:48 2012 (r307117) @@ -0,0 +1,51 @@ +# New ports collection makefile for: rtl-sdr +# Date created: 23 August 2012 +# Whom: Ganael Laplanche <ganael.laplanche@martymac.org> +# +# $FreeBSD$ +# + +PORTNAME= rtl-sdr +PORTVERSION= 20121104 +CATEGORIES= comms hamradio +MASTER_SITES= http://contribs.martymac.org/FreeBSD-ports/distfiles/ \ + LOCAL/martymac +EXTRACT_SUFX= .tgz + +MAINTAINER= martymac@FreeBSD.org +COMMENT= Commandline tool that performs SDR with RTL2832-based USB sticks + +LICENSE= GPLv2 + +USE_PKGCONFIG= yes +USE_AUTOTOOLS= autoconf:env aclocal:env automake:env libtool +USE_GMAKE= yes +GNU_CONFIGURE= yes +CPPFLAGS+= -I${LOCALBASE}/include +LDFLAGS+= -L${LOCALBASE}/lib +USE_LDCONFIG= yes + +DOCSDIR= ${PREFIX}/share/doc/librtlsdr + +.include <bsd.port.pre.mk> + +.if ${OSVERSION} < 800069 +IGNORE= requires FreeBSD 8.0 or later +.endif + +.if ${PORT_OPTIONS:MDOCS} +BUILD_DEPENDS+= doxygen:${PORTSDIR}/devel/doxygen +.else +EXTRA_PATCHES+= ${FILESDIR}/extra-patch-Makefile.am +.endif + +post-patch: + @${REINPLACE_CMD} 's|^pkgdocdir=.*|pkgdocdir=${DOCSDIR}|' \ + ${WRKSRC}/Makefile.am + @${REINPLACE_CMD} 's|^pkgconfigdir =.*|pkgconfigdir = ${PREFIX}/libdata/pkgconfig|' \ + ${WRKSRC}/Makefile.am + +pre-configure: + @(cd ${WRKSRC} && ${AUTORECONF} -fi) + +.include <bsd.port.post.mk> Added: head/comms/rtl-sdr/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/comms/rtl-sdr/distinfo Wed Nov 7 07:48:48 2012 (r307117) @@ -0,0 +1,2 @@ +SHA256 (rtl-sdr-20121104.tgz) = 0119016bda860fe66298c81414ae554810a5464b2fe9ba8e2b97cd1a81fd70ba +SIZE (rtl-sdr-20121104.tgz) = 109251 Added: head/comms/rtl-sdr/files/extra-patch-Makefile.am ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/comms/rtl-sdr/files/extra-patch-Makefile.am Wed Nov 7 07:48:48 2012 (r307117) @@ -0,0 +1,32 @@ +--- Makefile.am.orig 2012-08-23 18:26:27.000000000 +0200 ++++ Makefile.am 2012-08-23 18:26:39.000000000 +0200 +@@ -15,29 +15,4 @@ + + EXTRA_DIST = git-version-gen + +-if HAVE_DOXYGEN +- +-pkgdocdir=$(docdir)/$(PACKAGE)-$(VERSION) +-doc_htmldir=$(pkgdocdir)/html +- +-doc_html_DATA = $(top_builddir)/doc/html.tar +- +-$(doc_html_DATA): $(top_builddir)/doc/html/index.html +- cd $(top_builddir)/doc && tar cf html.tar html +- +-$(top_builddir)/doc/html/index.html: $(SOURCES) Doxyfile +- @rm -rf doc +- mkdir -p doc +- $(DOXYGEN) Doxyfile +- +-install-data-hook: +- cd $(DESTDIR)$(doc_htmldir) && tar xf html.tar --strip-components 1 && rm -f html.tar +- +-uninstall-hook: +- cd $(DESTDIR) && rm -rf $(doc_htmldir) +- +-DX_CLEAN = doc/{html,latex}/* doc/html.tar +- +-endif +- + MOSTLYCLEANFILES = $(DX_CLEAN) Added: head/comms/rtl-sdr/files/patch-configure.ac ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/comms/rtl-sdr/files/patch-configure.ac Wed Nov 7 07:48:48 2012 (r307117) @@ -0,0 +1,22 @@ +--- configure.ac.orig 2012-08-23 08:40:54.000000000 +0200 ++++ configure.ac 2012-08-23 11:47:20.000000000 +0200 +@@ -14,9 +14,7 @@ + LT_INIT + AC_PROG_LIBTOOL + +-PKG_CHECK_MODULES(LIBUSB, libusb-1.0 >= 1.0) +-LIBS="$LIBS $LIBUSB_LIBS" +-CFLAGS="$CFLAGS $LIBUSB_CFLAGS" ++LIBS="$LIBS -lusb" + + AC_PATH_PROG(DOXYGEN,doxygen,false) + AM_CONDITIONAL(HAVE_DOXYGEN, test $DOXYGEN != false) +@@ -34,7 +32,7 @@ + + dnl checks for required libraries + dnl pthreads +-AC_CHECK_LIB(pthread, pthread_create, [LIBS="$LIBS -lpthread"]) ++AC_CHECK_LIB(pthread, pthread_create, [LIBS="$LIBS -pthread"]) + + dnl libmath (for rtl_fm) + AC_CHECK_LIB(m, atan2, [LIBS="$LIBS -lm"]) Added: head/comms/rtl-sdr/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/comms/rtl-sdr/pkg-descr Wed Nov 7 07:48:48 2012 (r307117) @@ -0,0 +1,4 @@ +Set of tools that can initialize the RTL2832, tune to a given frequency, and +record the I/Q-samples to a file. + +WWW: http://sdr.osmocom.org/trac/wiki/rtl-sdr Added: head/comms/rtl-sdr/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/comms/rtl-sdr/pkg-plist Wed Nov 7 07:48:48 2012 (r307117) @@ -0,0 +1,124 @@ +bin/rtl_sdr +bin/rtl_tcp +bin/rtl_test +bin/rtl_fm +bin/rtl_eeprom +include/rtl-sdr.h +include/rtl-sdr_export.h +lib/librtlsdr.la +lib/librtlsdr.a +libdata/pkgconfig/librtlsdr.pc +lib/librtlsdr.so.0 +lib/librtlsdr.so +%%PORTDOCS%%%%DOCSDIR%%/html/structreg__field.html +%%PORTDOCS%%%%DOCSDIR%%/html/sync_off.png +%%PORTDOCS%%%%DOCSDIR%%/html/ftv2blank.png +%%PORTDOCS%%%%DOCSDIR%%/html/jquery.js +%%PORTDOCS%%%%DOCSDIR%%/html/reg__field_8h_source.html +%%PORTDOCS%%%%DOCSDIR%%/html/navtree.css +%%PORTDOCS%%%%DOCSDIR%%/html/structcommand.js +%%PORTDOCS%%%%DOCSDIR%%/html/structrtlsdr__dongle.js +%%PORTDOCS%%%%DOCSDIR%%/html/structgain__comb.html +%%PORTDOCS%%%%DOCSDIR%%/html/index.html +%%PORTDOCS%%%%DOCSDIR%%/html/ftv2folderclosed.png +%%PORTDOCS%%%%DOCSDIR%%/html/structreg__field__ops.js +%%PORTDOCS%%%%DOCSDIR%%/html/structfm__state.js +%%PORTDOCS%%%%DOCSDIR%%/html/structfm__state.html +%%PORTDOCS%%%%DOCSDIR%%/html/structe4k__state.html +%%PORTDOCS%%%%DOCSDIR%%/html/structrtlsdr__tuner__iface.js +%%PORTDOCS%%%%DOCSDIR%%/html/ftv2mnode.png +%%PORTDOCS%%%%DOCSDIR%%/html/ftv2doc.png +%%PORTDOCS%%%%DOCSDIR%%/html/structrtlsdr__tuner__iface.html +%%PORTDOCS%%%%DOCSDIR%%/html/tuner__fc2580_8h_source.html +%%PORTDOCS%%%%DOCSDIR%%/html/dir_68267d1309a1af8e8297ef4c3efbcdba.html +%%PORTDOCS%%%%DOCSDIR%%/html/structpll__settings.html +%%PORTDOCS%%%%DOCSDIR%%/html/bdwn.png +%%PORTDOCS%%%%DOCSDIR%%/html/ftv2pnode.png +%%PORTDOCS%%%%DOCSDIR%%/html/structe4k__state.js +%%PORTDOCS%%%%DOCSDIR%%/html/structstrbuf.html +%%PORTDOCS%%%%DOCSDIR%%/html/rtlsdr__i2c_8h_source.html +%%PORTDOCS%%%%DOCSDIR%%/html/ftv2link.png +%%PORTDOCS%%%%DOCSDIR%%/html/ftv2node.png +%%PORTDOCS%%%%DOCSDIR%%/html/ftv2folderopen.png +%%PORTDOCS%%%%DOCSDIR%%/html/navtree.js +%%PORTDOCS%%%%DOCSDIR%%/html/structllist.js +%%PORTDOCS%%%%DOCSDIR%%/html/structcmd__state.js +%%PORTDOCS%%%%DOCSDIR%%/html/doxygen.css +%%PORTDOCS%%%%DOCSDIR%%/html/structcmd__state.html +%%PORTDOCS%%%%DOCSDIR%%/html/tab_s.png +%%PORTDOCS%%%%DOCSDIR%%/html/bc_s.png +%%PORTDOCS%%%%DOCSDIR%%/html/getopt_8h_source.html +%%PORTDOCS%%%%DOCSDIR%%/html/sync_on.png +%%PORTDOCS%%%%DOCSDIR%%/html/tuner__fc0012_8h_source.html +%%PORTDOCS%%%%DOCSDIR%%/html/ftv2ns.png +%%PORTDOCS%%%%DOCSDIR%%/html/doxygen.png +%%PORTDOCS%%%%DOCSDIR%%/html/structe4k__pll__params.js +%%PORTDOCS%%%%DOCSDIR%%/html/ftv2mlastnode.png +%%PORTDOCS%%%%DOCSDIR%%/html/annotated.js +%%PORTDOCS%%%%DOCSDIR%%/html/structstrbuf.js +%%PORTDOCS%%%%DOCSDIR%%/html/tab_a.png +%%PORTDOCS%%%%DOCSDIR%%/html/tabs.css +%%PORTDOCS%%%%DOCSDIR%%/html/tab_h.png +%%PORTDOCS%%%%DOCSDIR%%/html/structgain__comb.js +%%PORTDOCS%%%%DOCSDIR%%/html/dir_d44c64559bbebec7f509842c48db8b23.html +%%PORTDOCS%%%%DOCSDIR%%/html/tuner__fc0013_8h_source.html +%%PORTDOCS%%%%DOCSDIR%%/html/structreg__field.js +%%PORTDOCS%%%%DOCSDIR%%/html/structreg__field__ops.html +%%PORTDOCS%%%%DOCSDIR%%/html/tab_b.png +%%PORTDOCS%%%%DOCSDIR%%/html/structrtlsdr__dev.html +%%PORTDOCS%%%%DOCSDIR%%/html/ftv2vertline.png +%%PORTDOCS%%%%DOCSDIR%%/html/resize.js +%%PORTDOCS%%%%DOCSDIR%%/html/ftv2plastnode.png +%%PORTDOCS%%%%DOCSDIR%%/html/dir_5992cd9d624b1e0ab1a3765cc8208356.js +%%PORTDOCS%%%%DOCSDIR%%/html/structcommand.html +%%PORTDOCS%%%%DOCSDIR%%/html/nav_f.png +%%PORTDOCS%%%%DOCSDIR%%/html/rtl-sdr__export_8h_source.html +%%PORTDOCS%%%%DOCSDIR%%/html/classes.html +%%PORTDOCS%%%%DOCSDIR%%/html/files.html +%%PORTDOCS%%%%DOCSDIR%%/html/structllist.html +%%PORTDOCS%%%%DOCSDIR%%/html/dir_d44c64559bbebec7f509842c48db8b23.js +%%PORTDOCS%%%%DOCSDIR%%/html/files.js +%%PORTDOCS%%%%DOCSDIR%%/html/structcmd.html +%%PORTDOCS%%%%DOCSDIR%%/html/nav_h.png +%%PORTDOCS%%%%DOCSDIR%%/html/structoption.html +%%PORTDOCS%%%%DOCSDIR%%/html/rtl-sdr_8h_source.html +%%PORTDOCS%%%%DOCSDIR%%/html/annotated.html +%%PORTDOCS%%%%DOCSDIR%%/html/open.png +%%PORTDOCS%%%%DOCSDIR%%/html/structe4k__pll__params.html +%%PORTDOCS%%%%DOCSDIR%%/html/ftv2cl.png +%%PORTDOCS%%%%DOCSDIR%%/html/structrtlsdr__dev.js +%%PORTDOCS%%%%DOCSDIR%%/html/ftv2mo.png +%%PORTDOCS%%%%DOCSDIR%%/html/ftv2splitbar.png +%%PORTDOCS%%%%DOCSDIR%%/html/closed.png +%%PORTDOCS%%%%DOCSDIR%%/html/dir_68267d1309a1af8e8297ef4c3efbcdba.js +%%PORTDOCS%%%%DOCSDIR%%/html/structoption.js +%%PORTDOCS%%%%DOCSDIR%%/html/dir_5992cd9d624b1e0ab1a3765cc8208356.html +%%PORTDOCS%%%%DOCSDIR%%/html/navtreeindex0.js +%%PORTDOCS%%%%DOCSDIR%%/html/tuner__e4k_8h_source.html +%%PORTDOCS%%%%DOCSDIR%%/html/ftv2lastnode.png +%%PORTDOCS%%%%DOCSDIR%%/html/structpll__settings.js +%%PORTDOCS%%%%DOCSDIR%%/html/dynsections.js +%%PORTDOCS%%%%DOCSDIR%%/html/structrtlsdr__dongle.html +%%PORTDOCS%%%%DOCSDIR%%/html/structcmd.js +%%PORTDOCS%%%%DOCSDIR%%/html/nav_g.png +%%PORTDOCS%%%%DOCSDIR%%/html/structrtlsdr__config.html +%%PORTDOCS%%%%DOCSDIR%%/html/struct__Sys__Info__Type.html +%%PORTDOCS%%%%DOCSDIR%%/html/struct__R828__I2C__LEN__TYPE.html +%%PORTDOCS%%%%DOCSDIR%%/html/struct__R828__RF__Gain__Info.js +%%PORTDOCS%%%%DOCSDIR%%/html/struct__Freq__Info__Type.js +%%PORTDOCS%%%%DOCSDIR%%/html/struct__Freq__Info__Type.html +%%PORTDOCS%%%%DOCSDIR%%/html/struct__Sys__Info__Type.js +%%PORTDOCS%%%%DOCSDIR%%/html/struct__SysFreq__Info__Type.html +%%PORTDOCS%%%%DOCSDIR%%/html/struct__R828__SectType.js +%%PORTDOCS%%%%DOCSDIR%%/html/struct__R828__I2C__TYPE.html +%%PORTDOCS%%%%DOCSDIR%%/html/struct__R828__Set__Info.html +%%PORTDOCS%%%%DOCSDIR%%/html/struct__R828__Set__Info.js +%%PORTDOCS%%%%DOCSDIR%%/html/struct__R828__RF__Gain__Info.html +%%PORTDOCS%%%%DOCSDIR%%/html/tuner__r820t_8h_source.html +%%PORTDOCS%%%%DOCSDIR%%/html/struct__R828__I2C__LEN__TYPE.js +%%PORTDOCS%%%%DOCSDIR%%/html/struct__R828__SectType.html +%%PORTDOCS%%%%DOCSDIR%%/html/struct__R828__I2C__TYPE.js +%%PORTDOCS%%%%DOCSDIR%%/html/structrtlsdr__config.js +%%PORTDOCS%%%%DOCSDIR%%/html/struct__SysFreq__Info__Type.js +%%PORTDOCS%%@dirrm %%DOCSDIR%%/html +%%PORTDOCS%%@dirrm %%DOCSDIR%%
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201211070748.qA77mmmO079218>