/[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.22 - (hide annotations) (download)
Mon Nov 9 01:26:03 2009 UTC (7 years, 10 months ago) by leio
Branch: MAIN
Changes since 1.21: +10 -8 lines
Add missing kate plugin to the list, so that it will not be built unintentionally when media-libs/libkate is present. Alphabetize the plugin listing.

1 leio 1.22 # Copyright 1999-2009 Gentoo Foundation
2 compnerd 1.1 # Distributed under the terms of the GNU General Public License v2
3 leio 1.22 # $Header: /var/cvsroot/gentoo-x86/eclass/gst-plugins-bad.eclass,v 1.21 2009/10/11 11:46:01 maekke 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 leio 1.22 # 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     kate 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 lack 1.8
28 compnerd 1.1 #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 zaheerm 1.2 # added to remove circular deps
38     # 6/2/2006 - zaheerm
39     if [ "${PN}" != "${MY_PN}" ]; then
40     RDEPEND="=media-libs/gstreamer-0.10*
41 swegener 1.7 =media-libs/gst-plugins-base-0.10*
42     >=dev-libs/glib-2.6
43     >=dev-libs/liboil-0.3"
44 compnerd 1.1 DEPEND="${RDEPEND}
45     sys-apps/sed
46 tester 1.15 dev-util/pkgconfig
47 compnerd 1.1 sys-devel/gettext"
48 tester 1.17 RESTRICT=test
49 zaheerm 1.2 fi
50 compnerd 1.1 S=${WORKDIR}/${MY_P}
51    
52     gst-plugins-bad_src_unpack() {
53 tester 1.14 # local makefiles
54 compnerd 1.1
55     unpack ${A}
56    
57 tester 1.20 # 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 maekke 1.21
64 tester 1.14 # cd ${S}
65 compnerd 1.1
66     # Remove generation of any other Makefiles except the plugin's Makefile
67 tester 1.14 # 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 compnerd 1.1
73 tester 1.14 # sed -e "s:ac_config_files=.*:ac_config_files='${makefiles}':" \
74     # -i ${S}/configure
75 compnerd 1.1 }
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 zaheerm 1.3 my_gst_plugins_bad="${my_gst_plugins_bad/${plugin}/}"
84 compnerd 1.1 done
85    
86 zaheerm 1.3 for plugin in ${my_gst_plugins_bad} ; do
87 compnerd 1.1 gst_conf="${gst_conf} --disable-${plugin}"
88     done
89    
90 foser 1.4 for plugin in ${GST_PLUGINS_BUILD} ; do
91 compnerd 1.1 gst_conf="${gst_conf} --enable-${plugin}"
92     done
93    
94     cd ${S}
95 zaheerm 1.6 econf ${@} --with-package-name="Gentoo GStreamer Ebuild" --with-package-origin="http://www.gentoo.org" ${gst_conf} || die "configure failed"
96 compnerd 1.1 }
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 drac 1.10 [[ -e README ]] && dodoc README
110 compnerd 1.1 }
111    
112     EXPORT_FUNCTIONS src_unpack src_compile src_install

  ViewVC Help
Powered by ViewVC 1.1.20