blob: 1185231b4f142434666732c0e9d7a1eb40475b3c (
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
|
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="5"
inherit gst-plugins-base gst-plugins10-multilib
DESCRIPTION="Basepack of plugins for gstreamer"
HOMEPAGE="http://gstreamer.freedesktop.org/"
LICENSE="GPL-2+ LGPL-2+"
KEYWORDS="~amd64"
IUSE="alsa +introspection ivorbis +ogg +orc +pango theora +vorbis X"
REQUIRED_USE="
ivorbis? ( ogg )
theora? ( ogg )
vorbis? ( ogg )
"
RDEPEND="
app-text/iso-codes
>=dev-libs/glib-2.32:2[${MULTILIB_USEDEP}]
>=media-libs/gstreamer-1.2.0:1.0[introspection?,${MULTILIB_USEDEP}]
sys-libs/zlib[${MULTILIB_USEDEP}]
alsa? ( >=media-libs/alsa-lib-0.9.1[${MULTILIB_USEDEP}] )
introspection? ( >=dev-libs/gobject-introspection-1.31.1[${MULTILIB_USEDEP}] )
ivorbis? ( media-libs/tremor[${MULTILIB_USEDEP}] )
ogg? ( >=media-libs/libogg-1[${MULTILIB_USEDEP}] )
orc? ( >=dev-lang/orc-0.4.18[${MULTILIB_USEDEP}] )
pango? ( >=x11-libs/pango-1.22[${MULTILIB_USEDEP}] )
theora? ( >=media-libs/libtheora-1.1[encode,${MULTILIB_USEDEP}] )
vorbis? ( >=media-libs/libvorbis-1[${MULTILIB_USEDEP}] )
X? (
x11-libs/libX11[${MULTILIB_USEDEP}]
x11-libs/libXext[${MULTILIB_USEDEP}]
x11-libs/libXv[${MULTILIB_USEDEP}] )
"
DEPEND="${RDEPEND}
>=dev-util/gtk-doc-am-1.12
X? (
x11-proto/videoproto[${MULTILIB_USEDEP}]
x11-proto/xextproto[${MULTILIB_USEDEP}]
x11-proto/xproto[${MULTILIB_USEDEP}] )
"
src_prepare() {
# The AC_PATH_XTRA macro unnecessarily pulls in libSM and libICE even
# though they are not actually used. This needs to be fixed upstream by
# replacing AC_PATH_XTRA with PKG_CONFIG calls, upstream bug #731047
sed -i -e 's:X_PRE_LIBS -lSM -lICE:X_PRE_LIBS:' "${S}"/configure || die
gst-plugins10-multilib_src_prepare
}
src_configure() {
gst-plugins10-multilib_src_configure \
$(use_enable alsa) \
$(use_enable introspection) \
$(use_enable ivorbis) \
$(use_enable ogg) \
$(use_enable orc) \
$(use_enable pango) \
$(use_enable theora) \
$(use_enable vorbis) \
$(use_enable X x) \
$(use_enable X xshm) \
$(use_enable X xvideo) \
--disable-debug \
--disable-examples \
--disable-freetypetest \
--disable-static
# cdparanoia and libvisual are split out, per leio's request
# bug #366931, flag-o-matic for the whole thing is overkill
if [[ ${CHOST} == *86-*-darwin* ]] ; then
sed -i \
-e '/FLAGS = /s|-O[23]|-O1|g' \
gst/audioconvert/Makefile \
gst/volume/Makefile || die
fi
}
ehook gst-plugins10-multilib-per-abi-pre_src_compile my_abi_pre_compile
my_abi_pre_compile() {
default
return 1
}
ehook gst-plugins10-multilib-per-abi-pre_src_install my_abi_pre_install
my_abi_pre_install() {
DOCS="AUTHORS NEWS README RELEASE"
default
prune_libtool_files --modules
return 1
}
|