blob: 41f37f5f2a372a188163ab577495e37b032192f7 (
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
59
60
61
62
63
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-im/gnophone/gnophone-0.2.4-r1.ebuild,v 1.10 2006/02/04 23:43:18 dragonheart Exp $
inherit eutils
DESCRIPTION="internet telephone"
HOMEPAGE="http://www.gnophone.com/"
SRC_URI="mirror://gentoo/gnophone/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"
IUSE="esd mozilla"
DEPEND="media-sound/gsm
net-libs/iax
media-sound/sox
mozilla? ( www-client/mozilla )
esd? ( media-sound/esound )
x11-libs/gtk+
media-libs/gdk-pixbuf
dev-libs/glib
media-libs/imlib
virtual/libc"
D_PREFIX=/usr
src_unpack() {
unpack ${A}
cd ${S}
epatch ${FILESDIR}/${P}-raw2h.c.patch
epatch ${FILESDIR}/${P}-mkdtmf.c.patch
epatch ${FILESDIR}/${P}-casecompile.patch
epatch ${FILESDIR}/${P}-audio-phone-compilefault.patch
}
src_compile() {
local myconf
use mozilla \
&& myconf="${myconf}
--with-mozilla-home=/usr/lib/mozilla
--with-mozilla-lib=/usr/lib/mozilla
--with-mozilla-include=/usr/lib/mozilla/include" \
|| myconf="${myconf} --disable-mozilla"
use esd \
|| myconf="${myconf} --disable-esd"
./configure ${myconf} \
--prefix=${D_PREFIX} --enable-upgrade --disable-zaptel \
|| die "./configure failed"
pushd ${S}/sounds && make && popd # -j2 breaks the sound build
emake || die
}
src_install () {
make prefix=${D}/${D_PREFIX} install
dodoc NEWS COPYING AUTHORS README
}
|