forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gstreamermm-1.8.0.ebuild
74 lines (62 loc) · 1.7 KB
/
gstreamermm-1.8.0.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
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
GNOME2_EAUTORECONF="yes"
inherit gnome2 virtualx
DESCRIPTION="C++ interface for GStreamer"
HOMEPAGE="https://gstreamer.freedesktop.org/bindings/cplusplus.html"
LICENSE="LGPL-2.1"
SLOT="1.0/1"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="doc examples test"
# module is experimental:
# >=media-libs/gst-plugins-bad-${PV}:1.0[opengl?]
RDEPEND="
>=media-libs/gstreamer-${PV}:1.0
>=media-libs/gst-plugins-base-${PV}:1.0
>=dev-cpp/glibmm-2.47.6:2
>=dev-cpp/libxmlpp-2.14:2.6
>=dev-libs/libsigc++-2:2
"
DEPEND="${RDEPEND}
dev-cpp/mm-common
virtual/pkgconfig
doc? (
app-doc/doxygen
dev-libs/libxslt
media-gfx/graphviz )
test? (
dev-cpp/gtest
>=media-libs/gst-plugins-base-${PV}:1.0[X,ogg,theora,vorbis]
>=media-libs/gst-plugins-good-${PV}:1.0
>=media-plugins/gst-plugins-jpeg-${PV}:1.0 )
"
# eautoreconf:
# dev-cpp/mm-common
# Installs reference docs into /usr/share/doc/gstreamermm-1.0/
# but that's okay, because the rest of dev-cpp/*mm stuff does the same
PATCHES=(
# Upstream patches
"${FILESDIR}"/1.8.0-add-missing-header.patch
"${FILESDIR}"/1.8.0-gst-bad-pkgconfig-cflags.patch
"${FILESDIR}"/1.8.0-fix-wrapping.patch
)
src_prepare() {
if ! use examples; then
# don't waste time building examples
sed -e 's/^\(SUBDIRS =.*\)examples\(.*\)$/\1\2/' \
-i Makefile.am Makefile.in || die
fi
sed -e 's/ -Werror/ /' -i tests/Makefile.am tests/Makefile.in || die
gnome2_src_prepare
}
src_configure() {
gnome2_src_configure \
--disable-plugins-bad \
$(use_enable doc documentation) \
$(use_enable test unittests)
}
src_test() {
# running tests in parallel fails
virtx emake -j1 check
}