aboutsummaryrefslogtreecommitdiffstats
path: root/comms/gr-osmosdr/Makefile
blob: acfec49f97637c4cef55c1a9004bd1cb7408d670 (plain) (blame)
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
# $FreeBSD$

PORTNAME=   gr-osmosdr
PORTVERSION=    20160622
PORTREVISION=   7
CATEGORIES= comms hamradio
MASTER_SITES=   http://contribs.martymac.org/FreeBSD-ports/distfiles/ \
        LOCAL/martymac

MAINTAINER= martymac@FreeBSD.org
COMMENT=    GNU Radio OsmoSDR module

LICENSE=    GPLv3

BUILD_DEPENDS=  swig3.0:devel/swig30 \
        cheetah:devel/py-cheetah
LIB_DEPENDS=    libgnuradio-runtime.so:comms/gnuradio \
        libgnuradio-pmt.so:comms/gnuradio \
        libgnuradio-blocks.so:comms/gnuradio \
        libboost_system.so:devel/boost-libs \
        libboost_thread.so:devel/boost-libs

USES=   cmake fortran pkgconfig python:2.7 tar:tgz
USE_LDCONFIG=   yes
BINARY_ALIAS=   swig=swig3.0

# See lib/CMakeLists.txt to enable more components
CMAKE_ARGS+=    -DENABLE_DEFAULT:BOOL=OFF \
        -DENABLE_FCD:BOOL=ON \
        -DENABLE_FILE:BOOL=ON \
        -DENABLE_PYTHON=ON

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

.include <bsd.port.mk>