/
psimedia-1.0.3_p20111024.ebuild
86 lines (72 loc) · 1.89 KB
/
psimedia-1.0.3_p20111024.ebuild
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="4"
inherit qt4-r2 multilib eutils
DESCRIPTION="Psi plugin for voice/video calls"
HOMEPAGE="http://delta.affinix.com/psimedia/"
SRC_URI="http://rion-overlay.googlecode.com/files/${P}.tar.xz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="demo extras"
COMMON_DEPEND="
>=dev-libs/glib-2.20.0
>=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-gui-4.4:4
>=media-libs/speex-1.2_rc1
"
RDEPEND="${COMMON_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-v4l2
media-plugins/gst-plugins-jpeg
!<net-im/psi-0.13_rc1
extras? ( >=net-im/psi-0.15_pre20110125[extras] )
"
DEPEND="${COMMON_DEPEND}
sys-devel/qconf
dev-util/pkgconfig
app-arch/xz-utils
"
src_prepare() {
sed -e '/^TEMPLATE/a CONFIG += ordered' -i psimedia.pro || die
# Don't build demo if we don't need that.
if use !demo; then
sed -e '/^SUBDIRS[[:space:]]*+=[[:space:]]*demo[[:space:]]*$/d;' \
-i psimedia.pro || die
fi
epatch "${FILESDIR}"/psimedia-1.0.3-glib2.32.patch
}
src_configure() {
qconf
# qconf generated configure script...
./configure --no-separate-debug-info || die
eqmake4
}
src_install() {
if use extras; then
pname="psi-plus"
else
pname="psi"
fi
insinto /usr/$(get_libdir)/${pname}/plugins
doins gstprovider/libgstprovider.so
if use demo; then
exeinto /usr/$(get_libdir)/${PN}
newexe demo/demo ${PN}
# Create /usr/bin/psimedia
cat <<-EOF > "demo/${PN}"
#!/bin/bash
export PSI_MEDIA_PLUGIN=/usr/$(get_libdir)/${pname}/plugins/libgstprovider.so
/usr/$(get_libdir)/${PN}/${PN}
EOF
dobin demo/${PN}
fi
}