freebsd-ports/comms/rtl-sdr/Makefile
Ganael LAPLANCHE 33d8dc5b0d Add support for HanfTek DVB-T
PR:		197272
Submitted by:	skreuzer
2015-02-03 11:08:59 +00:00

41 lines
1,020 B
Makefile

# Created by: Ganael Laplanche <ganael.laplanche@martymac.org>
# $FreeBSD$
PORTNAME= rtl-sdr
PORTVERSION= 20140210
PORTREVISION= 5
CATEGORIES= comms hamradio
MASTER_SITES= http://contribs.martymac.org/FreeBSD-ports/distfiles/ \
LOCAL/martymac
MAINTAINER= martymac@FreeBSD.org
COMMENT= Commandline tool that performs SDR with RTL2832-based USB sticks
LICENSE= GPLv2
USES= autoreconf gmake pkgconfig libtool tar:tgz
GNU_CONFIGURE= yes
INSTALL_TARGET= install-strip
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
USE_LDCONFIG= yes
DOCSDIR= ${PREFIX}/share/doc/librtlsdr
OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
.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
.include <bsd.port.mk>