summaryrefslogtreecommitdiff
path: root/ham/osmo-sdr/Makefile
blob: 736ab1b8ecec4b64a02dee1b986230caab062e2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# $NetBSD: Makefile,v 1.4 2016/07/09 06:38:23 wiz Exp $

DISTNAME=		osmo-sdr-0.1
PKGREVISION=		2
CATEGORIES=		ham
MASTER_SITES+=		http://cgit.osmocom.org/osmo-sdr/snapshot/
EXTRACT_SUFX=		.tar.bz2

MAINTAINER=		pkgsrc-users@NetBSD.org
HOMEPAGE=		http://sdr.osmocom.org/trac/
COMMENT=		Small form-factor inexpensive SDR (Software Defined Radio)
LICENSE=		gnu-gpl-v2

USE_LANGUAGES=		c c++
USE_TOOLS=		cmake perl pkg-config tar
USE_CMAKE=		yes

#WRKSRC=		${WRKDIR}/osmo-sdr-0.1
# Suppress warning for developer
CMAKE_ARGS+=		-Wno-dev

REPLACE_PERL+=		utils/e4000_distance.pl
REPLACE_PERL+=		utils/e4000_pl.pl

CONFIGURE_DIRS=		software/libosmosdr
AUTO_MKDIRS=		yes

post-install:
	(cd ${WRKSRC}; tar cf - firmware fpga hardware utils | \
	(cd ${DESTDIR}${PREFIX}/share/osmo-sdr ; tar xf - ) )

.include	"../../devel/libusb1/buildlink3.mk"
.include	"../../mk/bsd.pkg.mk"