aboutsummaryrefslogtreecommitdiffstats
path: root/comms/jsdr/Makefile
blob: fde8c081fa4158b1895df467a5a989fa81f3e4d3 (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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Created by: Juergen Lock <nox@FreeBSD.org>
# $FreeBSD$

PORTNAME=   jsdr
PORTVERSION=    4.1
CATEGORIES= comms audio hamradio
MASTER_SITES=   http://www.sdr-j.tk/
EXTRACT_SUFX=   .tgz

MAINTAINER= nox@FreeBSD.org
COMMENT=    SDR tools for RTL2832-based USB sticks

LICENSE=    GPLv2

LIB_DEPENDS+=   libqwt.so:${PORTSDIR}/x11-toolkits/qwt5 \
        libportaudio.so.2:${PORTSDIR}/audio/portaudio2 \
        libsamplerate.so:${PORTSDIR}/audio/libsamplerate \
        libsndfile.so:${PORTSDIR}/audio/libsndfile \
        libfftw3.so:${PORTSDIR}/math/fftw3

USE_QT4=    gui qt3support qmake_build moc_build rcc_build uic_build

PORTDOCS=   *
PLIST_FILES+=   bin/swreceiver bin/spectrum-viewer-${PORTVERSION} \
        bin/mini-receiver bin/fmreceiver-${PORTVERSION}

.include <bsd.port.pre.mk>

do-configure:
    cd ${WRKSRC}/make-x64/swreceiver && ${SETENV} ${MAKE_ENV} \
        ${QMAKE} ${QMAKE_ARGS}
    cd ${WRKSRC}/make-x64/fmreceiver && ${SETENV} ${MAKE_ENV} \
        ${QMAKE} ${QMAKE_ARGS}
    cd ${WRKSRC}/make-x64/spectrum-viewer && ${SETENV} ${MAKE_ENV} \
        ${QMAKE} ${QMAKE_ARGS}
    cd ${WRKSRC}/make-x64/mini-receiver && ${SETENV} ${MAKE_ENV} \
        ${QMAKE} ${QMAKE_ARGS}

do-build:
    cd ${WRKSRC}/make-x64/swreceiver && ${SETENV} ${MAKE_ENV} \
        ${MAKE} ${_MAKE_JOBS}
    cd ${WRKSRC}/make-x64/fmreceiver && ${SETENV} ${MAKE_ENV} \
        ${MAKE} ${_MAKE_JOBS}
    cd ${WRKSRC}/make-x64/spectrum-viewer && ${SETENV} ${MAKE_ENV} \
        ${MAKE} ${_MAKE_JOBS}
    cd ${WRKSRC}/make-x64/mini-receiver && ${SETENV} ${MAKE_ENV} \
        ${MAKE} ${_MAKE_JOBS}

do-install:
    ${INSTALL} ${WRKSRC}/make-x64/swreceiver/swreceiver \
        ${WRKSRC}/make-x64/mini-receiver/mini-receiver \
        ${STAGEDIR}${PREFIX}/bin
    ${INSTALL} ${WRKSRC}/make-x64/spectrum-viewer/spectrum-viewer \
        ${STAGEDIR}${PREFIX}/bin/spectrum-viewer-${PORTVERSION}
    ${INSTALL} ${WRKSRC}/make-x64/fmreceiver/fmreceiver \
        ${STAGEDIR}${PREFIX}/bin/fmreceiver-${PORTVERSION}
.if ${PORT_OPTIONS:MDOCS}
    ${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/docs/* ${STAGEDIR}${DOCSDIR}
.endif

.include <bsd.port.post.mk>