blob: 558d8814630bfbf4bd43708c688d7a2173fc6e0a (
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-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="1"
inherit cmake-utils eutils
MY_P=${P/_rc/-RC}
DESCRIPTION="An open source softphone"
HOMEPAGE="http://www.qutecom.com/"
SRC_URI="http://www.qutecom.com/downloads/${MY_P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="alsa debug oss portaudio xv"
DEPEND=">=dev-libs/boost-1.34
dev-libs/glib
dev-libs/openssl
alsa? ( media-libs/alsa-lib )
media-libs/libsamplerate
media-libs/libsndfile
portaudio? ( >=media-libs/portaudio-19_pre )
media-libs/speex
media-video/ffmpeg
net-libs/gnutls
>=net-libs/libosip-3
net-misc/curl
|| ( x11-libs/libX11 virtual/x11 )
|| ( ( x11-libs/qt-gui:4 x11-libs/qt-svg:4 ) =x11-libs/qt-4.3* )
xv? ( x11-libs/libXv )"
S=${WORKDIR}/${MY_P}
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${PN}-boost-1.35.patch
epatch "${FILESDIR}"/${PN}-types.h.patch
epatch "${FILESDIR}"/${PN}-cstdlib-include.patch
epatch "${FILESDIR}"/${PN}-gcc-4.3-switch-enum.patch
epatch "${FILESDIR}"/${PN}-cmake-hg-svnrevision.patch
}
src_compile() {
EXTRA_ECONF=" \
$(cmake-utils_use_enable portaudio PORTAUDIO_SUPPORT) \
$(cmake-utils_use_enable alsa PHAPI_AUDIO_ALSA_SUPPORT) \
$(cmake-utils_use_enable oss PHAPI_AUDIO_OSS_SUPPORT) \
$(cmake-utils_use_enable xv WENGOPHONE_XV_SUPPORT) "
cmake-utils_src_configureout
cmake-utils_src_make
}
src_install() {
cmake-utils_src_install
domenu "${S}"/wengophone/res/wengophone.desktop || die "domenu failed"
doicon "${S}"/wengophone/res/wengophone_64x64.png || die "doicon failed"
}
|