blob: 5f13996c00f22ccbb52b26ff0cf0ce3372aab06e (
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
34
35
36
37
38
|
# $NetBSD: Makefile,v 1.3 2021/04/28 09:11:16 nia Exp $
DISTNAME= soapy-sdr-0.7.2
PKGREVISION= 1
CATEGORIES= ham
MASTER_SITES= ${MASTER_SITE_GITHUB:=pothosware/}
GITHUB_PROJECT= SoapySDR
GITHUB_TAG= ${DISTNAME}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://github.com/pothosware/SoapySDR/wiki
COMMENT= Vendor and platform neutral SDR support library
LICENSE= boost-license
USE_CMAKE= yes
USE_TOOLS+= pkg-config
USE_LANGUAGES+= c c++
# Do not use /lib64
CMAKE_ARGS+= -DLIB_SUFFIX=""
SUBST_CLASSES+= getopt
SUBST_STAGE.getopt= pre-configure
SUBST_MESSAGE.getopt= Fixing getopt_long_only
SUBST_FILES.getopt+= apps/SoapySDRUtil.cpp
SUBST_SED.getopt+= -e s,getopt_long_only,getopt_long,
SUBST_CLASSES+= mandir
SUBST_STAGE.mandir= pre-configure
SUBST_MESSAGE.mandir= Fixing manpage directory
SUBST_FILES.mandir+= apps/CMakeLists.txt
SUBST_SED.mandir+= -e 's,share/man,${PKGMANDIR},'
# boost's posix_thread header causes pthread_create() reference
LDFLAGS+= -lpthread
.include "../../devel/boost-headers/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|