diff options
author | Peter Volkov <pva@gentoo.org> | 2011-04-08 09:00:19 +0000 |
---|---|---|
committer | Peter Volkov <pva@gentoo.org> | 2011-04-08 09:00:19 +0000 |
commit | b68e07a6aebd450d1af905c37a49b2be545bd079 (patch) | |
tree | fae3150003a8eb230b51045c3a2896b9968debdd /net-im/psimedia/psimedia-1.0.3-r3.ebuild | |
parent | remove old 0.7 series, version bump to 0.9.7: drops passenger support, adds h... (diff) | |
download | gentoo-2-b68e07a6aebd450d1af905c37a49b2be545bd079.tar.gz gentoo-2-b68e07a6aebd450d1af905c37a49b2be545bd079.tar.bz2 gentoo-2-b68e07a6aebd450d1af905c37a49b2be545bd079.zip |
Fixed crash due to dropped gst-plugins-v4l, bug 361419 thank Thomas Petersen for report and fix.
(Portage version: 2.1.9.45/cvs/Linux x86_64)
Diffstat (limited to 'net-im/psimedia/psimedia-1.0.3-r3.ebuild')
-rw-r--r-- | net-im/psimedia/psimedia-1.0.3-r3.ebuild | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/net-im/psimedia/psimedia-1.0.3-r3.ebuild b/net-im/psimedia/psimedia-1.0.3-r3.ebuild new file mode 100644 index 000000000000..481df913f2cb --- /dev/null +++ b/net-im/psimedia/psimedia-1.0.3-r3.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2011 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-r3.ebuild,v 1.1 2011/04/08 09:00:19 pva Exp $ + +EAPI="2" + +inherit eutils qt4-r2 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" + +COMMON_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-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 +" +DEPEND="${COMMON_DEPEND} + dev-util/pkgconfig +" + +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; } + # Remove support for V4L v1 because linux-headers-2.6.38 stopped shipping linux/videodev.h. + epatch "${FILESDIR}"/${P}-linux-headers-2.6.38.patch + epatch "${FILESDIR}"/${P}-drop-v4lsrc-gst-plugin.patch +} + +src_configure() { + # qconf generated configure script... + ./configure --no-separate-debug-info || die + + eqmake4 +} + +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 +} |