pkgsrc/ham/rtl-sdr/Makefile
gdt f166c3006d rtl-sdr: fix build by not adding "inline" twice
This package has long had patches to change "inline" to "static
inline", and somewhat recently added a SUBST_ stanza to do the same
thing, resulting in "static static inline".  This commit drops the
patches, and has been build tested on netbsd-8/vbearmv7hf-el and MacOS
(and hence clang).

PKGREVISION++, even though in theory any previous build shouldn't change.
2018-06-28 19:00:14 +00:00

37 lines
966 B
Makefile

# $NetBSD: Makefile,v 1.11 2018/06/28 19:00:14 gdt Exp $
DISTNAME= rtl-sdr-0.5.3
PKGREVISION= 3
CATEGORIES= ham
MASTER_SITES= ${MASTER_SITE_GITHUB:=steve-m/}
GITHUB_PROJECT= librtlsdr
GITHUB_TAG= v${PKGVERSION_NOREV}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://sdr.osmocom.org/trac/wiki/rtl-sdr
COMMENT= Turns your Realtek RTL2832 based DVB dongle into a SDR receiver
LICENSE= gnu-gpl-v2
USE_LANGUAGES+= c c++
USE_TOOLS+= gmake pkg-config
USE_CMAKE= yes
CONFIGURE_DIRS=build
BUILD_DIRS=${CONFIGURE_DIRS}
CMAKE_ARG_PATH=..
SUBST_CLASSES+= fix-inline
SUBST_STAGE.fix-inline= pre-configure
SUBST_MESSAGE.fix-inline= Fixing inline calls
SUBST_FILES.fix-inline= src/rtl_adsb.c src/rtl_power.c
SUBST_SED.fix-inline= -e 's,inline,static inline,g'
PKGCONFIG_OVERRIDE+= librtlsdr.pc.in
LDFLAGS.SunOS+= -lsocket -lnsl
pre-configure:
${MKDIR} ${WRKSRC}/build
.include "../../devel/libusb1/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"