summaryrefslogtreecommitdiff
path: root/ham/libmirisdr/Makefile
blob: 98e307e9d99e73b97a3a3111468dea9b25e66fa5 (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
# $NetBSD: Makefile,v 1.8 2020/01/26 17:31:24 rillig Exp $

PKGNAME=	libmirisdr-0.1
PKGREVISION=	2
DISTNAME=	libmirisdr-${VERSION}
VERSION=	59ba372
CATEGORIES=	ham
MASTER_SITES=	-http://cgit.osmocom.org/libmirisdr/snapshot/libmirisdr-${VERSION}.tar.gz

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	https://cgit.osmocom.org/libmirisdr/
COMMENT=	Osmocom Mirics MSi2500 + MSi001 SDR library
LICENSE=	gnu-gpl-v2

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

# Suppress warning for developer
CMAKE_ARGS+=	-Wno-dev

# Fix the shared library patchlevel
SHLIBPATCHLEVEL=		0
PLIST_SUBST+=			SHLIBPATCHLEVEL=${SHLIBPATCHLEVEL:U0}
SUBST_CLASSES+=			patchlevel
SUBST_STAGE.patchlevel=		pre-configure
SUBST_MESSAGE.patchlevel=	Fixing library version patchlevel
SUBST_FILES.patchlevel=		CMakeLists.txt
SUBST_SED.patchlevel=		-e 's,\(VERSION_INFO_PATCH_VERSION\) git,\1 ${SHLIBPATCHLEVEL:U0},'

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