| 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.8 2006/05/04 16:30:35 zaheerm Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/gst-plugins-good.eclass,v 1.16 2008/12/05 20:39:36 ssuominen 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 | my_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" |
29 | |
|
|
30 | # This list is current to gst-plugins-good-0.10.6 |
|
|
31 | my_gst_plugins_good="gconf gconftool oss aalib aalibtest cairo cdio esd esdtest |
|
|
32 | flac jpeg ladspa libcaca libdv libpng dv1394 shout2 shout2test speex annodex hal |
|
|
33 | x taglib gdk_pixbuf gst_v4l2 sunaudio xshm xvideo zlib wavpack soup pulse bz2" |
| 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" |
| 32 | 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" |
| 33 | |
37 | |
| 34 | S=${WORKDIR}/${MY_P} |
38 | S=${WORKDIR}/${MY_P} |
| 35 | # added to remove circular deps |
39 | # added to remove circular deps |
| 36 | # 6/2/2006 - zaheerm |
40 | # 6/2/2006 - zaheerm |
| 37 | if [ "${PN}" != "${MY_PN}" ]; then |
41 | if [ "${PN}" != "${MY_PN}" ]; then |
| 38 | RDEPEND="=media-libs/gst-plugins-base-0.10*" |
42 | RDEPEND="=media-libs/gst-plugins-base-0.10*" |
| 39 | DEPEND="${RDEPEND} |
43 | DEPEND="${RDEPEND} |
| 40 | >=sys-apps/sed-4" |
44 | >=sys-apps/sed-4 |
|
|
45 | dev-util/pkgconfig" |
| 41 | fi |
46 | fi |
| 42 | |
47 | |
| 43 | ### |
48 | ### |
| 44 | # public functions |
49 | # public functions |
| 45 | ### |
50 | ### |
| … | |
… | |
| 60 | for plugin in ${GST_PLUGINS_BUILD}; do |
65 | for plugin in ${GST_PLUGINS_BUILD}; do |
| 61 | gst_conf="${gst_conf} --enable-${plugin} " |
66 | gst_conf="${gst_conf} --enable-${plugin} " |
| 62 | done |
67 | done |
| 63 | |
68 | |
| 64 | cd ${S} |
69 | cd ${S} |
| 65 | 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" |
| 66 | |
71 | |
| 67 | } |
72 | } |
| 68 | |
73 | |
| 69 | ### |
74 | ### |
| 70 | # public inheritable functions |
75 | # public inheritable functions |
| … | |
… | |
| 103 | gst-plugins-good_src_install() { |
108 | gst-plugins-good_src_install() { |
| 104 | |
109 | |
| 105 | gst-plugins10_find_plugin_dir |
110 | gst-plugins10_find_plugin_dir |
| 106 | einstall || die |
111 | einstall || die |
| 107 | |
112 | |
| 108 | dodoc README |
113 | [[ -e README ]] && dodoc README |
| 109 | } |
114 | } |
| 110 | |
115 | |
| 111 | EXPORT_FUNCTIONS src_unpack src_compile src_install |
116 | EXPORT_FUNCTIONS src_unpack src_compile src_install |