/[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.8 - (hide annotations) (download)
Thu Jan 25 16:47:56 2007 UTC (10 years, 8 months ago) by lack
Branch: MAIN
Changes since 1.7: +9 -2 lines
Updated external plugin names to gst-plugins-bad-0.10.4 and gst-plugins-good-0.10.5

1 compnerd 1.1 # Copyright 1999-2006 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 lack 1.8 # $Header: /var/cvsroot/gentoo-x86/eclass/gst-plugins-bad.eclass,v 1.7 2006/10/14 20:27:21 swegener Exp $
4 compnerd 1.1
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 lack 1.8 # This list is current to gst-plugins-good-0.10.4 except for:
13     # gst_v4l2 - moved to gst-plugins-good-0.10.5 (not in >=gst-plugins-bad-0.10.4)
14     # But it must stay in this list until all <gst-plugins-bad-0.10.4
15     # are removed
16     my_gst_plugins_bad="alsa amrwb bz2 cdaudio directfb dts divx dvb faac faad gsm
17     gst_v4l2 ivorbis jack ladspa libmms mpeg2enc musepack musicbrainz neon opengl
18     sdl sdltest soundtouch spc swfdec theoradec wavpack xvid x"
19    
20 compnerd 1.1 #qtdemux spped tta
21    
22     inherit eutils gst-plugins10
23    
24     MY_PN="gst-plugins-bad"
25     MY_P=${MY_PN}-${PV}
26    
27     SRC_URI="http://gstreamer.freedesktop.org/src/gst-plugins-bad/${MY_P}.tar.bz2"
28    
29 zaheerm 1.2 # added to remove circular deps
30     # 6/2/2006 - zaheerm
31     if [ "${PN}" != "${MY_PN}" ]; then
32     RDEPEND="=media-libs/gstreamer-0.10*
33 swegener 1.7 =media-libs/gst-plugins-base-0.10*
34     >=dev-libs/glib-2.6
35     >=dev-libs/liboil-0.3"
36 compnerd 1.1 DEPEND="${RDEPEND}
37     sys-apps/sed
38     sys-devel/gettext"
39 zaheerm 1.2 fi
40 compnerd 1.1 S=${WORKDIR}/${MY_P}
41    
42     gst-plugins-bad_src_unpack() {
43     local makefiles
44    
45     unpack ${A}
46    
47     gst-plugins10_find_plugin_dir
48     cd ${S}
49    
50     # Remove generation of any other Makefiles except the plugin's Makefile
51     if [[ -d "${S}/sys/${GST_PLUGINS_BUILD_DIR}" ]] ; then
52 foser 1.4 makefiles="Makefile sys/Makefile sys/${GST_PLUGINS_BUILD_DIR}/Makefile"
53 compnerd 1.1 elif [[ -d "${S}/ext/${GST_PLUGINS_BUILD_DIR}" ]] ; then
54     makefiles="Makefile ext/Makefile ext/${GST_PLUGINS_BUILD_DIR}/Makefile"
55     fi
56    
57     sed -e "s:ac_config_files=.*:ac_config_files='${makefiles}':" \
58     -i ${S}/configure
59     }
60    
61     gst-plugins-bad_src_configure() {
62     local plugin gst_conf
63    
64     einfo "Configuring to build ${GST_PLUGINS_BUILD} plugin(s) ..."
65    
66     for plugin in ${GST_PLUGINS_BUILD} ; do
67 zaheerm 1.3 my_gst_plugins_bad="${my_gst_plugins_bad/${plugin}/}"
68 compnerd 1.1 done
69    
70 zaheerm 1.3 for plugin in ${my_gst_plugins_bad} ; do
71 compnerd 1.1 gst_conf="${gst_conf} --disable-${plugin}"
72     done
73    
74 foser 1.4 for plugin in ${GST_PLUGINS_BUILD} ; do
75 compnerd 1.1 gst_conf="${gst_conf} --enable-${plugin}"
76     done
77    
78     cd ${S}
79 zaheerm 1.6 econf ${@} --with-package-name="Gentoo GStreamer Ebuild" --with-package-origin="http://www.gentoo.org" ${gst_conf} || die "configure failed"
80 compnerd 1.1 }
81    
82     gst-plugins-bad_src_compile() {
83     gst-plugins-bad_src_configure ${@}
84    
85     gst-plugins10_find_plugin_dir
86     emake || die "compile failure"
87     }
88    
89     gst-plugins-bad_src_install() {
90     gst-plugins10_find_plugin_dir
91     einstall || die "install failed"
92    
93     dodoc README
94     }
95    
96     EXPORT_FUNCTIONS src_unpack src_compile src_install

  ViewVC Help
Powered by ViewVC 1.1.20