/[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.23 - (show annotations) (download)
Mon Nov 9 01:31:16 2009 UTC (8 years, 8 months ago) by leio
Branch: MAIN
Changes since 1.22: +2 -2 lines
Temporarily remove kate from the list again, as it is causing build errors due to bad configure.ac

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.22 2009/11/09 01:26:03 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 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 # This list is current for gst-plugins-bad-0.10.14 and is only getting entries
20 # added to it, and never removed for longer backwards compatibility.
21 my_gst_plugins_bad="alsa amrwb apexsink assrender bz2 cdaudio celt dc1394 dirac
22 directfb divx dts dvb dvdnav faac faad fbdev gme gsm gst_v4l2 ivorbis jack jp2k
23 ladspa libmms lv2 metadata mimic modplug mpeg2enc mplex musepack
24 musicbrainz mythtv nas neon ofa opengl oss4 quicktime schro sdl sdltest sndfile
25 soundtouch soup spc swfdec theoradec timidity twolame vcd vdpau wavpack wildmidi
26 x x264 xvid"
27
28 #qtdemux spped tta
29
30 inherit eutils gst-plugins10
31
32 MY_PN="gst-plugins-bad"
33 MY_P=${MY_PN}-${PV}
34
35 SRC_URI="http://gstreamer.freedesktop.org/src/gst-plugins-bad/${MY_P}.tar.bz2"
36
37 # added to remove circular deps
38 # 6/2/2006 - zaheerm
39 if [ "${PN}" != "${MY_PN}" ]; then
40 RDEPEND="=media-libs/gstreamer-0.10*
41 =media-libs/gst-plugins-base-0.10*
42 >=dev-libs/glib-2.6
43 >=dev-libs/liboil-0.3"
44 DEPEND="${RDEPEND}
45 sys-apps/sed
46 dev-util/pkgconfig
47 sys-devel/gettext"
48 RESTRICT=test
49 fi
50 S=${WORKDIR}/${MY_P}
51
52 gst-plugins-bad_src_unpack() {
53 # local makefiles
54
55 unpack ${A}
56
57 # Link with the syswide installed gst-libs if needed
58 gst-plugins10_find_plugin_dir
59 sed -e "s:\$(top_builddir)/gst-libs/gst/interfaces/libgstphotography:${ROOT}/usr/$(get_libdir)/libgstphotography:" \
60 -e "s:\$(top_builddir)/gst-libs/gst/signalprocessor/libgstsignalprocessor:${ROOT}/usr/$(get_libdir)/libgstsignalprocessor:" \
61 -e "s:\$(top_builddir)/gst-libs/gst/video/libgstbasevideo:${ROOT}/usr/$(get_libdir)/libgstbasevideo:" \
62 -i Makefile.in
63
64 # cd ${S}
65
66 # Remove generation of any other Makefiles except the plugin's Makefile
67 # if [[ -d "${S}/sys/${GST_PLUGINS_BUILD_DIR}" ]] ; then
68 # makefiles="Makefile sys/Makefile sys/${GST_PLUGINS_BUILD_DIR}/Makefile"
69 # elif [[ -d "${S}/ext/${GST_PLUGINS_BUILD_DIR}" ]] ; then
70 # makefiles="Makefile ext/Makefile ext/${GST_PLUGINS_BUILD_DIR}/Makefile"
71 # fi
72
73 # sed -e "s:ac_config_files=.*:ac_config_files='${makefiles}':" \
74 # -i ${S}/configure
75 }
76
77 gst-plugins-bad_src_configure() {
78 local plugin gst_conf
79
80 einfo "Configuring to build ${GST_PLUGINS_BUILD} plugin(s) ..."
81
82 for plugin in ${GST_PLUGINS_BUILD} ; do
83 my_gst_plugins_bad="${my_gst_plugins_bad/${plugin}/}"
84 done
85
86 for plugin in ${my_gst_plugins_bad} ; do
87 gst_conf="${gst_conf} --disable-${plugin}"
88 done
89
90 for plugin in ${GST_PLUGINS_BUILD} ; do
91 gst_conf="${gst_conf} --enable-${plugin}"
92 done
93
94 cd ${S}
95 econf ${@} --with-package-name="Gentoo GStreamer Ebuild" --with-package-origin="http://www.gentoo.org" ${gst_conf} || die "configure failed"
96 }
97
98 gst-plugins-bad_src_compile() {
99 gst-plugins-bad_src_configure ${@}
100
101 gst-plugins10_find_plugin_dir
102 emake || die "compile failure"
103 }
104
105 gst-plugins-bad_src_install() {
106 gst-plugins10_find_plugin_dir
107 einstall || die "install failed"
108
109 [[ -e README ]] && dodoc README
110 }
111
112 EXPORT_FUNCTIONS src_unpack src_compile src_install

  ViewVC Help
Powered by ViewVC 1.1.20