/[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.14 Revision 1.35
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.14 2009/03/30 04:24:15 tester Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/gst-plugins-bad.eclass,v 1.35 2011/03/20 09:49:50 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
12# This list is current to gst-plugins-bad-0.10.4 except for: 12inherit eutils versionator gst-plugins10
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
19my_gst_plugins_bad="opengl vcd x alsa amrwb bz2 cdaudio directfb dts divx faac
20faad gsm gst_v4l2 ivorbis jack ladspa libmms mpeg2enc musepack musicbrainz
21mythtv nas neon timidity wildmidi sdl sdltest sndfile soundtouch spc swfdec
22theoradec x264 xvid dvb wavpack quicktime dc1394 metadata fbdev soup dirac mplex
23ofa oss4 apexsink celt dvdnav jp2k twolame mimic modplug"
24 13
25#qtdemux spped tta 14# This list is current for gst-plugins-bad-0.10.18.
15my_gst_plugins_bad="directsound directdraw osx_video quicktime vcd
16alsa assrender amrwb apexsink bz2 cdaudio celt cog dc1394 directfb dirac dts divx
17metadata faac faad fbdev flite gsm jp2k kate ladspa lv2 libmms
18modplug mimic mpeg2enc mplex musepack musicbrainz mythtv nas neon ofa rsvg
19timidity wildmidi sdl sdltest sndfile soundtouch spc gme swfdec theoradec xvid
20dvb wininet acm vdpau schro zbar"
26 21
27inherit eutils gst-plugins10 22# When adding conditionals like below, be careful about having leading spaces
23
24# Changes in 0.10.21:
25# jack moved to -good
26if ! version_is_at_least "0.10.21"; then
27 my_gst_plugins_bad+=" jack"
28fi
29
30# Changes in 0.10.19:
31# dvdnav configure option changed from --enable-dvdnav to --enable-resindvd
32if version_is_at_least "0.10.19"; then
33 my_gst_plugins_bad+=" resindvd vp8"
34fi
35
36# dvdnav configure option changed from --enable-dvdnav to --enable-resindvd
37# oss4 moved to -good
38if ! version_is_at_least "0.10.19"; then
39 my_gst_plugins_bad+=" dvdnav oss4"
40fi
41
42# Changes in 0.10.18:
43# ivorbis gone (moved to -base-0.10.27 as part of vorbis plugin)
44if ! version_is_at_least "0.10.18"; then
45 my_gst_plugins_bad+=" ivorbis"
46fi
28 47
29MY_PN="gst-plugins-bad" 48MY_PN="gst-plugins-bad"
30MY_P=${MY_PN}-${PV} 49MY_P=${MY_PN}-${PV}
31 50
32SRC_URI="http://gstreamer.freedesktop.org/src/gst-plugins-bad/${MY_P}.tar.bz2" 51SRC_URI="http://gstreamer.freedesktop.org/src/gst-plugins-bad/${MY_P}.tar.bz2"
52if [ ${PV} == "0.10.14" ]; then
53 SRC_URI="${SRC_URI} http://dev.gentoo.org/~leio/distfiles/gst-plugins-bad-0.10.14-kate-configure-fix.patch.bz2"
54fi
33 55
34# added to remove circular deps 56# added to remove circular deps
35# 6/2/2006 - zaheerm 57# 6/2/2006 - zaheerm
36if [ "${PN}" != "${MY_PN}" ]; then 58if [ "${PN}" != "${MY_PN}" ]; then
37RDEPEND="=media-libs/gstreamer-0.10* 59RDEPEND="=media-libs/gstreamer-0.10*
38 =media-libs/gst-plugins-base-0.10* 60 =media-libs/gst-plugins-base-0.10*
39 >=dev-libs/glib-2.6 61 >=dev-libs/glib-2.6
40 >=dev-libs/liboil-0.3" 62 >=dev-libs/liboil-0.3.8"
41DEPEND="${RDEPEND} 63DEPEND="${RDEPEND}
42 sys-apps/sed 64 sys-apps/sed
65 dev-util/pkgconfig
43 sys-devel/gettext" 66 sys-devel/gettext"
67RESTRICT=test
44fi 68fi
45S=${WORKDIR}/${MY_P} 69S=${WORKDIR}/${MY_P}
46 70
47gst-plugins-bad_src_unpack() { 71gst-plugins-bad_src_unpack() {
48# local makefiles 72# local makefiles
49 73
50 unpack ${A} 74 unpack ${A}
51 75
76 # Link with the syswide installed gst-libs if needed
52# gst-plugins10_find_plugin_dir 77 gst-plugins10_find_plugin_dir
78 sed -e "s:\$(top_builddir)/gst-libs/gst/interfaces/libgstphotography:${ROOT}/usr/$(get_libdir)/libgstphotography:" \
79 -e "s:\$(top_builddir)/gst-libs/gst/signalprocessor/libgstsignalprocessor:${ROOT}/usr/$(get_libdir)/libgstsignalprocessor:" \
80 -e "s:\$(top_builddir)/gst-libs/gst/video/libgstbasevideo:${ROOT}/usr/$(get_libdir)/libgstbasevideo:" \
81 -i Makefile.in
82
83 # 0.10.14 configure errors when --disable-kate is passed:
84 # configure: error: conditional "USE_TIGER" was never defined.
85 # Fix it - this has to stay until any 0.10.14 split or main is in tree:
86 if [ ${PV} == "0.10.14" ]; then
53# cd ${S} 87 cd ${S}
88 epatch "${WORKDIR}/gst-plugins-bad-0.10.14-kate-configure-fix.patch"
89 fi
54 90
55 # Remove generation of any other Makefiles except the plugin's Makefile 91 # Remove generation of any other Makefiles except the plugin's Makefile
56# if [[ -d "${S}/sys/${GST_PLUGINS_BUILD_DIR}" ]] ; then 92# if [[ -d "${S}/sys/${GST_PLUGINS_BUILD_DIR}" ]] ; then
57# makefiles="Makefile sys/Makefile sys/${GST_PLUGINS_BUILD_DIR}/Makefile" 93# makefiles="Makefile sys/Makefile sys/${GST_PLUGINS_BUILD_DIR}/Makefile"
58# elif [[ -d "${S}/ext/${GST_PLUGINS_BUILD_DIR}" ]] ; then 94# elif [[ -d "${S}/ext/${GST_PLUGINS_BUILD_DIR}" ]] ; then
65 101
66gst-plugins-bad_src_configure() { 102gst-plugins-bad_src_configure() {
67 local plugin gst_conf 103 local plugin gst_conf
68 104
69 einfo "Configuring to build ${GST_PLUGINS_BUILD} plugin(s) ..." 105 einfo "Configuring to build ${GST_PLUGINS_BUILD} plugin(s) ..."
70
71 for plugin in ${GST_PLUGINS_BUILD} ; do
72 my_gst_plugins_bad="${my_gst_plugins_bad/${plugin}/}"
73 done
74 106
75 for plugin in ${my_gst_plugins_bad} ; do 107 for plugin in ${my_gst_plugins_bad} ; do
76 gst_conf="${gst_conf} --disable-${plugin}" 108 gst_conf="${gst_conf} --disable-${plugin}"
77 done 109 done
78 110

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.35

  ViewVC Help
Powered by ViewVC 1.1.20