/[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.27 - (show annotations) (download)
Mon Apr 5 02:03:37 2010 UTC (7 years, 6 months ago) by leio
Branch: MAIN
Changes since 1.26: +4 -17 lines
Remove old plugin entries that are not present in any -bad packages remaining in tree anymore. These are safe to remove, as this list is only used during package compilation, never during unmerge. This reduces the amount of QA warnings from unrecognized configure options and just cleans up the list for maintainability. Update comments accordingly.

1 # Copyright 1999-2009 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.26 2010/04/05 01:57:41 leio 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 for gst-plugins-bad-0.10.18.
13 my_gst_plugins_bad="directsound directdraw osx_video quicktime vcd
14 alsa assrender amrwb apexsink bz2 cdaudio celt cog directfb dirac dts divx
15 dvdnav metadata faac faad fbdev flite gsm jack jp2k kate ladspa lv2 libmms
16 modplug mimic mpeg2enc mplex musepack musicbrainz mythtv nas neon ofa rsvg
17 timidity wildmidi sdl sdltest sndfile soundtouch spc gme swfdec theoradec xvid
18 dvb oss4 wininet acm vdpau schro zbar
19 ivorbis opengl x"
20 # ivorbis gone since 0.10.18 (moved to -base-0.10.27 as part of vorbis plugin)
21 # opengl gone since ???
22 # x gone since ???
23
24 inherit eutils gst-plugins10
25
26 MY_PN="gst-plugins-bad"
27 MY_P=${MY_PN}-${PV}
28
29 SRC_URI="http://gstreamer.freedesktop.org/src/gst-plugins-bad/${MY_P}.tar.bz2"
30 if [ ${PV} == "0.10.14" ]; then
31 SRC_URI="${SRC_URI} http://dev.gentoo.org/~leio/distfiles/gst-plugins-bad-0.10.14-kate-configure-fix.patch.bz2"
32 fi
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 dev-util/pkgconfig
44 sys-devel/gettext"
45 RESTRICT=test
46 fi
47 S=${WORKDIR}/${MY_P}
48
49 gst-plugins-bad_src_unpack() {
50 # local makefiles
51
52 unpack ${A}
53
54 # Link with the syswide installed gst-libs if needed
55 gst-plugins10_find_plugin_dir
56 sed -e "s:\$(top_builddir)/gst-libs/gst/interfaces/libgstphotography:${ROOT}/usr/$(get_libdir)/libgstphotography:" \
57 -e "s:\$(top_builddir)/gst-libs/gst/signalprocessor/libgstsignalprocessor:${ROOT}/usr/$(get_libdir)/libgstsignalprocessor:" \
58 -e "s:\$(top_builddir)/gst-libs/gst/video/libgstbasevideo:${ROOT}/usr/$(get_libdir)/libgstbasevideo:" \
59 -i Makefile.in
60
61 # 0.10.14 configure errors when --disable-kate is passed:
62 # configure: error: conditional "USE_TIGER" was never defined.
63 # Fix it - this has to stay until any 0.10.14 split or main is in tree:
64 if [ ${PV} == "0.10.14" ]; then
65 cd ${S}
66 epatch "${WORKDIR}/gst-plugins-bad-0.10.14-kate-configure-fix.patch"
67 fi
68
69 # Remove generation of any other Makefiles except the plugin's Makefile
70 # if [[ -d "${S}/sys/${GST_PLUGINS_BUILD_DIR}" ]] ; then
71 # makefiles="Makefile sys/Makefile sys/${GST_PLUGINS_BUILD_DIR}/Makefile"
72 # elif [[ -d "${S}/ext/${GST_PLUGINS_BUILD_DIR}" ]] ; then
73 # makefiles="Makefile ext/Makefile ext/${GST_PLUGINS_BUILD_DIR}/Makefile"
74 # fi
75
76 # sed -e "s:ac_config_files=.*:ac_config_files='${makefiles}':" \
77 # -i ${S}/configure
78 }
79
80 gst-plugins-bad_src_configure() {
81 local plugin gst_conf
82
83 einfo "Configuring to build ${GST_PLUGINS_BUILD} plugin(s) ..."
84
85 for plugin in ${GST_PLUGINS_BUILD} ; do
86 my_gst_plugins_bad="${my_gst_plugins_bad/${plugin}/}"
87 done
88
89 for plugin in ${my_gst_plugins_bad} ; do
90 gst_conf="${gst_conf} --disable-${plugin}"
91 done
92
93 for plugin in ${GST_PLUGINS_BUILD} ; do
94 gst_conf="${gst_conf} --enable-${plugin}"
95 done
96
97 cd ${S}
98 econf ${@} --with-package-name="Gentoo GStreamer Ebuild" --with-package-origin="http://www.gentoo.org" ${gst_conf} || die "configure failed"
99 }
100
101 gst-plugins-bad_src_compile() {
102 gst-plugins-bad_src_configure ${@}
103
104 gst-plugins10_find_plugin_dir
105 emake || die "compile failure"
106 }
107
108 gst-plugins-bad_src_install() {
109 gst-plugins10_find_plugin_dir
110 einstall || die "install failed"
111
112 [[ -e README ]] && dodoc README
113 }
114
115 EXPORT_FUNCTIONS src_unpack src_compile src_install

  ViewVC Help
Powered by ViewVC 1.1.20