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

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

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

Revision 1.27 Revision 1.28
1# Copyright 1999-2012 Gentoo Foundation 1# Copyright 1999-2012 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-good.eclass,v 1.27 2012/05/02 18:31:42 jdhore Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/gst-plugins-good.eclass,v 1.28 2012/10/23 07:54:38 tetromino Exp $
4 4
5# Author : foser <foser@gentoo.org>, zaheerm <zaheerm@gentoo.org> 5# Author : foser <foser@gentoo.org>, zaheerm <zaheerm@gentoo.org>
6 6
7# gst-plugins-good eclass 7# gst-plugins-good eclass
8# 8#
14# Gentoo developers responsible for gstreamer <gnome@gentoo.org>, the application developer 14# Gentoo developers responsible for gstreamer <gnome@gentoo.org>, the application developer
15# or the gstreamer team. 15# or the gstreamer team.
16 16
17inherit eutils versionator gst-plugins10 17inherit eutils versionator gst-plugins10
18 18
19GST_EXPF="src_unpack src_compile src_install"
20GST_TARBALL_SUFFIX="bz2"
21GST_LA_PUNT="no"
22case ${EAPI:-0} in
23 4) GST_EXPF="${GST_EXPF} src_configure"
24 GST_TARBALL_SUFFIX="xz"
25 GST_LA_PUNT="yes" ;;
26 2|3) GST_EXPF="${GST_EXPF} src_configure" ;;
27 1|0) ;;
28 *) die "Unknown EAPI" ;;
29esac
30EXPORT_FUNCTIONS ${GST_EXPF}
19 31
20### 32###
21# variable declarations 33# variable declarations
22### 34###
23 35
28 40
29# First line for non-plugin build related configure options; second line for 41# First line for non-plugin build related configure options; second line for
30# sys/ plugins; rest is split plugin options in order of ./configure --help output. 42# sys/ plugins; rest is split plugin options in order of ./configure --help output.
31# Good ways of validation are seeing diff of old and new configure.ac, and ./configure --help 43# Good ways of validation are seeing diff of old and new configure.ac, and ./configure --help
32# 44#
33# This list is current to gst-plugins-good-0.10.28: 45# This list is current to gst-plugins-good-0.10.31:
34my_gst_plugins_good="gconftool zlib bz2 46my_gst_plugins_good="gconftool zlib bz2
35directsound oss oss4 sunaudio osx_audio osx_video gst_v4l2 x xshm xvideo 47directsound oss oss4 sunaudio osx_audio osx_video gst_v4l2 x xshm xvideo
36aalib aalibtest annodex cairo esd esdtest flac gconf gdk_pixbuf hal jpeg 48aalib aalibtest annodex cairo esd esdtest flac gconf gdk_pixbuf hal jpeg
37libcaca libdv libpng pulse dv1394 shout2 shout2test soup speex taglib wavpack" 49libcaca libdv libpng pulse dv1394 shout2 soup speex taglib wavpack"
38 50
39# When adding conditionals like below, be careful about having leading spaces in concat 51# When adding conditionals like below, be careful about having leading spaces in concat
52
53# --enable-shout2test option was removed in 0.10.31
54if ! version_is_at_least "0.10.31"; then
55 my_gst_plugins_good+=" shout2test"
56fi
40 57
41# cairooverlay added to the cairo plugin under cairo_gobject 58# cairooverlay added to the cairo plugin under cairo_gobject
42if version_is_at_least "0.10.29"; then 59if version_is_at_least "0.10.29"; then
43 my_gst_plugins_good+=" cairo_gobject" 60 my_gst_plugins_good+=" cairo_gobject"
44fi 61fi
47if version_is_at_least "0.10.27"; then 64if version_is_at_least "0.10.27"; then
48 my_gst_plugins_good+=" jack" 65 my_gst_plugins_good+=" jack"
49fi 66fi
50 67
51#SRC_URI="mirror://gnome/sources/gst-plugins/${PV_MAJ_MIN}/${MY_P}.tar.bz2" 68#SRC_URI="mirror://gnome/sources/gst-plugins/${PV_MAJ_MIN}/${MY_P}.tar.bz2"
52SRC_URI="http://gstreamer.freedesktop.org/src/gst-plugins-good/${MY_P}.tar.bz2" 69SRC_URI="http://gstreamer.freedesktop.org/src/gst-plugins-good/${MY_P}.tar.${GST_TARBALL_SUFFIX}"
70[[ ${GST_TARBALL_SUFFIX} = "xz" ]] && DEPEND="${DEPEND} app-arch/xz-utils"
53 71
54S=${WORKDIR}/${MY_P} 72S=${WORKDIR}/${MY_P}
55# added to remove circular deps 73# added to remove circular deps
56# 6/2/2006 - zaheerm 74# 6/2/2006 - zaheerm
57if [ "${PN}" != "${MY_PN}" ]; then 75if [ "${PN}" != "${MY_PN}" ]; then
58RDEPEND="=media-libs/gst-plugins-base-0.10*" 76RDEPEND="=media-libs/gst-plugins-base-0.10*"
59DEPEND="${RDEPEND} 77DEPEND="${RDEPEND}
78 ${DEPEND}
60 >=sys-apps/sed-4 79 >=sys-apps/sed-4
61 virtual/pkgconfig" 80 virtual/pkgconfig"
62 81
63# -good-0.10.24 uses orc optionally instead of liboil unconditionally. 82# -good-0.10.24 uses orc optionally instead of liboil unconditionally.
64# While <0.10.24 configure always checks for liboil, it is linked to only by non-split 83# While <0.10.24 configure always checks for liboil, it is linked to only by non-split
120 139
121} 140}
122 141
123gst-plugins-good_src_compile() { 142gst-plugins-good_src_compile() {
124 143
125 gst-plugins-good_src_configure ${@} 144 has src_configure ${GST_EXPF} || gst-plugins-good_src_configure ${@}
126 145
127 gst-plugins10_find_plugin_dir 146 gst-plugins10_find_plugin_dir
128 emake || die "compile failure" 147 emake || die "compile failure"
129 148
130} 149}
131 150
132gst-plugins-good_src_install() { 151gst-plugins-good_src_install() {
133 152
134 gst-plugins10_find_plugin_dir 153 gst-plugins10_find_plugin_dir
135 einstall || die 154 einstall || die
155 [[ ${GST_LA_PUNT} = "yes" ]] && prune_libtool_files --modules
136 156
137 [[ -e README ]] && dodoc README 157 [[ -e README ]] && dodoc README
138} 158}
139
140EXPORT_FUNCTIONS src_unpack src_compile src_install

Legend:
Removed from v.1.27  
changed lines
  Added in v.1.28

  ViewVC Help
Powered by ViewVC 1.1.20