/[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.19 - (hide annotations) (download)
Wed Aug 5 23:27:59 2009 UTC (8 years, 2 months ago) by leio
Branch: MAIN
Changes since 1.18: +2 -2 lines
Add assrender to the external plugin list, to avoid automagic enabling of it in the presence of libass by all gst-plugins-bad packages and the ensuing potential file collissions from all of them trying to install the assrender plugin

1 compnerd 1.1 # Copyright 1999-2006 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 leio 1.19 # $Header: /var/cvsroot/gentoo-x86/eclass/gst-plugins-bad.eclass,v 1.18 2009/07/25 22:43:54 ssuominen Exp $
4 compnerd 1.1
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 drac 1.9 # 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 lack 1.8 # But it must stay in this list until all <gst-plugins-bad-0.10.4
15     # are removed
16 drac 1.9 # 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 tester 1.16 my_gst_plugins_bad="opengl x alsa amrwb bz2 cdaudio directfb dts divx faac
20 drac 1.9 faad gsm gst_v4l2 ivorbis jack ladspa libmms mpeg2enc musepack musicbrainz
21     mythtv nas neon timidity wildmidi sdl sdltest sndfile soundtouch spc swfdec
22 drac 1.12 theoradec x264 xvid dvb wavpack quicktime dc1394 metadata fbdev soup dirac mplex
23 leio 1.19 ofa oss4 apexsink celt dvdnav jp2k twolame assrender mimic modplug vcd"
24 lack 1.8
25 compnerd 1.1 #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 zaheerm 1.2 # added to remove circular deps
35     # 6/2/2006 - zaheerm
36     if [ "${PN}" != "${MY_PN}" ]; then
37     RDEPEND="=media-libs/gstreamer-0.10*
38 swegener 1.7 =media-libs/gst-plugins-base-0.10*
39     >=dev-libs/glib-2.6
40     >=dev-libs/liboil-0.3"
41 compnerd 1.1 DEPEND="${RDEPEND}
42     sys-apps/sed
43 tester 1.15 dev-util/pkgconfig
44 compnerd 1.1 sys-devel/gettext"
45 tester 1.17 RESTRICT=test
46 zaheerm 1.2 fi
47 compnerd 1.1 S=${WORKDIR}/${MY_P}
48    
49     gst-plugins-bad_src_unpack() {
50 tester 1.14 # local makefiles
51 compnerd 1.1
52     unpack ${A}
53    
54 tester 1.14 # gst-plugins10_find_plugin_dir
55     # cd ${S}
56 compnerd 1.1
57     # Remove generation of any other Makefiles except the plugin's Makefile
58 tester 1.14 # if [[ -d "${S}/sys/${GST_PLUGINS_BUILD_DIR}" ]] ; then
59     # makefiles="Makefile sys/Makefile sys/${GST_PLUGINS_BUILD_DIR}/Makefile"
60     # elif [[ -d "${S}/ext/${GST_PLUGINS_BUILD_DIR}" ]] ; then
61     # makefiles="Makefile ext/Makefile ext/${GST_PLUGINS_BUILD_DIR}/Makefile"
62     # fi
63 compnerd 1.1
64 tester 1.14 # sed -e "s:ac_config_files=.*:ac_config_files='${makefiles}':" \
65     # -i ${S}/configure
66 compnerd 1.1 }
67    
68     gst-plugins-bad_src_configure() {
69     local plugin gst_conf
70    
71     einfo "Configuring to build ${GST_PLUGINS_BUILD} plugin(s) ..."
72    
73     for plugin in ${GST_PLUGINS_BUILD} ; do
74 zaheerm 1.3 my_gst_plugins_bad="${my_gst_plugins_bad/${plugin}/}"
75 compnerd 1.1 done
76    
77 zaheerm 1.3 for plugin in ${my_gst_plugins_bad} ; do
78 compnerd 1.1 gst_conf="${gst_conf} --disable-${plugin}"
79     done
80    
81 foser 1.4 for plugin in ${GST_PLUGINS_BUILD} ; do
82 compnerd 1.1 gst_conf="${gst_conf} --enable-${plugin}"
83     done
84    
85     cd ${S}
86 zaheerm 1.6 econf ${@} --with-package-name="Gentoo GStreamer Ebuild" --with-package-origin="http://www.gentoo.org" ${gst_conf} || die "configure failed"
87 compnerd 1.1 }
88    
89     gst-plugins-bad_src_compile() {
90     gst-plugins-bad_src_configure ${@}
91    
92     gst-plugins10_find_plugin_dir
93     emake || die "compile failure"
94     }
95    
96     gst-plugins-bad_src_install() {
97     gst-plugins10_find_plugin_dir
98     einstall || die "install failed"
99    
100 drac 1.10 [[ -e README ]] && dodoc README
101 compnerd 1.1 }
102    
103     EXPORT_FUNCTIONS src_unpack src_compile src_install

  ViewVC Help
Powered by ViewVC 1.1.20