90 lines
2.4 KiB
Bash
90 lines
2.4 KiB
Bash
# Copyright 1999-2013 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Header: /var/cvsroot/gentoo-x86/media-libs/gst-plugins-base/gst-plugins-base-1.0.10.ebuild,v 1.10 2013/10/22 07:20:15 ago Exp $
|
|
|
|
EAPI="5"
|
|
|
|
inherit gst-plugins-base gst-plugins10
|
|
|
|
DESCRIPTION="Basepack of plugins for gstreamer"
|
|
HOMEPAGE="http://gstreamer.freedesktop.org/"
|
|
|
|
LICENSE="GPL-2+ LGPL-2+"
|
|
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
|
|
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
|
|
>=media-libs/gstreamer-${PV}:1.0[introspection?]
|
|
sys-libs/zlib
|
|
alsa? ( >=media-libs/alsa-lib-0.9.1 )
|
|
introspection? ( >=dev-libs/gobject-introspection-1.31.1 )
|
|
ivorbis? ( media-libs/tremor )
|
|
ogg? ( >=media-libs/libogg-1 )
|
|
orc? ( >=dev-lang/orc-0.4.16 )
|
|
pango? ( >=x11-libs/pango-1.22 )
|
|
theora? ( >=media-libs/libtheora-1.1[encode] )
|
|
vorbis? ( >=media-libs/libvorbis-1 )
|
|
X? (
|
|
x11-libs/libX11
|
|
x11-libs/libXext
|
|
x11-libs/libXv )
|
|
"
|
|
DEPEND="${RDEPEND}
|
|
>=dev-util/gtk-doc-am-1.12
|
|
X? (
|
|
x11-proto/videoproto
|
|
x11-proto/xextproto
|
|
x11-proto/xproto )
|
|
"
|
|
|
|
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.
|
|
sed -i -e 's:X_PRE_LIBS -lSM -lICE:X_PRE_LIBS:' "${S}"/configure || die
|
|
}
|
|
|
|
src_configure() {
|
|
gst-plugins10_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
|
|
}
|
|
|
|
src_compile() {
|
|
default
|
|
}
|
|
|
|
src_install() {
|
|
DOCS="AUTHORS NEWS README RELEASE"
|
|
default
|
|
prune_libtool_files --modules
|
|
}
|