summaryrefslogtreecommitdiff
path: root/audio/welle.io/Makefile
blob: 452160ea632ad04893b5bc954e1a75387d217116 (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

PORTNAME=	welle.io
DISTVERSION=	2.2
CATEGORIES=	audio hamradio

MAINTAINER=	nsonack@outlook.com
COMMENT=	SDR DAB/DAB+ Receiver

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/COPYING

LIB_DEPENDS=	libasound.so:audio/alsa-lib \
		libfaad.so:audio/faad \
		libmp3lame.so:audio/lame \
		libmpg123.so:audio/mpg123

USES=		cmake compiler:c++11-lang pkgconfig qt:5
USE_QT=		charts core declarative gui multimedia network quickcontrols2 \
		widgets buildtools_build qmake_build

USE_GITHUB=	yes
GH_ACCOUNT=	AlbrechtL
GH_TAGNAME=	c39d3420cc30281e03835b3182f34d8617eb7ebf

OPTIONS_DEFINE=		AIRSPY CLI FFTW RTLSDR SOAPY
OPTIONS_DEFAULT=	FFTW RTLSDR

RTLSDR_DESC=	RTL-SDR support
AIRSPY_DESC=	AirSpy support
SOAPY_DESC=	SoapySDR support
FFTW_DESC=	Use FFTW3 instead of KISSFFT
CLI_DESC=	Build the welle-cli tool

RTLSDR_LIB_DEPENDS=	librtlsdr.so:comms/rtl-sdr
RTLSDR_CMAKE_BOOL=	RTLSDR

FFTW_CMAKE_BOOL_OFF=	KISS_FFT
FFTW_LIB_DEPENDS=	libfftw3f.so:math/fftw3-float
FFTW_BUILD_DEPENDS=	fftw3>=0:math/fftw3

CLI_CMAKE_BOOL=		BUILD_WELLE_CLI
CLI_PLIST_FILES=	bin/welle-cli \
			share/welle-io/html/index.html \
			share/welle-io/html/index.js

SOAPY_CMAKE_BOOL=	SOAPYSDR
SOAPY_LIB_DEPENDS=	libSoapySDR.so:misc/soapysdr

AIRSPY_CMAKE_BOOL=	AIRSPY
AIRSPY_LIB_DEPENDS=	libairspy.so:comms/airspy

.include <bsd.port.mk>