blob: e5a82326cf24cdf1c2ec06d7af5e60b3e85277cb (
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
69
70
71
72
73
74
75
76
77
78
79
|
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit eutils gstreamer
DESCRIPTION="A GStreamer based RTSP server"
HOMEPAGE="http://people.freedesktop.org/~wtay/"
LICENSE="LGPL-2"
KEYWORDS="amd64 x86"
IUSE="examples +introspection static-libs test"
# FIXME: check should depend on USE=test but check is losy
# configure says good and bad are required by macros forces them to be optional
# they are only used in unittests anyway.
RDEPEND="
>=dev-libs/glib-2.32:2[${MULTILIB_USEDEP}]
>=media-libs/gstreamer-1.4:${SLOT}[introspection?,${MULTILIB_USEDEP}]
>=media-libs/gst-plugins-base-1.4:${SLOT}[introspection?,${MULTILIB_USEDEP}]
introspection? ( >=dev-libs/gobject-introspection-1.31.1 )
"
DEPEND="${RDEPEND}
>=dev-libs/check-0.9.2
>=dev-util/gtk-doc-am-1.12
virtual/pkgconfig
test? (
>=media-libs/gst-plugins-bad-1.4:${SLOT}[introspection?,${MULTILIB_USEDEP}]
>=media-libs/gst-plugins-good-1.4:${SLOT}[${MULTILIB_USEDEP}]
)
"
# Due to gstreamer src_configure
QA_CONFIGURE_OPTIONS="--enable-nls"
src_prepare() {
# don't waste time building examples
sed -e '/SUBDIRS.*=/,/^$/ { s/examples// };' \
-i Makefile.am Makefile.in \
|| die
}
multilib_src_configure() {
# debug: only adds -g to CFLAGS
# docbook: nothing behind that switch
# libcgroup is automagic and only used in examples
gstreamer_multilib_src_configure \
--disable-docbook \
--disable-gtk-doc \
$(multilib_native_use_enable introspection) \
$(use_enable static-libs static) \
$(use_enable test tests) \
LIBCGROUP_LIBS= \
LIBCGROUP_FLAGS=
# work-around gtk-doc out-of-source brokedness
if multilib_is_native_abi ; then
ln -s "${S}"/docs/libs/${d}/html docs/libs/${d}/html || die
fi
}
multilib_src_install() {
emake install DESTDIR="${D}"
# Handle broken upstream modifications to defaults of gtk-doc
emake install -C docs/libs DESTDIR="${D}"
prune_libtool_files
}
multilib_src_install_all() {
einstalldocs
if use examples ; then
insinto /usr/share/doc/${PF}/examples
doins "${S}"/examples/*.c
fi
}
|