summaryrefslogtreecommitdiff
blob: 52b866914d0f128d90b96c38104f2ad58f1830bd (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
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-im/wengophone/wengophone-1.0_pre20060408.ebuild,v 1.2 2006/06/01 17:15:03 genstef Exp $

inherit qt3 eutils

DESCRIPTION="Wengophone is a VoIP client featuring the SIP protcol"
HOMEPAGE="http://dev.openwengo.com"
SRC_URI="http://dev.gentoo.org/~genstef/files/dist/${P}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE="oss"

RDEPEND="!oss? ( media-libs/alsa-lib )
	dev-libs/glib
	media-video/ffmpeg
	sys-libs/zlib
	$(qt_min_version 3.3.4)"
DEPEND="${RDEPEND}
	sys-kernel/linux-headers
	dev-util/scons
	media-libs/speex"

src_compile() {
	if use oss; then
		sed -e 's|PA_USE_ALSA|PA_USE_OSS|g' \
		    -e 's|sources_alsa|sources_oss|g' \
			-e 's|pa_env.WengoLibAdd("asound")||g' \
			-i libs/portaudio/SConscript \
			|| die "Failed to patch SConscript to build OSS support"
	fi
	epatch ${FILESDIR}/debian.patch

	scons mode=release-symbols \
		enable-shared-portaudio=no enable-shared-webcam=no \
		enable-shared-wengocurl=no enable-shared-phapi=no \
		softphone-runtime softphone || die "scons failed"
}

src_install() {
	#scons prefix=${D}/usr softphone-install || die "scons softphone-install failed"
	#sed -i "s:${D}::" ${D}/usr/bin/${PN}
	#fperms 755 /usr/bin/wengophone
	cd build-wengo/linux2-release-symbols/softphone
	dobin runtime/wengophone
	insinto /usr/share/wengophone
	doins -r runtime/{icons,sounds,emoticons}
	insinto /usr/share/wengophone/lang
	doins -r gui/lang/*.qm

	cd ${S}
	doicon wengophone.png
	domenu wengophone.desktop
}