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

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

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

Revision 1.1 Revision 1.8
1# Copyright 1999-2004 Gentoo Foundation 1# Copyright 1999-2004 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-good.eclass,v 1.1 2005/12/02 22:19:58 zaheerm Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/gst-plugins-good.eclass,v 1.8 2006/05/04 16:30:35 zaheerm Exp $
4 4
5# Author : foser <foser@gentoo.org>, zaheerm <zaheerm@gentoo.org> 5# Author : foser <foser@gentoo.org>, zaheerm <zaheerm@gentoo.org>
6 6
7# gst-plugins-good eclass 7# gst-plugins-good eclass
8# 8#
9# eclass to make external gst-plugins emergable on a per-plugin basis 9# eclass to make external gst-plugins emergable on a per-plugin basis
10# to solve the problem with gst-plugins generating far too much unneeded deps 10# to solve the problem with gst-plugins generating far too much unneeded deps
11# 11#
12# 3rd party applications using gstreamer now should depend on a set of plugins as 12# 3rd party applications using gstreamer now should depend on a set of plugins as
13# defined in the source, obtain recommended plugins to use from 13# defined in the source, obtain recommended plugins to use from
14# Gentoo developers responsible for gstreamer <gnome@gentoo.org>, the application developer 14# Gentoo developers responsible for gstreamer <gnome@gentoo.org>, the application developer
15# or the gstreamer team. 15# or the gstreamer team.
16 16
17inherit eutils gst-plugins10 17inherit eutils gst-plugins10
18 18
19 19
24MY_PN=gst-plugins-good 24MY_PN=gst-plugins-good
25MY_P=${MY_PN}-${PV} 25MY_P=${MY_PN}-${PV}
26# All relevant configure options for gst-plugins 26# All relevant configure options for gst-plugins
27# need a better way to extract these 27# need a better way to extract these
28# gst-plugins-base 0.9 28# gst-plugins-base 0.9
29my_gst_plugins_good="gconf gconftool oss aalib aalibtest cairo esd esdtest flac jpeg ladspa libcaca libdv libpng dv1394 shout2 shout2test speex" 29my_gst_plugins_good="gconf gconftool oss aalib aalibtest cairo cdio esd esdtest flac jpeg ladspa libcaca libdv libpng dv1394 shout2 shout2test speex annodex hal x taglib"
30 30
31#SRC_URI="mirror://gnome/sources/gst-plugins/${PV_MAJ_MIN}/${MY_P}.tar.bz2" 31#SRC_URI="mirror://gnome/sources/gst-plugins/${PV_MAJ_MIN}/${MY_P}.tar.bz2"
32SRC_URI="http://gstreamer.freedesktop.org/src/gst-plugins-good/${MY_P}.tar.bz2" 32SRC_URI="http://gstreamer.freedesktop.org/src/gst-plugins-good/${MY_P}.tar.bz2"
33 33
34S=${WORKDIR}/${MY_P} 34S=${WORKDIR}/${MY_P}
35 35# added to remove circular deps
36# 6/2/2006 - zaheerm
37if [ "${PN}" != "${MY_PN}" ]; then
36RDEPEND=">=media-libs/gst-plugins-base-0.9*" 38RDEPEND="=media-libs/gst-plugins-base-0.10*"
37DEPEND="${RDEPEND} 39DEPEND="${RDEPEND}
38 >=sys-apps/sed-4" 40 >=sys-apps/sed-4"
39 41fi
40 42
41### 43###
42# public functions 44# public functions
43### 45###
44 46
45gst-plugins-good_src_configure() { 47gst-plugins-good_src_configure() {
46 48
47 # disable any external plugin besides the plugin we want 49 # disable any external plugin besides the plugin we want
48 local plugin gst_conf 50 local plugin gst_conf
49 51
50 einfo "Configuring to build ${GST_PLUGINS_BUILD} plugin(s) ..." 52 einfo "Configuring to build ${GST_PLUGINS_BUILD} plugin(s) ..."
51 53
81 # Remove generation of any other Makefiles except the plugin's Makefile 83 # Remove generation of any other Makefiles except the plugin's Makefile
82 if [ -d "${S}/sys/${GST_PLUGINS_BUILD_DIR}" ]; then 84 if [ -d "${S}/sys/${GST_PLUGINS_BUILD_DIR}" ]; then
83 makefiles="Makefile sys/Makefile sys/${GST_PLUGINS_BUILD_DIR}/Makefile" 85 makefiles="Makefile sys/Makefile sys/${GST_PLUGINS_BUILD_DIR}/Makefile"
84 elif [ -d "${S}/ext/${GST_PLUGINS_BUILD_DIR}" ]; then 86 elif [ -d "${S}/ext/${GST_PLUGINS_BUILD_DIR}" ]; then
85 makefiles="Makefile ext/Makefile ext/${GST_PLUGINS_BUILD_DIR}/Makefile" 87 makefiles="Makefile ext/Makefile ext/${GST_PLUGINS_BUILD_DIR}/Makefile"
86 fi 88 fi
87 sed -e "s:ac_config_files=.*:ac_config_files='${makefiles}':" \ 89 sed -e "s:ac_config_files=.*:ac_config_files='${makefiles}':" \
88 -i ${S}/configure 90 -i ${S}/configure
89 91
90} 92}
91 93

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

  ViewVC Help
Powered by ViewVC 1.1.20