mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-04 01:48:54 +00:00
cdc818f159
PR: ports/177145 Submitted by: Alexander Kojevnikov <alexander@kojevnikov.com>
79 lines
2.2 KiB
Makefile
79 lines
2.2 KiB
Makefile
# Created by: Juergen Lock <nox@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= dabstick-radio
|
|
PORTVERSION= 0.95
|
|
PORTREVISION= 1
|
|
CATEGORIES= comms audio hamradio
|
|
MASTER_SITES= http://www.sdr-j.tk/
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
MAINTAINER= nox@FreeBSD.org
|
|
COMMENT= DAB/DAB+ and wideband FM receiver for RTL2832-based USB sticks
|
|
|
|
LICENSE= GPLv2
|
|
|
|
LIB_DEPENDS+= rtlsdr:${PORTSDIR}/comms/rtl-sdr \
|
|
qwt:${PORTSDIR}/x11-toolkits/qwt5 \
|
|
portaudio.2:${PORTSDIR}/audio/portaudio2 \
|
|
sndfile:${PORTSDIR}/audio/libsndfile \
|
|
avcodec${FFMPEG_SUFFIX}:${PORTSDIR}/multimedia/ffmpeg${FFMPEG_SUFFIX} \
|
|
fftw3:${PORTSDIR}/math/fftw3 \
|
|
faad:${PORTSDIR}/audio/faad
|
|
|
|
USE_QT4= gui qt3support qmake_build moc_build rcc_build uic_build
|
|
|
|
FFMPEG_SUFFIX= 1
|
|
|
|
QMAKE_DABSTICK= ${QMAKE} -unix PREFIX=${PREFIX} -o
|
|
MAKE_ENV+= FFMPEG_SUFFIX=${FFMPEG_SUFFIX}
|
|
MAKE_JOBS_SAFE= yes
|
|
|
|
PORTDOCS= *
|
|
PLIST_FILES+= bin/dabreceiver bin/fmreceiver bin/spectrum-viewer
|
|
|
|
ONLY_FOR_ARCHS= i386 amd64
|
|
ONLY_FOR_ARCHS_REASON= uses MMX and SSE2
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if (${OSVERSION} >= 901000) && exists(${DESTDIR}/usr/bin/clang)
|
|
CC= clang
|
|
CXX= clang++
|
|
CPP= clang-cpp
|
|
.else
|
|
USE_GCC= 4.6+
|
|
.endif
|
|
|
|
.if ${OSVERSION} < 800069
|
|
IGNORE= requires FreeBSD 8.0 or later
|
|
.endif
|
|
|
|
do-configure:
|
|
cd ${WRKSRC}/fmreceiver-dab && ${SETENV} ${MAKE_ENV} \
|
|
${QMAKE_DABSTICK} Makefile fmreceiver.pro
|
|
cd ${WRKSRC}/dabreceiver-V2 && ${SETENV} ${MAKE_ENV} \
|
|
${QMAKE_DABSTICK} Makefile dabreceiver.pro
|
|
cd ${WRKSRC}/spectrum-viewer && ${SETENV} ${MAKE_ENV} \
|
|
${QMAKE_DABSTICK} Makefile spectrum-viewer.pro
|
|
|
|
do-build:
|
|
cd ${WRKSRC}/fmreceiver-dab && ${SETENV} ${MAKE_ENV} \
|
|
${MAKE} ${_MAKE_JOBS} CC=${CC} CXX=${CXX} LINK=${CXX}
|
|
cd ${WRKSRC}/dabreceiver-V2 && ${SETENV} ${MAKE_ENV} \
|
|
${MAKE} ${_MAKE_JOBS} CC=${CC} CXX=${CXX} LINK=${CXX}
|
|
cd ${WRKSRC}/spectrum-viewer && ${SETENV} ${MAKE_ENV} \
|
|
${MAKE} ${_MAKE_JOBS} CC=${CC} CXX=${CXX} LINK=${CXX}
|
|
|
|
do-install:
|
|
${INSTALL} ${WRKSRC}/fmreceiver-dab/fmreceiver \
|
|
${WRKSRC}/dabreceiver-V2/dabreceiver \
|
|
${WRKSRC}/spectrum-viewer/spectrum-viewer \
|
|
${PREFIX}/bin
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
${MKDIR} ${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/dab-manual.pdf ${WRKSRC}/README-${PORTVERSION} ${DOCSDIR}
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|