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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.1 Revision 1.5
1# Copyright 1999-2006 Gentoo Foundation 1# Copyright 1999-2006 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/gst-plugins-bad.eclass,v 1.1 2006/01/21 01:29:12 compnerd Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/gst-plugins-bad.eclass,v 1.5 2006/05/10 11:50:14 zaheerm Exp $
4 4
5# 5#
6# Original Author: Saleem Abdulrasool <compnerd@gentoo.org> 6# Original Author: Saleem Abdulrasool <compnerd@gentoo.org>
7# Based on the work of foser <foser@gentoo.org> and zaheerm <zaheerm@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 8# Purpose: This elcass is designed to help package external gst-plugins per
9# plugin rather than in a single package. 9# plugin rather than in a single package.
10# 10#
11 11
12my_plugins="directfb faac faad gsm ivorbis libmms musepack sdl wavpack" 12my_gst_plugins_bad="amrwb bz2 directfb dts divx faac faad gsm gst_v4l2 ivorbis libmms musepack musicbrainz neon opengl sdl sdltest soundtouch swfdec theoradec wavpack xvid"
13#qtdemux spped tta 13#qtdemux spped tta
14 14
15inherit eutils gst-plugins10 15inherit eutils gst-plugins10
16 16
17MY_PN="gst-plugins-bad" 17MY_PN="gst-plugins-bad"
18MY_P=${MY_PN}-${PV} 18MY_P=${MY_PN}-${PV}
19 19
20SRC_URI="http://gstreamer.freedesktop.org/src/gst-plugins-bad/${MY_P}.tar.bz2" 20SRC_URI="http://gstreamer.freedesktop.org/src/gst-plugins-bad/${MY_P}.tar.bz2"
21 21
22# added to remove circular deps
23# 6/2/2006 - zaheerm
24if [ "${PN}" != "${MY_PN}" ]; then
22RDEPEND=">=media-libs/gstreamer-0.10 25RDEPEND="=media-libs/gstreamer-0.10*
23 >=media-libs/gst-plugins-base-0.10 26 =media-libs/gst-plugins-base-0.10*
24 >=dev-libs/glib-2.6 27 >=dev-libs/glib-2.6
25 >=dev-libs/liboil-0.3" 28 >=dev-libs/liboil-0.3"
26DEPEND="${RDEPEND} 29DEPEND="${RDEPEND}
27 sys-apps/sed 30 sys-apps/sed
28 sys-devel/gettext" 31 sys-devel/gettext"
29 32fi
30S=${WORKDIR}/${MY_P} 33S=${WORKDIR}/${MY_P}
31 34
32gst-plugins-bad_src_unpack() { 35gst-plugins-bad_src_unpack() {
33 local makefiles 36 local makefiles
34 37
37 gst-plugins10_find_plugin_dir 40 gst-plugins10_find_plugin_dir
38 cd ${S} 41 cd ${S}
39 42
40 # Remove generation of any other Makefiles except the plugin's Makefile 43 # Remove generation of any other Makefiles except the plugin's Makefile
41 if [[ -d "${S}/sys/${GST_PLUGINS_BUILD_DIR}" ]] ; then 44 if [[ -d "${S}/sys/${GST_PLUGINS_BUILD_DIR}" ]] ; then
42 makefiles="Makefile sys/Makefile sys/${GST_PLUINGS_BUILD_DIR}/Makefile" 45 makefiles="Makefile sys/Makefile sys/${GST_PLUGINS_BUILD_DIR}/Makefile"
43 elif [[ -d "${S}/ext/${GST_PLUGINS_BUILD_DIR}" ]] ; then 46 elif [[ -d "${S}/ext/${GST_PLUGINS_BUILD_DIR}" ]] ; then
44 makefiles="Makefile ext/Makefile ext/${GST_PLUGINS_BUILD_DIR}/Makefile" 47 makefiles="Makefile ext/Makefile ext/${GST_PLUGINS_BUILD_DIR}/Makefile"
45 fi 48 fi
46 49
47 sed -e "s:ac_config_files=.*:ac_config_files='${makefiles}':" \ 50 sed -e "s:ac_config_files=.*:ac_config_files='${makefiles}':" \
52 local plugin gst_conf 55 local plugin gst_conf
53 56
54 einfo "Configuring to build ${GST_PLUGINS_BUILD} plugin(s) ..." 57 einfo "Configuring to build ${GST_PLUGINS_BUILD} plugin(s) ..."
55 58
56 for plugin in ${GST_PLUGINS_BUILD} ; do 59 for plugin in ${GST_PLUGINS_BUILD} ; do
57 my_plugins="${my_plugins/${plugin}/}" 60 my_gst_plugins_bad="${my_gst_plugins_bad/${plugin}/}"
58 done 61 done
59 62
60 for plugin in ${my_plugins} ; do 63 for plugin in ${my_gst_plugins_bad} ; do
61 gst_conf="${gst_conf} --disable-${plugin}" 64 gst_conf="${gst_conf} --disable-${plugin}"
62 done 65 done
63 66
64 for plugin in ${GST_PLUINGS_BUILD} ; do 67 for plugin in ${GST_PLUGINS_BUILD} ; do
65 gst_conf="${gst_conf} --enable-${plugin}" 68 gst_conf="${gst_conf} --enable-${plugin}"
66 done 69 done
67 70
68 cd ${S} 71 cd ${S}
69 econf ${@} ${gst_conf} || die "configure failed" 72 econf ${@} ${gst_conf} || die "configure failed"

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.5

  ViewVC Help
Powered by ViewVC 1.1.20