/[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.11 - (hide annotations) (download)
Thu Feb 21 10:39:47 2008 UTC (9 years, 8 months ago) by zaheerm
Branch: MAIN
Changes since 1.10: +2 -2 lines
changes for 0.10.6

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

  ViewVC Help
Powered by ViewVC 1.1.20