summaryrefslogtreecommitdiff
path: root/net-voip/sflphone/sflphone-9999.ebuild
blob: 74e54f13970b64ff2025b8df1172348b65988fbb (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-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=1
inherit qt3 git autotools

DESCRIPTION="SFLphone aims to become your desktop's VoIP companion."
HOMEPAGE="http://www.sflphone.org/"
SRC_URI=""
LICENSE="GPL-2"
SLOT="0"

EGIT_REPO_URI="http://sflphone.org/git/sflphone.git"

KEYWORDS="~x86 ~ppc ~amd64"
IUSE="qt3 speex zeroconf"

DEPEND=">=net-libs/libosip-2.2.2
	>=net-libs/libeXosip-1.9.0
	>=dev-cpp/commoncpp2-1.3.21
	>=net-libs/ccrtp-1.3.5
	>=media-libs/portaudio-19_pre
	>=media-libs/libsamplerate-0.1.1
	net-libs/pjsip
	media-sound/pulseaudio
	qt3? ( >=x11-libs/qt-3.3:3 )
	speex? ( media-libs/speex )
	zeroconf? ( net-misc/mDNSResponder )"

RDEPEND="${DEPEND}"

src_unpack() {
#	unpack ${A}
	git_src_unpack
	cd "${S}"
	eautoreconf
	# fix compile error on genstef's box..doesn't seem to break anything
#	sed -i -e "s/Qt::Key_Mode_switch/0x0100117e/" src/gui/qt/SFLPhoneWindow.cpp
}
src_compile () {
	econf \
		$(use_enable qt3 sflphoneqt) \
		$(use_enable speex) \
		$(use_enable zeroconf) \
		|| die "econf failed"

	emake || die "emake failed"
}

src_install() {
	emake DESTDIR="${D}" install || die "emake install failed"

	dodoc README
}