/[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.13
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.13 2007/08/30 10:37:04 drac 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" 29
30# This list is current to gst-plugins-good-0.10.6
31my_gst_plugins_good="gconf gconftool oss aalib aalibtest cairo cdio esd esdtest
32flac jpeg ladspa libcaca libdv libpng dv1394 shout2 shout2test speex annodex hal
33x taglib gdk_pixbuf gst_v4l2 sunaudio xshm xvideo zlib wavpack"
30 34
31#SRC_URI="mirror://gnome/sources/gst-plugins/${PV_MAJ_MIN}/${MY_P}.tar.bz2" 35#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" 36SRC_URI="http://gstreamer.freedesktop.org/src/gst-plugins-good/${MY_P}.tar.bz2"
33 37
34S=${WORKDIR}/${MY_P} 38S=${WORKDIR}/${MY_P}
35 39# added to remove circular deps
40# 6/2/2006 - zaheerm
41if [ "${PN}" != "${MY_PN}" ]; then
36RDEPEND=">=media-libs/gst-plugins-base-0.9*" 42RDEPEND="=media-libs/gst-plugins-base-0.10*"
37DEPEND="${RDEPEND} 43DEPEND="${RDEPEND}
38 >=sys-apps/sed-4" 44 >=sys-apps/sed-4
39 45 dev-util/pkgconfig"
46fi
40 47
41### 48###
42# public functions 49# public functions
43### 50###
44 51
45gst-plugins-good_src_configure() { 52gst-plugins-good_src_configure() {
46 53
47 # disable any external plugin besides the plugin we want 54 # disable any external plugin besides the plugin we want
48 local plugin gst_conf 55 local plugin gst_conf
49 56
50 einfo "Configuring to build ${GST_PLUGINS_BUILD} plugin(s) ..." 57 einfo "Configuring to build ${GST_PLUGINS_BUILD} plugin(s) ..."
51 58
58 for plugin in ${GST_PLUGINS_BUILD}; do 65 for plugin in ${GST_PLUGINS_BUILD}; do
59 gst_conf="${gst_conf} --enable-${plugin} " 66 gst_conf="${gst_conf} --enable-${plugin} "
60 done 67 done
61 68
62 cd ${S} 69 cd ${S}
63 econf ${@} ${gst_conf} || die "./configure failure" 70 econf ${@} --with-package-name="Gentoo GStreamer Ebuild" --with-package-origin="http://www.gentoo.org" ${gst_conf} || die "./configure failure"
64 71
65} 72}
66 73
67### 74###
68# public inheritable functions 75# public inheritable functions
81 # Remove generation of any other Makefiles except the plugin's Makefile 88 # Remove generation of any other Makefiles except the plugin's Makefile
82 if [ -d "${S}/sys/${GST_PLUGINS_BUILD_DIR}" ]; then 89 if [ -d "${S}/sys/${GST_PLUGINS_BUILD_DIR}" ]; then
83 makefiles="Makefile sys/Makefile sys/${GST_PLUGINS_BUILD_DIR}/Makefile" 90 makefiles="Makefile sys/Makefile sys/${GST_PLUGINS_BUILD_DIR}/Makefile"
84 elif [ -d "${S}/ext/${GST_PLUGINS_BUILD_DIR}" ]; then 91 elif [ -d "${S}/ext/${GST_PLUGINS_BUILD_DIR}" ]; then
85 makefiles="Makefile ext/Makefile ext/${GST_PLUGINS_BUILD_DIR}/Makefile" 92 makefiles="Makefile ext/Makefile ext/${GST_PLUGINS_BUILD_DIR}/Makefile"
86 fi 93 fi
87 sed -e "s:ac_config_files=.*:ac_config_files='${makefiles}':" \ 94 sed -e "s:ac_config_files=.*:ac_config_files='${makefiles}':" \
88 -i ${S}/configure 95 -i ${S}/configure
89 96
90} 97}
91 98

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

  ViewVC Help
Powered by ViewVC 1.1.20