| 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.17 2009/03/30 04:24:15 tester 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 |
| 71 | ### |
76 | ### |
| 72 | |
77 | |
| 73 | gst-plugins-good_src_unpack() { |
78 | gst-plugins-good_src_unpack() { |
| 74 | |
79 | |
| 75 | local makefiles |
80 | # local makefiles |
| 76 | |
81 | |
| 77 | unpack ${A} |
82 | unpack ${A} |
| 78 | |
83 | |
| 79 | # Link with the syswide installed gst-libs if needed |
84 | # Link with the syswide installed gst-libs if needed |
| 80 | gst-plugins10_find_plugin_dir |
85 | # gst-plugins10_find_plugin_dir |
| 81 | cd ${S} |
86 | # cd ${S} |
| 82 | |
87 | |
| 83 | # Remove generation of any other Makefiles except the plugin's Makefile |
88 | # Remove generation of any other Makefiles except the plugin's Makefile |
| 84 | if [ -d "${S}/sys/${GST_PLUGINS_BUILD_DIR}" ]; then |
89 | # if [ -d "${S}/sys/${GST_PLUGINS_BUILD_DIR}" ]; then |
| 85 | makefiles="Makefile sys/Makefile sys/${GST_PLUGINS_BUILD_DIR}/Makefile" |
90 | # makefiles="Makefile sys/Makefile sys/${GST_PLUGINS_BUILD_DIR}/Makefile" |
| 86 | elif [ -d "${S}/ext/${GST_PLUGINS_BUILD_DIR}" ]; then |
91 | # elif [ -d "${S}/ext/${GST_PLUGINS_BUILD_DIR}" ]; then |
| 87 | makefiles="Makefile ext/Makefile ext/${GST_PLUGINS_BUILD_DIR}/Makefile" |
92 | # makefiles="Makefile ext/Makefile ext/${GST_PLUGINS_BUILD_DIR}/Makefile" |
| 88 | fi |
93 | # fi |
| 89 | sed -e "s:ac_config_files=.*:ac_config_files='${makefiles}':" \ |
94 | # sed -e "s:ac_config_files=.*:ac_config_files='${makefiles}':" \ |
| 90 | -i ${S}/configure |
95 | # -i ${S}/configure |
| 91 | |
96 | |
| 92 | } |
97 | } |
| 93 | |
98 | |
| 94 | gst-plugins-good_src_compile() { |
99 | gst-plugins-good_src_compile() { |
| 95 | |
100 | |
| … | |
… | |
| 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 |