2013-01-22 08:01:28 +01:00
|
|
|
# Created by: Ganael Laplanche <ganael.laplanche@martymac.org>
|
2012-11-07 08:48:48 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= rtl-sdr
|
2013-01-22 08:01:28 +01:00
|
|
|
PORTVERSION= 20130116
|
2012-11-07 08:48:48 +01:00
|
|
|
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
|
|
|
|
|
2013-04-23 08:34:47 +02:00
|
|
|
USES= pkgconfig
|
2012-11-07 08:48:48 +01:00
|
|
|
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>
|