/[gentoo-x86]/media-sound/mumble/mumble-1.2.6.ebuild
Gentoo

Contents of /media-sound/mumble/mumble-1.2.6.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Wed Jun 4 16:04:44 2014 UTC (5 years, 7 months ago) by ago
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +2 -2 lines
Stable for x86, wrt bug #510380

(Portage version: 2.2.8-r1/cvs/Linux x86_64, RepoMan options: --include-arches="x86", signed Manifest commit with key 7194459F)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-sound/mumble/mumble-1.2.6.ebuild,v 1.2 2014/06/04 16:04:20 ago Exp $
4
5 EAPI="5"
6
7 QT_MINIMAL="4.6"
8
9 inherit eutils multilib qt4-r2
10
11 MY_P="${PN}-${PV/_/~}"
12
13 DESCRIPTION="Mumble is an open source, low-latency, high quality voice chat software"
14 HOMEPAGE="http://mumble.sourceforge.net/"
15 SRC_URI="http://mumble.info/snapshot/${MY_P}.tar.gz"
16
17 LICENSE="BSD MIT"
18 SLOT="0"
19 KEYWORDS="amd64 x86"
20 IUSE="+alsa +dbus debug g15 oss pch portaudio pulseaudio speech zeroconf"
21
22 RDEPEND=">=dev-libs/boost-1.41.0
23 >=dev-libs/openssl-1.0.0b
24 >=dev-libs/protobuf-2.2.0
25 >=media-libs/libsndfile-1.0.20[-minimal]
26 >=media-libs/opus-1.0.1
27 >=media-libs/speex-1.2_rc1
28 sys-apps/lsb-release
29 x11-libs/libX11
30 x11-libs/libXi
31 dev-qt/qtcore:4[ssl]
32 dev-qt/qtgui:4
33 dev-qt/qtopengl:4
34 dev-qt/qtsql:4[sqlite]
35 dev-qt/qtsvg:4
36 dev-qt/qtxmlpatterns:4
37 x11-proto/inputproto
38 alsa? ( media-libs/alsa-lib )
39 dbus? ( dev-qt/qtdbus:4 )
40 g15? ( app-misc/g15daemon )
41 portaudio? ( media-libs/portaudio )
42 pulseaudio? ( media-sound/pulseaudio )
43 speech? ( app-accessibility/speech-dispatcher )
44 zeroconf? ( net-dns/avahi[mdnsresponder-compat] )"
45 DEPEND="${RDEPEND}
46 virtual/pkgconfig"
47
48 PATCHES=(
49 "${FILESDIR}"/${PN}-1.2.4-speech-dispatcher.patch
50 )
51
52 S="${WORKDIR}/${MY_P}"
53
54 src_configure() {
55 local conf_add
56
57 if has_version '<=sys-devel/gcc-4.2'; then
58 conf_add="${conf_add} no-pch"
59 else
60 use pch || conf_add="${conf_add} no-pch"
61 fi
62
63 use alsa || conf_add="${conf_add} no-alsa"
64 use dbus || conf_add="${conf_add} no-dbus"
65 use debug && conf_add="${conf_add} symbols debug" || conf_add="${conf_add} release"
66 use g15 || conf_add="${conf_add} no-g15"
67 use oss || conf_add="${conf_add} no-oss"
68 use portaudio || conf_add="${conf_add} no-portaudio"
69 use pulseaudio || conf_add="${conf_add} no-pulseaudio"
70 use speech || conf_add="${conf_add} no-speechd"
71 use zeroconf || conf_add="${conf_add} no-bonjour"
72
73 eqmake4 "${S}/main.pro" -recursive \
74 CONFIG+="${conf_add} \
75 bundled-celt \
76 no-bundled-opus \
77 no-bundled-speex \
78 no-embed-qt-translations \
79 no-server \
80 no-update" \
81 DEFINES+="PLUGIN_PATH=/usr/$(get_libdir)/mumble"
82 }
83
84 src_compile() {
85 # parallel make workaround, bug #445960
86 emake -j1
87 }
88
89 src_install() {
90 newdoc README.Linux README
91 dodoc CHANGES
92
93 local dir
94 if use debug; then
95 dir=debug
96 else
97 dir=release
98 fi
99
100 dobin "${dir}"/mumble
101 dobin scripts/mumble-overlay
102
103 insinto /usr/share/services
104 doins scripts/mumble.protocol
105
106 domenu scripts/mumble.desktop
107
108 insinto /usr/share/icons/hicolor/scalable/apps
109 doins icons/mumble.svg
110
111 doman man/mumble-overlay.1
112 doman man/mumble.1
113
114 insopts -o root -g root -m 0755
115 insinto "/usr/$(get_libdir)/mumble"
116 doins "${dir}"/libmumble.so.1.2.6
117 dosym libmumble.so.1.2.6 /usr/$(get_libdir)/mumble/libmumble.so.1
118 doins "${dir}"/libcelt0.so.0.{7,11}.0
119 doins "${dir}"/plugins/lib*.so*
120 }
121
122 pkg_postinst() {
123 echo
124 elog "Visit http://mumble.sourceforge.net/ for futher configuration instructions."
125 elog "Run mumble-overlay to start the OpenGL overlay (after starting mumble)."
126 echo
127 }

  ViewVC Help
Powered by ViewVC 1.1.20