/[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.41
1# Copyright 1999-2006 Gentoo Foundation 1# Copyright 1999-2011 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.41 2011/12/27 17:55:12 fauli 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.21.
15my_gst_plugins_bad="directsound directdraw osx_video quicktime vcd
16assrender amrwb apexsink bz2 cdaudio celt cog dc1394 directfb dirac dts divx
17faac 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 xvid
20dvb wininet acm vdpau schro zbar resindvd vp8"
26 21
27inherit eutils gst-plugins10 22# When adding conditionals like below, be careful about having leading spaces
23
24# Changes in 0.10.22:
25# New curlsink element in a new curl plugin
26# New Blackmagic Decklink source and sink
27# New Linear Systems SDI plugin
28if version_is_at_least "0.10.22"; then
29 my_gst_plugins_bad+=" curl decklink linsys"
30fi
31
32# Unused ancient theora decoder, better one in -base long ago
33if ! version_is_at_least "0.10.22"; then
34 my_gst_plugins_bad+=" theoradec"
35fi
36
37# Changes in 0.10.21:
38# New opencv and apple_media plugins
39if version_is_at_least "0.10.21"; then
40 my_gst_plugins_bad+=" opencv apple_media"
41fi
42
43# exif for a specific jifmux tests purpose only.
44# Made automagic in 0.10.22, which is fine as a non-installed test
45if [ ${PV} == "0.10.21" ]; then
46 my_gst_plugins_bad+=" exif"
47fi
48
49# jack moved to -good, metadata removed (functionality in base classes)
50# alsaspdif gone (gst-plugins-alsa from -base can do spdif on its own long ago)
51if ! version_is_at_least "0.10.21"; then
52 my_gst_plugins_bad+=" jack metadata alsa"
53fi
54
55# Changes in 0.10.20:
56# New split plugins rtmp, gsettings and shm
57if version_is_at_least "0.10.20"; then
58 my_gst_plugins_bad+=" rtmp gsettings shm"
59fi
28 60
29MY_PN="gst-plugins-bad" 61MY_PN="gst-plugins-bad"
30MY_P=${MY_PN}-${PV} 62MY_P=${MY_PN}-${PV}
31 63
32SRC_URI="http://gstreamer.freedesktop.org/src/gst-plugins-bad/${MY_P}.tar.bz2" 64SRC_URI="http://gstreamer.freedesktop.org/src/gst-plugins-bad/${MY_P}.tar.bz2"
34# added to remove circular deps 66# added to remove circular deps
35# 6/2/2006 - zaheerm 67# 6/2/2006 - zaheerm
36if [ "${PN}" != "${MY_PN}" ]; then 68if [ "${PN}" != "${MY_PN}" ]; then
37RDEPEND="=media-libs/gstreamer-0.10* 69RDEPEND="=media-libs/gstreamer-0.10*
38 =media-libs/gst-plugins-base-0.10* 70 =media-libs/gst-plugins-base-0.10*
39 >=dev-libs/glib-2.6 71 >=dev-libs/glib-2.6"
40 >=dev-libs/liboil-0.3"
41DEPEND="${RDEPEND} 72DEPEND="${RDEPEND}
42 sys-apps/sed 73 sys-apps/sed
74 dev-util/pkgconfig
43 sys-devel/gettext" 75 sys-devel/gettext"
76
77# -bad-0.10.20 uses orc optionally instead of liboil unconditionally.
78# While <0.10.20 configure always check for liboil, it is used only by non-split
79# plugins in gst/ (legacyresample and mpegdemux), so we only builddep for all
80# old packages, and have a RDEPEND in old versions of media-libs/gst-plugins-bad
81if ! version_is_at_least "0.10.20"; then
82DEPEND="${DEPEND} >=dev-libs/liboil-0.3.8"
83fi
84
85RESTRICT=test
44fi 86fi
45S=${WORKDIR}/${MY_P} 87S=${WORKDIR}/${MY_P}
46 88
47gst-plugins-bad_src_unpack() { 89gst-plugins-bad_src_unpack() {
48# local makefiles 90# local makefiles
49 91
50 unpack ${A} 92 unpack ${A}
51 93
94 # Link with the syswide installed gst-libs if needed
52# gst-plugins10_find_plugin_dir 95 gst-plugins10_find_plugin_dir
53# cd ${S} 96 sed -e "s:\$(top_builddir)/gst-libs/gst/interfaces/libgstphotography:${ROOT}/usr/$(get_libdir)/libgstphotography:" \
97 -e "s:\$(top_builddir)/gst-libs/gst/signalprocessor/libgstsignalprocessor:${ROOT}/usr/$(get_libdir)/libgstsignalprocessor:" \
98 -e "s:\$(top_builddir)/gst-libs/gst/video/libgstbasevideo:${ROOT}/usr/$(get_libdir)/libgstbasevideo:" \
99 -e "s:\$(top_builddir)/gst-libs/gst/basecamerabinsrc/libgstbasecamerabinsrc:${ROOT}/usr/$(get_libdir)/libgstbasecamerabinsrc:" \
100 -i Makefile.in
54 101
55 # Remove generation of any other Makefiles except the plugin's Makefile 102 # Remove generation of any other Makefiles except the plugin's Makefile
56# if [[ -d "${S}/sys/${GST_PLUGINS_BUILD_DIR}" ]] ; then 103# if [[ -d "${S}/sys/${GST_PLUGINS_BUILD_DIR}" ]] ; then
57# makefiles="Makefile sys/Makefile sys/${GST_PLUGINS_BUILD_DIR}/Makefile" 104# makefiles="Makefile sys/Makefile sys/${GST_PLUGINS_BUILD_DIR}/Makefile"
58# elif [[ -d "${S}/ext/${GST_PLUGINS_BUILD_DIR}" ]] ; then 105# elif [[ -d "${S}/ext/${GST_PLUGINS_BUILD_DIR}" ]] ; then
65 112
66gst-plugins-bad_src_configure() { 113gst-plugins-bad_src_configure() {
67 local plugin gst_conf 114 local plugin gst_conf
68 115
69 einfo "Configuring to build ${GST_PLUGINS_BUILD} plugin(s) ..." 116 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 117
75 for plugin in ${my_gst_plugins_bad} ; do 118 for plugin in ${my_gst_plugins_bad} ; do
76 gst_conf="${gst_conf} --disable-${plugin}" 119 gst_conf="${gst_conf} --disable-${plugin}"
77 done 120 done
78 121

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

  ViewVC Help
Powered by ViewVC 1.1.20