/[gentoo-x86]/eclass/gst-plugins-bad.eclass
Gentoo

Contents of /eclass/gst-plugins-bad.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sat Jan 21 01:29:12 2006 UTC (11 years, 9 months ago) by compnerd
Branch: MAIN
Adding gst-plugins-bad.eclass for missing gst 0.10 plugins

1 # Copyright 1999-2006 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
4
5 #
6 # Original Author: Saleem Abdulrasool <compnerd@gentoo.org>
7 # Based on the work of foser <foser@gentoo.org> and zaheerm <zaheerm@gentoo.org>
8 # Purpose: This elcass is designed to help package external gst-plugins per
9 # plugin rather than in a single package.
10 #
11
12 my_plugins="directfb faac faad gsm ivorbis libmms musepack sdl wavpack"
13 #qtdemux spped tta
14
15 inherit eutils gst-plugins10
16
17 MY_PN="gst-plugins-bad"
18 MY_P=${MY_PN}-${PV}
19
20 SRC_URI="http://gstreamer.freedesktop.org/src/gst-plugins-bad/${MY_P}.tar.bz2"
21
22 RDEPEND=">=media-libs/gstreamer-0.10
23 >=media-libs/gst-plugins-base-0.10
24 >=dev-libs/glib-2.6
25 >=dev-libs/liboil-0.3"
26 DEPEND="${RDEPEND}
27 sys-apps/sed
28 sys-devel/gettext"
29
30 S=${WORKDIR}/${MY_P}
31
32 gst-plugins-bad_src_unpack() {
33 local makefiles
34
35 unpack ${A}
36
37 gst-plugins10_find_plugin_dir
38 cd ${S}
39
40 # Remove generation of any other Makefiles except the plugin's Makefile
41 if [[ -d "${S}/sys/${GST_PLUGINS_BUILD_DIR}" ]] ; then
42 makefiles="Makefile sys/Makefile sys/${GST_PLUINGS_BUILD_DIR}/Makefile"
43 elif [[ -d "${S}/ext/${GST_PLUGINS_BUILD_DIR}" ]] ; then
44 makefiles="Makefile ext/Makefile ext/${GST_PLUGINS_BUILD_DIR}/Makefile"
45 fi
46
47 sed -e "s:ac_config_files=.*:ac_config_files='${makefiles}':" \
48 -i ${S}/configure
49 }
50
51 gst-plugins-bad_src_configure() {
52 local plugin gst_conf
53
54 einfo "Configuring to build ${GST_PLUGINS_BUILD} plugin(s) ..."
55
56 for plugin in ${GST_PLUGINS_BUILD} ; do
57 my_plugins="${my_plugins/${plugin}/}"
58 done
59
60 for plugin in ${my_plugins} ; do
61 gst_conf="${gst_conf} --disable-${plugin}"
62 done
63
64 for plugin in ${GST_PLUINGS_BUILD} ; do
65 gst_conf="${gst_conf} --enable-${plugin}"
66 done
67
68 cd ${S}
69 econf ${@} ${gst_conf} || die "configure failed"
70 }
71
72 gst-plugins-bad_src_compile() {
73 gst-plugins-bad_src_configure ${@}
74
75 gst-plugins10_find_plugin_dir
76 emake || die "compile failure"
77 }
78
79 gst-plugins-bad_src_install() {
80 gst-plugins10_find_plugin_dir
81 einstall || die "install failed"
82
83 dodoc README
84 }
85
86 EXPORT_FUNCTIONS src_unpack src_compile src_install

  ViewVC Help
Powered by ViewVC 1.1.20