summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-sound/mumble/mumble-1.1.6.ebuild')
-rw-r--r--media-sound/mumble/mumble-1.1.6.ebuild84
1 files changed, 84 insertions, 0 deletions
diff --git a/media-sound/mumble/mumble-1.1.6.ebuild b/media-sound/mumble/mumble-1.1.6.ebuild
new file mode 100644
index 000000000000..4e4d8061eed4
--- /dev/null
+++ b/media-sound/mumble/mumble-1.1.6.ebuild
@@ -0,0 +1,84 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-sound/mumble/mumble-1.1.6.ebuild,v 1.1 2008/10/22 23:14:22 tgurr Exp $
+
+EAPI="2"
+
+inherit eutils multilib qt4
+
+DESCRIPTION="Voice chat software for gaming written in Qt4."
+HOMEPAGE="http://mumble.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="alsa dbus debug oss portaudio pulseaudio speech"
+
+RDEPEND="dev-libs/boost
+ >=media-libs/speex-1.2_beta3_p2
+ x11-libs/libXevie
+ || ( ( x11-libs/qt-core:4[ssl]
+ x11-libs/qt-gui:4
+ x11-libs/qt-opengl:4
+ x11-libs/qt-sql:4[sqlite]
+ dbus? ( x11-libs/qt-dbus:4 ) )
+ ( =x11-libs/qt-4.3*:4[dbus,opengl,sqlite3,ssl] ) )
+ alsa? ( media-libs/alsa-lib )
+ portaudio? ( media-libs/portaudio )
+ pulseaudio? ( media-sound/pulseaudio )
+ speech? ( app-accessibility/speech-dispatcher )"
+
+DEPEND="${RDEPEND}"
+
+src_configure() {
+ use dbus || conf_add="${conf_add} no-dbus"
+ use portaudio || conf_add="${conf_add} no-portaudio"
+ use pulseaudio || conf_add="${conf_add} no-pulseaudio"
+ use alsa || conf_add="${conf_add} no-alsa"
+ use oss || conf_add="${conf_add} no-oss"
+ use speech || conf_add="${conf_add} no-speechd"
+ use debug && conf_add="${conf_add} symbols debug" || conf_add="${conf_add} release"
+
+ eqmake4 "${S}/main.pro" -recursive \
+ CONFIG+="${conf_add} no-server no-bundled-speex" \
+ DEFINES+="PLUGIN_PATH=/usr/$(get_libdir)/mumble" \
+ || die "eqmake4 failed."
+}
+
+src_install() {
+ newdoc README.Linux README || die "Installing docs failed."
+ dodoc CHANGES || die "Installing docs failed."
+
+ local dir
+ if use debug; then
+ dir=debug
+ else
+ dir=release
+ fi
+
+ dobin "${dir}"/mumble || die "Installing mumble binary failed."
+
+ CONF_LIBDIR="$(get_libdir)/mumble" dolib.so "${dir}"/lib*.so* || die "Installing libraries failed."
+ CONF_LIBDIR="$(get_libdir)/mumble" dolib.so "${dir}"/plugins/lib*.so* || die "Installing libraries failed."
+
+ insinto /usr/share/services
+ doins scripts/mumble.protocol || die "Installing mumble.protocol file failed."
+
+ dobin scripts/mumble-overlay || die "Installing overlay script failed."
+
+ newicon icons/mumble.64x64.png mumble.png || die "Installing icon failed."
+
+ make_desktop_entry ${PN} "Mumble" mumble "Qt;KDE;Network;Telephony;" \
+ || die "Installing menu entry failed."
+
+ doman man/mumble-overlay.1 || die "Installing mumble-overlay manpage failed."
+ doman man/mumble.1 || die "Installing mumble manpage failed."
+}
+
+pkg_postinst() {
+ echo
+ elog "Visit http://mumble.sourceforge.net/Audio_Tuning for futher configuration."
+ elog "Run mumble-overlay to start the OpenGL overlay (after starting mumble)."
+ echo
+}