/[gentoo-x86]/eclass/gst-plugins-bad.eclass
Gentoo

Diff of /eclass/gst-plugins-bad.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.5 Revision 1.23
1# Copyright 1999-2006 Gentoo Foundation 1# Copyright 1999-2009 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 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.5 2006/05/10 11:50:14 zaheerm Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/gst-plugins-bad.eclass,v 1.23 2009/11/09 01:31:16 leio Exp $
4 4
5# 5#
6# Original Author: Saleem Abdulrasool <compnerd@gentoo.org> 6# Original Author: Saleem Abdulrasool <compnerd@gentoo.org>
7# Based on the work of foser <foser@gentoo.org> and zaheerm <zaheerm@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 8# Purpose: This elcass is designed to help package external gst-plugins per
9# plugin rather than in a single package. 9# plugin rather than in a single package.
10# 10#
11 11
12my_gst_plugins_bad="amrwb bz2 directfb dts divx faac faad gsm gst_v4l2 ivorbis libmms musepack musicbrainz neon opengl sdl sdltest soundtouch swfdec theoradec wavpack xvid" 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.
21my_gst_plugins_bad="alsa amrwb apexsink assrender bz2 cdaudio celt dc1394 dirac
22directfb divx dts dvb dvdnav faac faad fbdev gme gsm gst_v4l2 ivorbis jack jp2k
23ladspa libmms lv2 metadata mimic modplug mpeg2enc mplex musepack
24musicbrainz mythtv nas neon ofa opengl oss4 quicktime schro sdl sdltest sndfile
25soundtouch soup spc swfdec theoradec timidity twolame vcd vdpau wavpack wildmidi
26x x264 xvid"
27
13#qtdemux spped tta 28#qtdemux spped tta
14 29
15inherit eutils gst-plugins10 30inherit eutils gst-plugins10
16 31
17MY_PN="gst-plugins-bad" 32MY_PN="gst-plugins-bad"
21 36
22# added to remove circular deps 37# added to remove circular deps
23# 6/2/2006 - zaheerm 38# 6/2/2006 - zaheerm
24if [ "${PN}" != "${MY_PN}" ]; then 39if [ "${PN}" != "${MY_PN}" ]; then
25RDEPEND="=media-libs/gstreamer-0.10* 40RDEPEND="=media-libs/gstreamer-0.10*
26 =media-libs/gst-plugins-base-0.10* 41 =media-libs/gst-plugins-base-0.10*
27 >=dev-libs/glib-2.6 42 >=dev-libs/glib-2.6
28 >=dev-libs/liboil-0.3" 43 >=dev-libs/liboil-0.3"
29DEPEND="${RDEPEND} 44DEPEND="${RDEPEND}
30 sys-apps/sed 45 sys-apps/sed
46 dev-util/pkgconfig
31 sys-devel/gettext" 47 sys-devel/gettext"
48RESTRICT=test
32fi 49fi
33S=${WORKDIR}/${MY_P} 50S=${WORKDIR}/${MY_P}
34 51
35gst-plugins-bad_src_unpack() { 52gst-plugins-bad_src_unpack() {
36 local makefiles 53# local makefiles
37 54
38 unpack ${A} 55 unpack ${A}
39 56
57 # Link with the syswide installed gst-libs if needed
40 gst-plugins10_find_plugin_dir 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
41 cd ${S} 64# cd ${S}
42 65
43 # Remove generation of any other Makefiles except the plugin's Makefile 66 # Remove generation of any other Makefiles except the plugin's Makefile
44 if [[ -d "${S}/sys/${GST_PLUGINS_BUILD_DIR}" ]] ; then 67# if [[ -d "${S}/sys/${GST_PLUGINS_BUILD_DIR}" ]] ; then
45 makefiles="Makefile sys/Makefile sys/${GST_PLUGINS_BUILD_DIR}/Makefile" 68# makefiles="Makefile sys/Makefile sys/${GST_PLUGINS_BUILD_DIR}/Makefile"
46 elif [[ -d "${S}/ext/${GST_PLUGINS_BUILD_DIR}" ]] ; then 69# elif [[ -d "${S}/ext/${GST_PLUGINS_BUILD_DIR}" ]] ; then
47 makefiles="Makefile ext/Makefile ext/${GST_PLUGINS_BUILD_DIR}/Makefile" 70# makefiles="Makefile ext/Makefile ext/${GST_PLUGINS_BUILD_DIR}/Makefile"
48 fi 71# fi
49 72
50 sed -e "s:ac_config_files=.*:ac_config_files='${makefiles}':" \ 73# sed -e "s:ac_config_files=.*:ac_config_files='${makefiles}':" \
51 -i ${S}/configure 74# -i ${S}/configure
52} 75}
53 76
54gst-plugins-bad_src_configure() { 77gst-plugins-bad_src_configure() {
55 local plugin gst_conf 78 local plugin gst_conf
56 79
67 for plugin in ${GST_PLUGINS_BUILD} ; do 90 for plugin in ${GST_PLUGINS_BUILD} ; do
68 gst_conf="${gst_conf} --enable-${plugin}" 91 gst_conf="${gst_conf} --enable-${plugin}"
69 done 92 done
70 93
71 cd ${S} 94 cd ${S}
72 econf ${@} ${gst_conf} || die "configure failed" 95 econf ${@} --with-package-name="Gentoo GStreamer Ebuild" --with-package-origin="http://www.gentoo.org" ${gst_conf} || die "configure failed"
73} 96}
74 97
75gst-plugins-bad_src_compile() { 98gst-plugins-bad_src_compile() {
76 gst-plugins-bad_src_configure ${@} 99 gst-plugins-bad_src_configure ${@}
77 100
81 104
82gst-plugins-bad_src_install() { 105gst-plugins-bad_src_install() {
83 gst-plugins10_find_plugin_dir 106 gst-plugins10_find_plugin_dir
84 einstall || die "install failed" 107 einstall || die "install failed"
85 108
86 dodoc README 109 [[ -e README ]] && dodoc README
87} 110}
88 111
89EXPORT_FUNCTIONS src_unpack src_compile src_install 112EXPORT_FUNCTIONS src_unpack src_compile src_install

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.23

  ViewVC Help
Powered by ViewVC 1.1.20