blob: 5613fd749d517040807a82d4e33785cd4eaaf851 (
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
PORTNAME= gr-osmosdr
DISTVERSIONPREFIX= v
DISTVERSION= 0.2.3
PORTEPOCH= 1
CATEGORIES= comms hamradio
MAINTAINER= martymac@FreeBSD.org
COMMENT= GNU Radio OsmoSDR module
LICENSE= GPLv3
BUILD_DEPENDS= swig:devel/swig \
cheetah:devel/py-cheetah3@${PY_FLAVOR}
LIB_DEPENDS= libgnuradio-runtime.so:comms/gnuradio \
libgnuradio-pmt.so:comms/gnuradio \
libgnuradio-blocks.so:comms/gnuradio \
libvolk.so:devel/volk \
libboost_system.so:devel/boost-libs \
libboost_thread.so:devel/boost-libs \
liblog4cpp.so:devel/log4cpp \
libgmpxx.so:math/gmp \
libgmp.so:math/gmp \
liborc-0.4.so:devel/orc
USES= cmake compiler:c++11-lang fortran pkgconfig python:3.7+ tar:tgz
SUB_LIST= VERSION=${PORTVERSION}
SUB_FILES= gnuradio-osmosdr.pc
USE_GITHUB= yes
GH_ACCOUNT= osmocom
USE_LDCONFIG= yes
# See lib/CMakeLists.txt to enable more components
CMAKE_ARGS+= -DENABLE_FILE:BOOL=ON \
-DENABLE_PYTHON=ON \
-DPYTHON_EXECUTABLE:STRING="${PYTHON_CMD}"
CXXFLAGS+= -std=c++11
OPTIONS_DEFINE= RTLSDR HACKRF
RTLSDR_DESC= Enable rtl-sdr (RTL2832) support
OPTIONS_DEFAULT= RTLSDR
RTLSDR_LIB_DEPENDS= librtlsdr.so:comms/rtl-sdr
RTLSDR_CMAKE_ON= -DENABLE_RTL:BOOL=ON -DENABLE_RTL_TCP:BOOL=ON
HACKRF_DESC= Enable hackrf one hardware support
HACKRF_LIB_DEPENDS= libhackrf.so:comms/hackrf
HACKRF_CMAKE_ON= -DENABLE_HACKRF:BOOL=ON
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libgnuradio-osmosdr.so.0.2.0
${INSTALL_DATA} ${WRKDIR}/gnuradio-osmosdr.pc ${STAGEDIR}${PREFIX}/libdata/pkgconfig/
.include <bsd.port.mk>
|