aboutsummaryrefslogtreecommitdiff
path: root/audio/dream/Makefile
blob: 6a398d3382b13eac42c19cb59d024f051109c24b (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
# $FreeBSD$

PORTNAME=	dream
PORTVERSION=	2.1.1
PORTREVISION=	2
CATEGORIES=	audio comms hamradio
MASTER_SITES=	SF/drm/${PORTNAME}/${PORTVERSION}
DISTNAME=	${PORTNAME}-${PORTVERSION}-svn808

MAINTAINER=	takefu@airport.fm
COMMENT=	Software radio for AM and Digital Radio Mondiale (DRM)

LICENSE=	GPLv2

LIB_DEPENDS=	libhamlib.so:comms/hamlib\
		libqwt.so:x11-toolkits/qwt5\
		libfftw3.so:math/fftw3

USES=		gmake pkgconfig qmake
USE_QT4=	qmake_build moc_build uic_build corelib gui network rcc webkit
WRKSRC=		${WRKDIR}/${PORTNAME}

OPTIONS_DEFINE=		SNDFILE OGG VORBIS FLAC OPUS SPEEX FAAD FAAC
OPTIONS_RADIO=		DEVICE
OPTIONS_RADIO_DEVICE=	PORTAUDIO PULSEAUDIO
OPTIONS_DEFAULT=	PORTAUDIO SNDFILE

PORTAUDIO_LIB_DEPENDS=	libportaudio.so:audio/portaudio
PULSEAUDIO_LIB_DEPENDS=	libpulse.so:audio/pulseaudio
SNDFILE_LIB_DEPENDS=	libsndfile.so:audio/libsndfile

OGG_LIB_DEPENDS=	libogg.so:audio/libogg
VORBIS_LIB_DEPENDS=	libvorbis.so:audio/libvorbis
FLAC_LIB_DEPENDS=	libFLAC.so:audio/flac
OPUS_LIB_DEPENDS=	libopus.so:audio/opus
SPEEX_LIB_DEPENDS=	libspeexdsp.so:audio/speexdsp
FAAD_LIB_DEPENDS=	libfaad.so:audio/faad
FAAC_LIB_DEPENDS=	libfaac.so:audio/faac

PLIST_FILES=		bin/dream man/man1/dream.1.gz

pre-patch:
	@${REINPLACE_CMD} -e 's|/opt|/usr|g' -e 's|/usr/local|${PREFIX}|g'\
		-e 's|target.path = /usr/bin|target.path = ${PREFIX}/bin|g'\
		-e 's|/usr/share/man/man1|${PREFIX}/man/man1|g'\
		 ${WRKSRC}/dream.pro

.include <bsd.port.mk>