blob: a62618e2f557661fcdbd26fcf0c72adc1a286e98 (
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
56
57
58
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-sound/mumble/mumble-0.9.4.ebuild,v 1.2 2007/01/20 17:14:43 drizzt Exp $
inherit eutils toolchain-funcs
DESCRIPTION="voice chat software for gaming written in Qt4"
HOMEPAGE="http://mumble.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE=""
DEPEND="dev-libs/boost
=x11-libs/qt-4*
media-libs/speex
media-libs/alsa-lib
x11-libs/libXevie"
RDEPEND="${DEPEND}"
pkg_setup() {
if ! built_with_use =x11-libs/qt-4* sqlite ; then
echo
ewarn "You need to build Qt4 with the sqlite use flag"
echo
die "Your Qt4 has no sqlite support"
fi
}
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${P}-path.patch
epatch "${FILESDIR}"/${P}-missing_typedefs.patch
}
src_compile() {
qmake mumble.pro || die "qmake failed"
lrelease mumble.pro || die "mumble translation failed"
emake CC="$(tc-getCC) ${CFLAGS}" \
CXX="$(tc-getCXX) ${CXXFLAGS}" \
LINK="$(tc-getCXX)" \
LFLAGS="${LDFLAGS}" || die "emake failed"
}
src_install() {
dodoc README CHANGES || die "installing docs failed"
dobin mumble || die "installing failed"
insinto /usr/share/pixmaps
newins mumble.png.0 mumble.png \
|| die "installing icon failed"
make_desktop_entry mumble "Mumble" mumble.png "KDE;Qt;AudioVideo" \
|| die "installing desktop entry failed"
}
|