summaryrefslogtreecommitdiff
blob: 7700676f47a01972a7c67eebfcc07168f02a513f (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

MY_P=${P/./-}

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

KEYWORDS="~amd64 ~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
	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"
}