Gentoo Archives: gentoo-commits

From: Pacho Ramos <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-plugins/gst-plugins-libav/
Date: Tue, 29 Dec 2015 13:32:24
Message-Id: 1451395928.7941f8f8b9e3d8095377fdc773fef8504f3544c3.pacho@gentoo
1 commit: 7941f8f8b9e3d8095377fdc773fef8504f3544c3
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Tue Dec 29 13:22:17 2015 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 29 13:32:08 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7941f8f8
7
8 media-plugins/gst-plugins-libav: We need to rely on internal ffmpeg copy for letting libav users to use the plugin as upstream has decided to stop trying to make this compatible with libav lib
9
10 Package-Manager: portage-2.2.26
11
12 .../gst-plugins-libav-1.6.2-r1.ebuild | 70 ++++++++++++++++++++++
13 1 file changed, 70 insertions(+)
14
15 diff --git a/media-plugins/gst-plugins-libav/gst-plugins-libav-1.6.2-r1.ebuild b/media-plugins/gst-plugins-libav/gst-plugins-libav-1.6.2-r1.ebuild
16 new file mode 100644
17 index 0000000..921d54a
18 --- /dev/null
19 +++ b/media-plugins/gst-plugins-libav/gst-plugins-libav-1.6.2-r1.ebuild
20 @@ -0,0 +1,70 @@
21 +# Copyright 1999-2015 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +# $Id$
24 +
25 +EAPI="5"
26 +inherit eutils multilib-minimal
27 +
28 +MY_PN="gst-libav"
29 +DESCRIPTION="FFmpeg based gstreamer plugin"
30 +HOMEPAGE="http://gstreamer.freedesktop.org/modules/gst-libav.html"
31 +SRC_URI="http://gstreamer.freedesktop.org/src/${MY_PN}/${MY_PN}-${PV}.tar.xz"
32 +
33 +LICENSE="GPL-2"
34 +SLOT="1.0"
35 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
36 +IUSE="libav +orc"
37 +
38 +# XXX: bzip2/lzma are automagic
39 +RDEPEND="
40 + app-arch/bzip2
41 + app-arch/xz-utils
42 + >=media-libs/gstreamer-${PV}:1.0[${MULTILIB_USEDEP}]
43 + >=media-libs/gst-plugins-base-${PV}:1.0[${MULTILIB_USEDEP}]
44 + !libav? ( >=media-video/ffmpeg-2.2:0=[${MULTILIB_USEDEP}] )
45 + orc? ( >=dev-lang/orc-0.4.17[${MULTILIB_USEDEP}] )
46 +"
47 +DEPEND="${RDEPEND}
48 + >=dev-util/gtk-doc-am-1.12
49 + >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]
50 +"
51 +
52 +S="${WORKDIR}/${MY_PN}-${PV}"
53 +
54 +multilib_src_configure() {
55 + GST_PLUGINS_BUILD=""
56 + # Upstream dropped support for system libav and won't work
57 + # for preserving its compat anymore, forcing us to rely on internal
58 + # ffmpeg copy if we don't want to cause unresolvable blockers for
59 + # libav setups.
60 + # https://bugzilla.gnome.org/show_bug.cgi?id=758183
61 + # Prefer system ffmpeg for -libav
62 + local myconf
63 +
64 + if use libav; then
65 + ewarn "Using internal ffmpeg copy as upstream dropped the"
66 + ewarn "the support for compiling against system libav"
67 + ewarn "http://bugzilla.gnome.org/show_bug.cgi?id=758183"
68 + else
69 + myconf="--with-system-libav"
70 + fi
71 +
72 + ECONF_SOURCE=${S} \
73 + econf \
74 + --disable-maintainer-mode \
75 + --with-package-name="Gentoo GStreamer ebuild" \
76 + --with-package-origin="https://www.gentoo.org" \
77 + --disable-fatal-warnings \
78 + $(use_enable orc) \
79 + ${myconf}
80 +}
81 +
82 +multilib_src_compile() {
83 + # Don't build with -Werror
84 + emake ERROR_CFLAGS=
85 +}
86 +
87 +multilib_src_install_all() {
88 + einstalldocs
89 + prune_libtool_files --modules
90 +}