summaryrefslogtreecommitdiff
blob: b31ad1366b055f19a7ffe028828cc0a918e94943 (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
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="2"

inherit autotools eutils

DESCRIPTION="Open-Source Software Implementation of a DRM-Receiver"
HOMEPAGE="http://drm.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"

KEYWORDS="~x86"
SLOT="0"
LICENSE="GPL-2"
IUSE="hamlib sndfile"

RDEPEND="media-libs/alsa-lib
	media-libs/faad2[digitalradio]
	net-libs/libpcap
	sci-libs/fftw:2.1
	x11-libs/qwt:0
	hamlib? ( media-libs/hamlib )
	sndfile? ( media-libs/libsndfile )"
DEPEND="${RDEPEND}
	dev-util/pkgconfig"

S=${WORKDIR}/${PN}

src_prepare() {
	# fix configure.in so that it links to libqwt.so.4
	epatch "${FILESDIR}"/drm-qwt4.diff

	# not packaged correctly
	eautoreconf
}

# at the moment only ALSA is working
src_configure() {
	econf $(use_enable hamlib) \
		--disable-jack \
		--disable-portaudio \
		--enable-alsa \
		--disable-oss \
		--enable-qt \
		--enable-faad2 \
		--disable-faac \
		--enable-pcap \
		$(use_enable sndfile)
}

src_install() {
	emake DESTDIR="${D}" install || die "emake failed"
	dodoc AUTHORS ChangeLog NEWS README || die "dodoc failed"
}