summaryrefslogtreecommitdiff
blob: 33fc797ce1eec3666442465dcb7f0b59f2478a30 (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
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-sound/kaconnect/kaconnect-1.1.1.ebuild,v 1.11 2006/10/28 01:55:17 flameeyes Exp $

inherit qt3 toolchain-funcs eutils

IUSE=""

DESCRIPTION="Part of Kalsatools - QT based frontend to aconnect"
HOMEPAGE="http://www.suse.de/~mana/kalsatools.html"
SRC_URI="ftp://ftp.suse.com/pub/people/mana/kalsatools-current/${P}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~ppc sparc x86"

RDEPEND="media-sound/alsa-utils
	$(qt_min_version 3.1)"

DEPEND="${RDEPEND}
	sys-apps/sed"

src_unpack() {
	unpack ${A} || die

	sed -i -e 's:/usr/lib/qt3:/usr/qt/3:g' \
		's:gcc:${CC} ${CFLAGS} ${LDFLAGS}:g' \
		"${S}/make_kaconnect"

	epatch "${FILESDIR}/${P}-gcc41.patch"
}

src_compile() {
	emake CC="$(tc-getCC)" -f make_kaconnect || die "Make failed."
}

src_install () {
	dobin kaconnect
	dodoc README THANKS LICENSE kalsatools.changes
}