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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.14 - (show annotations) (download)
Mon Mar 30 04:24:15 2009 UTC (8 years, 6 months ago) by tester
Branch: MAIN
Changes since 1.13: +12 -12 lines
Add a few new plugins, generate all makefiles, shave wrappers need to be built

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

  ViewVC Help
Powered by ViewVC 1.1.20