/[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.20 - (show annotations) (download)
Mon Sep 7 04:58:22 2009 UTC (8 years, 5 months ago) by tester
Branch: MAIN
Changes since 1.19: +11 -4 lines
Add new plugins in gst-plugins-bad 0.10.14 and gst-plugins-ugly 0.10.12

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.19 2009/08/05 23:27:59 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 my_gst_plugins_bad="opengl 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
23 mplex ofa oss4 apexsink celt dvdnav jp2k twolame assrender mimic modplug vcd
24 schro lv2 gme vdpau"
25
26 #qtdemux spped tta
27
28 inherit eutils gst-plugins10
29
30 MY_PN="gst-plugins-bad"
31 MY_P=${MY_PN}-${PV}
32
33 SRC_URI="http://gstreamer.freedesktop.org/src/gst-plugins-bad/${MY_P}.tar.bz2"
34
35 # added to remove circular deps
36 # 6/2/2006 - zaheerm
37 if [ "${PN}" != "${MY_PN}" ]; then
38 RDEPEND="=media-libs/gstreamer-0.10*
39 =media-libs/gst-plugins-base-0.10*
40 >=dev-libs/glib-2.6
41 >=dev-libs/liboil-0.3"
42 DEPEND="${RDEPEND}
43 sys-apps/sed
44 dev-util/pkgconfig
45 sys-devel/gettext"
46 RESTRICT=test
47 fi
48 S=${WORKDIR}/${MY_P}
49
50 gst-plugins-bad_src_unpack() {
51 # local makefiles
52
53 unpack ${A}
54
55 # Link with the syswide installed gst-libs if needed
56 gst-plugins10_find_plugin_dir
57 sed -e "s:\$(top_builddir)/gst-libs/gst/interfaces/libgstphotography:${ROOT}/usr/$(get_libdir)/libgstphotography:" \
58 -e "s:\$(top_builddir)/gst-libs/gst/signalprocessor/libgstsignalprocessor:${ROOT}/usr/$(get_libdir)/libgstsignalprocessor:" \
59 -e "s:\$(top_builddir)/gst-libs/gst/video/libgstbasevideo:${ROOT}/usr/$(get_libdir)/libgstbasevideo:" \
60 -i Makefile.in
61
62 # cd ${S}
63
64 # Remove generation of any other Makefiles except the plugin's Makefile
65 # if [[ -d "${S}/sys/${GST_PLUGINS_BUILD_DIR}" ]] ; then
66 # makefiles="Makefile sys/Makefile sys/${GST_PLUGINS_BUILD_DIR}/Makefile"
67 # elif [[ -d "${S}/ext/${GST_PLUGINS_BUILD_DIR}" ]] ; then
68 # makefiles="Makefile ext/Makefile ext/${GST_PLUGINS_BUILD_DIR}/Makefile"
69 # fi
70
71 # sed -e "s:ac_config_files=.*:ac_config_files='${makefiles}':" \
72 # -i ${S}/configure
73 }
74
75 gst-plugins-bad_src_configure() {
76 local plugin gst_conf
77
78 einfo "Configuring to build ${GST_PLUGINS_BUILD} plugin(s) ..."
79
80 for plugin in ${GST_PLUGINS_BUILD} ; do
81 my_gst_plugins_bad="${my_gst_plugins_bad/${plugin}/}"
82 done
83
84 for plugin in ${my_gst_plugins_bad} ; do
85 gst_conf="${gst_conf} --disable-${plugin}"
86 done
87
88 for plugin in ${GST_PLUGINS_BUILD} ; do
89 gst_conf="${gst_conf} --enable-${plugin}"
90 done
91
92 cd ${S}
93 econf ${@} --with-package-name="Gentoo GStreamer Ebuild" --with-package-origin="http://www.gentoo.org" ${gst_conf} || die "configure failed"
94 }
95
96 gst-plugins-bad_src_compile() {
97 gst-plugins-bad_src_configure ${@}
98
99 gst-plugins10_find_plugin_dir
100 emake || die "compile failure"
101 }
102
103 gst-plugins-bad_src_install() {
104 gst-plugins10_find_plugin_dir
105 einstall || die "install failed"
106
107 [[ -e README ]] && dodoc README
108 }
109
110 EXPORT_FUNCTIONS src_unpack src_compile src_install

  ViewVC Help
Powered by ViewVC 1.1.20