summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Schweizer <genstef@gentoo.org>2006-01-20 21:19:44 +0000
committerStefan Schweizer <genstef@gentoo.org>2006-01-20 21:19:44 +0000
commit1ae24731d7237ad6db18f42afdc8670340a4e282 (patch)
tree89dad1511a2c090f23a64a7d64b4549f3e949595 /net-im/wengophone
parentPorting to modular X (diff)
downloadgentoo-2-1ae24731d7237ad6db18f42afdc8670340a4e282.tar.gz
gentoo-2-1ae24731d7237ad6db18f42afdc8670340a4e282.tar.bz2
gentoo-2-1ae24731d7237ad6db18f42afdc8670340a4e282.zip
Add oss support thanks to Rohan McGovern <rohan.pm@gmail.com> and Peter Read <drwook@users.sourceforge.net> in bug 119680
(Portage version: 2.1_pre3-r1)
Diffstat (limited to 'net-im/wengophone')
-rw-r--r--net-im/wengophone/ChangeLog7
-rw-r--r--net-im/wengophone/wengophone-1.0_pre20060106.ebuild14
2 files changed, 17 insertions, 4 deletions
diff --git a/net-im/wengophone/ChangeLog b/net-im/wengophone/ChangeLog
index cdd2532dc981..e0c08a0e819d 100644
--- a/net-im/wengophone/ChangeLog
+++ b/net-im/wengophone/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for net-im/wengophone
# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-im/wengophone/ChangeLog,v 1.2 2006/01/13 12:26:19 genstef Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-im/wengophone/ChangeLog,v 1.3 2006/01/20 21:19:44 genstef Exp $
+
+ 20 Jan 2006; Stefan Schweizer <genstef@gentoo.org>
+ wengophone-1.0_pre20060106.ebuild:
+ Add oss support thanks to Rohan McGovern <rohan.pm@gmail.com> and Peter Read
+ <drwook@users.sourceforge.net> in bug 119680
13 Jan 2006; Stefan Schweizer <genstef@gentoo.org>
wengophone-1.0_pre20060106.ebuild:
diff --git a/net-im/wengophone/wengophone-1.0_pre20060106.ebuild b/net-im/wengophone/wengophone-1.0_pre20060106.ebuild
index 4381f781ba34..2a5913bfc0d2 100644
--- a/net-im/wengophone/wengophone-1.0_pre20060106.ebuild
+++ b/net-im/wengophone/wengophone-1.0_pre20060106.ebuild
@@ -1,6 +1,6 @@
# 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_pre20060106.ebuild,v 1.2 2006/01/13 12:26:19 genstef Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-im/wengophone/wengophone-1.0_pre20060106.ebuild,v 1.3 2006/01/20 21:19:44 genstef Exp $
inherit qt3 eutils
@@ -11,9 +11,9 @@ SRC_URI="http://dev.gentoo.org/~genstef/files/dist/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
-IUSE=""
+IUSE="oss"
-RDEPEND="media-libs/alsa-lib
+RDEPEND="!oss? ( media-libs/alsa-lib )
dev-libs/glib
sys-libs/zlib
$(qt_min_version 3.3.4)"
@@ -23,6 +23,14 @@ DEPEND="${RDEPEND}
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
+
scons softphone-runtime softphone || die "scons failed"
}