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

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

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

Revision 1.2 Revision 1.14
1# Copyright 1999-2006 Gentoo Foundation 1# Copyright 1999-2006 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-bad.eclass,v 1.2 2006/02/06 17:45:19 zaheerm Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/gst-plugins-bad.eclass,v 1.14 2009/03/30 04:24:15 tester Exp $
4 4
5# 5#
6# Original Author: Saleem Abdulrasool <compnerd@gentoo.org> 6# Original Author: Saleem Abdulrasool <compnerd@gentoo.org>
7# Based on the work of foser <foser@gentoo.org> and zaheerm <zaheerm@gentoo.org> 7# Based on the work of foser <foser@gentoo.org> and zaheerm <zaheerm@gentoo.org>
8# Purpose: This elcass is designed to help package external gst-plugins per 8# Purpose: This elcass is designed to help package external gst-plugins per
9# plugin rather than in a single package. 9# plugin rather than in a single package.
10# 10#
11 11
12my_plugins="directfb faac faad gsm ivorbis libmms musepack sdl wavpack" 12# This list is current to gst-plugins-bad-0.10.4 except for:
13# gst_v4l2 - moved to gst-plugins-bad-0.10.5 (not in >=gst-plugins-bad-0.10.4)
14# But it must stay in this list until all <gst-plugins-bad-0.10.4
15# are removed
16# drac at gentoo.org:
17# This list is current to gst-plugins-bad-0.10.5 except for:
18# Not present in 0.10.5 - wavpack
19my_gst_plugins_bad="opengl vcd x alsa amrwb bz2 cdaudio directfb dts divx faac
20faad gsm gst_v4l2 ivorbis jack ladspa libmms mpeg2enc musepack musicbrainz
21mythtv nas neon timidity wildmidi sdl sdltest sndfile soundtouch spc swfdec
22theoradec x264 xvid dvb wavpack quicktime dc1394 metadata fbdev soup dirac mplex
23ofa oss4 apexsink celt dvdnav jp2k twolame mimic modplug"
24
13#qtdemux spped tta 25#qtdemux spped tta
14 26
15inherit eutils gst-plugins10 27inherit eutils gst-plugins10
16 28
17MY_PN="gst-plugins-bad" 29MY_PN="gst-plugins-bad"
21 33
22# added to remove circular deps 34# added to remove circular deps
23# 6/2/2006 - zaheerm 35# 6/2/2006 - zaheerm
24if [ "${PN}" != "${MY_PN}" ]; then 36if [ "${PN}" != "${MY_PN}" ]; then
25RDEPEND="=media-libs/gstreamer-0.10* 37RDEPEND="=media-libs/gstreamer-0.10*
26 =media-libs/gst-plugins-base-0.10* 38 =media-libs/gst-plugins-base-0.10*
27 >=dev-libs/glib-2.6 39 >=dev-libs/glib-2.6
28 >=dev-libs/liboil-0.3" 40 >=dev-libs/liboil-0.3"
29DEPEND="${RDEPEND} 41DEPEND="${RDEPEND}
30 sys-apps/sed 42 sys-apps/sed
31 sys-devel/gettext" 43 sys-devel/gettext"
32fi 44fi
33S=${WORKDIR}/${MY_P} 45S=${WORKDIR}/${MY_P}
34 46
35gst-plugins-bad_src_unpack() { 47gst-plugins-bad_src_unpack() {
36 local makefiles 48# local makefiles
37 49
38 unpack ${A} 50 unpack ${A}
39 51
40 gst-plugins10_find_plugin_dir 52# gst-plugins10_find_plugin_dir
41 cd ${S} 53# cd ${S}
42 54
43 # Remove generation of any other Makefiles except the plugin's Makefile 55 # Remove generation of any other Makefiles except the plugin's Makefile
44 if [[ -d "${S}/sys/${GST_PLUGINS_BUILD_DIR}" ]] ; then 56# if [[ -d "${S}/sys/${GST_PLUGINS_BUILD_DIR}" ]] ; then
45 makefiles="Makefile sys/Makefile sys/${GST_PLUINGS_BUILD_DIR}/Makefile" 57# makefiles="Makefile sys/Makefile sys/${GST_PLUGINS_BUILD_DIR}/Makefile"
46 elif [[ -d "${S}/ext/${GST_PLUGINS_BUILD_DIR}" ]] ; then 58# elif [[ -d "${S}/ext/${GST_PLUGINS_BUILD_DIR}" ]] ; then
47 makefiles="Makefile ext/Makefile ext/${GST_PLUGINS_BUILD_DIR}/Makefile" 59# makefiles="Makefile ext/Makefile ext/${GST_PLUGINS_BUILD_DIR}/Makefile"
48 fi 60# fi
49 61
50 sed -e "s:ac_config_files=.*:ac_config_files='${makefiles}':" \ 62# sed -e "s:ac_config_files=.*:ac_config_files='${makefiles}':" \
51 -i ${S}/configure 63# -i ${S}/configure
52} 64}
53 65
54gst-plugins-bad_src_configure() { 66gst-plugins-bad_src_configure() {
55 local plugin gst_conf 67 local plugin gst_conf
56 68
57 einfo "Configuring to build ${GST_PLUGINS_BUILD} plugin(s) ..." 69 einfo "Configuring to build ${GST_PLUGINS_BUILD} plugin(s) ..."
58 70
59 for plugin in ${GST_PLUGINS_BUILD} ; do 71 for plugin in ${GST_PLUGINS_BUILD} ; do
60 my_plugins="${my_plugins/${plugin}/}" 72 my_gst_plugins_bad="${my_gst_plugins_bad/${plugin}/}"
61 done 73 done
62 74
63 for plugin in ${my_plugins} ; do 75 for plugin in ${my_gst_plugins_bad} ; do
64 gst_conf="${gst_conf} --disable-${plugin}" 76 gst_conf="${gst_conf} --disable-${plugin}"
65 done 77 done
66 78
67 for plugin in ${GST_PLUINGS_BUILD} ; do 79 for plugin in ${GST_PLUGINS_BUILD} ; do
68 gst_conf="${gst_conf} --enable-${plugin}" 80 gst_conf="${gst_conf} --enable-${plugin}"
69 done 81 done
70 82
71 cd ${S} 83 cd ${S}
72 econf ${@} ${gst_conf} || die "configure failed" 84 econf ${@} --with-package-name="Gentoo GStreamer Ebuild" --with-package-origin="http://www.gentoo.org" ${gst_conf} || die "configure failed"
73} 85}
74 86
75gst-plugins-bad_src_compile() { 87gst-plugins-bad_src_compile() {
76 gst-plugins-bad_src_configure ${@} 88 gst-plugins-bad_src_configure ${@}
77 89
81 93
82gst-plugins-bad_src_install() { 94gst-plugins-bad_src_install() {
83 gst-plugins10_find_plugin_dir 95 gst-plugins10_find_plugin_dir
84 einstall || die "install failed" 96 einstall || die "install failed"
85 97
86 dodoc README 98 [[ -e README ]] && dodoc README
87} 99}
88 100
89EXPORT_FUNCTIONS src_unpack src_compile src_install 101EXPORT_FUNCTIONS src_unpack src_compile src_install

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.14

  ViewVC Help
Powered by ViewVC 1.1.20