| 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.5 2006/02/27 11:11:22 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 | # |
| … | |
… | |
| 24 | MY_PN=gst-plugins-good |
24 | MY_PN=gst-plugins-good |
| 25 | MY_P=${MY_PN}-${PV} |
25 | MY_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 |
|
|
29 | |
|
|
30 | # This list is current to gst-plugins-good-0.10.6 |
| 29 | my_gst_plugins_good="gconf gconftool oss aalib aalibtest cairo cdio esd \ |
31 | my_gst_plugins_good="gconf gconftool oss aalib aalibtest cairo cdio esd esdtest |
| 30 | esdtest flac jpeg ladspa libcaca libdv libpng dv1394 shout2 shout2test \ |
32 | flac jpeg ladspa libcaca libdv libpng dv1394 shout2 shout2test speex annodex hal |
| 31 | speex" |
33 | x taglib gdk_pixbuf gst_v4l2 sunaudio xshm xvideo zlib wavpack" |
| 32 | |
34 | |
| 33 | #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" |
| 34 | SRC_URI="http://gstreamer.freedesktop.org/src/gst-plugins-good/${MY_P}.tar.bz2" |
36 | SRC_URI="http://gstreamer.freedesktop.org/src/gst-plugins-good/${MY_P}.tar.bz2" |
| 35 | |
37 | |
| 36 | S=${WORKDIR}/${MY_P} |
38 | S=${WORKDIR}/${MY_P} |
| 37 | # added to remove circular deps |
39 | # added to remove circular deps |
| 38 | # 6/2/2006 - zaheerm |
40 | # 6/2/2006 - zaheerm |
| 39 | if [ "${PN}" != "${MY_PN}" ]; then |
41 | if [ "${PN}" != "${MY_PN}" ]; then |
| 40 | RDEPEND="=media-libs/gst-plugins-base-0.10*" |
42 | RDEPEND="=media-libs/gst-plugins-base-0.10*" |
| 41 | DEPEND="${RDEPEND} |
43 | DEPEND="${RDEPEND} |
| 42 | >=sys-apps/sed-4" |
44 | >=sys-apps/sed-4 |
|
|
45 | dev-util/pkgconfig" |
| 43 | fi |
46 | fi |
| 44 | |
47 | |
| 45 | ### |
48 | ### |
| 46 | # public functions |
49 | # public functions |
| 47 | ### |
50 | ### |
| … | |
… | |
| 62 | for plugin in ${GST_PLUGINS_BUILD}; do |
65 | for plugin in ${GST_PLUGINS_BUILD}; do |
| 63 | gst_conf="${gst_conf} --enable-${plugin} " |
66 | gst_conf="${gst_conf} --enable-${plugin} " |
| 64 | done |
67 | done |
| 65 | |
68 | |
| 66 | cd ${S} |
69 | cd ${S} |
| 67 | 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" |
| 68 | |
71 | |
| 69 | } |
72 | } |
| 70 | |
73 | |
| 71 | ### |
74 | ### |
| 72 | # public inheritable functions |
75 | # public inheritable functions |