blob: a0ec97187b86edd6793ad559afe0be94132f9cfe (
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
64
65
66
67
68
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-im/psimedia/psimedia-1.0.3.ebuild,v 1.10 2010/11/06 19:04:49 halcy0n Exp $
EAPI="2"
inherit eutils qt4 multilib
DESCRIPTION="Psi plugin for voice/video calls"
HOMEPAGE="http://delta.affinix.com/psimedia/"
SRC_URI="http://delta.affinix.com/download/psimedia/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~arm hppa ppc ppc64 x86"
IUSE="demo"
DEPEND=">=dev-libs/glib-2.18
>=media-libs/gstreamer-0.10.22
>=media-libs/gst-plugins-base-0.10.22
media-libs/gst-plugins-good
>=dev-libs/liboil-0.3
x11-libs/qt-core
x11-libs/qt-gui
>=media-libs/speex-1.2_rc1"
RDEPEND="${DEPEND}
media-plugins/gst-plugins-speex
>=media-plugins/gst-plugins-vorbis-0.10.22
>=media-plugins/gst-plugins-theora-0.10.22
>=media-plugins/gst-plugins-alsa-0.10.22
>=media-plugins/gst-plugins-ogg-0.10.22
>=media-plugins/gst-plugins-v4l-0.10.22
media-plugins/gst-plugins-v4l2
media-plugins/gst-plugins-jpeg
!<net-im/psi-0.13_rc1
"
src_prepare() {
sed -e '/^TEMPLATE/a CONFIG += ordered' -i psimedia.pro || die
# Don't build demo if we don't need that.
use demo || { sed -e '/^SUBDIRS[[:space:]]*+=[[:space:]]*demo[[:space:]]*$/d;' -i psimedia.pro || die; }
}
src_configure() {
# qconf generaged configure script...
./configure || die
}
src_install() {
insinto /usr/$(get_libdir)/psi/plugins
doins gstprovider/libgstprovider.so || die
if use demo; then
exeinto /usr/$(get_libdir)/${PN}
newexe demo/demo ${PN} || die
# Create /usr/bin/psimedia
cat <<-EOF > "demo/${PN}"
#!/bin/bash
export PSI_MEDIA_PLUGIN=/usr/$(get_libdir)/psi/plugins/libgstprovider.so
/usr/$(get_libdir)/${PN}/${PN}
EOF
dobin demo/${PN} || die
fi
}
|