blob: 95d49a809484b0c06cefd9e663ccc3d421b54131 (
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
# Created by: Juergen Lock <nox@FreeBSD.org>
# $FreeBSD$
PORTNAME= dabstick-radio
PORTVERSION= 0.96
PORTREVISION= 6
CATEGORIES= comms audio hamradio
MASTER_SITES= http://www.sdr-j.tk/ \
LOCAL/nox/
MAINTAINER= nox@FreeBSD.org
COMMENT= DAB/DAB+ and wideband FM receiver for RTL2832-based USB sticks
LICENSE= GPLv2
LIB_DEPENDS+= librtlsdr.so:${PORTSDIR}/comms/rtl-sdr \
libqwt.so:${PORTSDIR}/x11-toolkits/qwt5 \
libportaudio.so:${PORTSDIR}/audio/portaudio \
libsndfile.so:${PORTSDIR}/audio/libsndfile \
libavcodec.so:${PORTSDIR}/multimedia/ffmpeg \
libfftw3.so:${PORTSDIR}/math/fftw3 \
libfaad.so:${PORTSDIR}/audio/faad
USES= tar:tgz
USE_QT4= gui qt3support qmake_build moc_build rcc_build uic_build
PORTDOCS= *
PLIST_FILES+= bin/dabreceiver bin/fmreceiver bin/spectrum-viewer
ONLY_FOR_ARCHS= i386 amd64
ONLY_FOR_ARCHS_REASON= uses MMX and SSE2
OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
.if (${OSVERSION} >= 901000) && exists(${DESTDIR}/usr/bin/clang)
CC= clang
CXX= clang++
CPP= clang-cpp
.else
USE_GCC= yes
.endif
do-configure:
cd ${WRKSRC}/fmreceiver-dab && ${SETENV} ${QMAKE_ENV} \
${QMAKE} ${QMAKE_ARGS}
cd ${WRKSRC}/dabreceiver-V2 && ${SETENV} ${QMAKE_ENV} \
${QMAKE} ${QMAKE_ARGS}
cd ${WRKSRC}/spectrum-viewer && ${SETENV} ${QMAKE_ENV} \
${QMAKE} ${QMAKE_ARGS}
do-build:
cd ${WRKSRC}/fmreceiver-dab && ${SETENV} ${MAKE_ENV} \
${MAKE} ${_MAKE_JOBS}
cd ${WRKSRC}/dabreceiver-V2 && ${SETENV} ${MAKE_ENV} \
${MAKE} ${_MAKE_JOBS}
cd ${WRKSRC}/spectrum-viewer && ${SETENV} ${MAKE_ENV} \
${MAKE} ${_MAKE_JOBS}
do-install:
${INSTALL} ${WRKSRC}/fmreceiver-dab/fmreceiver \
${WRKSRC}/dabreceiver-V2/dabreceiver \
${WRKSRC}/spectrum-viewer/spectrum-viewer \
${STAGEDIR}${PREFIX}/bin
do-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}/dabreceiver-V2 ${STAGEDIR}${DOCSDIR}/fmreceiver-dab
${INSTALL_DATA} ${WRKSRC}/dabreceiver-V2/README ${STAGEDIR}${DOCSDIR}/dabreceiver-V2
${INSTALL_DATA} ${WRKSRC}/fmreceiver-dab/README ${STAGEDIR}${DOCSDIR}/fmreceiver-dab
.include <bsd.port.mk>
|