Gentoo Archives: gentoo-commits

From: "Gilles Dartiguelongue (eva)" <eva@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in eclass: ChangeLog gst-plugins10.eclass gst-plugins-base.eclass gst-plugins-good.eclass gst-plugins-ugly.eclass gst-plugins-bad.eclass
Date: Sun, 02 Dec 2012 17:16:32
Message-Id: 20121202171621.2A2212171D@flycatcher.gentoo.org
1 eva 12/12/02 17:16:21
2
3 Modified: ChangeLog gst-plugins10.eclass
4 gst-plugins-base.eclass gst-plugins-good.eclass
5 gst-plugins-ugly.eclass gst-plugins-bad.eclass
6 Log:
7 Commit new gstreamer eclasses as reviewed on gentoo-dev mailing list with a few more fixes, most notably EAPI=1 support fixes. For a more detailed changelog, please see gnome overlay git log.
8
9 Revision Changes Path
10 1.541 eclass/ChangeLog
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.541&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.541&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?r1=1.540&r2=1.541
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v
19 retrieving revision 1.540
20 retrieving revision 1.541
21 diff -u -r1.540 -r1.541
22 --- ChangeLog 2 Dec 2012 11:26:07 -0000 1.540
23 +++ ChangeLog 2 Dec 2012 17:16:20 -0000 1.541
24 @@ -1,6 +1,13 @@
25 # ChangeLog for eclass directory
26 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.540 2012/12/02 11:26:07 pacho Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.541 2012/12/02 17:16:20 eva Exp $
29 +
30 + 02 Dec 2012; Gilles Dartiguelongue <eva@g.o> gst-plugins-bad.eclass,
31 + gst-plugins-base.eclass, gst-plugins-good.eclass, gst-plugins-ugly.eclass,
32 + gst-plugins10.eclass:
33 + Commit new gstreamer eclasses as reviewed on gentoo-dev mailing list with a
34 + few more fixes, most notably EAPI=1 support fixes. For a more detailed
35 + changelog, please see gnome overlay git log.
36
37 02 Dec 2012; Pacho Ramos <pacho@g.o> vala.eclass:
38 making vala_src_prepare() into a no-op in the
39
40
41
42 1.8 eclass/gst-plugins10.eclass
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/gst-plugins10.eclass?rev=1.8&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/gst-plugins10.eclass?rev=1.8&content-type=text/plain
46 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/gst-plugins10.eclass?r1=1.7&r2=1.8
47
48 Index: gst-plugins10.eclass
49 ===================================================================
50 RCS file: /var/cvsroot/gentoo-x86/eclass/gst-plugins10.eclass,v
51 retrieving revision 1.7
52 retrieving revision 1.8
53 diff -u -r1.7 -r1.8
54 --- gst-plugins10.eclass 31 Oct 2012 01:51:52 -0000 1.7
55 +++ gst-plugins10.eclass 2 Dec 2012 17:16:20 -0000 1.8
56 @@ -1,52 +1,150 @@
57 # Copyright 1999-2012 Gentoo Foundation
58 # Distributed under the terms of the GNU General Public License v2
59 -# $Header: /var/cvsroot/gentoo-x86/eclass/gst-plugins10.eclass,v 1.7 2012/10/31 01:51:52 tetromino Exp $
60 +# $Header: /var/cvsroot/gentoo-x86/eclass/gst-plugins10.eclass,v 1.8 2012/12/02 17:16:20 eva Exp $
61
62 -# Author : foser <foser@g.o>
63 -
64 -# gst-plugins eclass
65 +# @ECLASS: gst-plugins10.eclass
66 +# @MAINTAINER:
67 +# gstreamer@g.o
68 +# @AUTHOR:
69 +# Gilles Dartiguelongue <eva@g.o>
70 +# Saleem Abdulrasool <compnerd@g.o>
71 +# foser <foser@g.o>
72 +# zaheerm <zaheerm@g.o>
73 +# @BLURB: Manages build for invididual ebuild for gst-plugins.
74 +# @DESCRIPTION:
75 +# Eclass to make external gst-plugins emergable on a per-plugin basis and
76 +# to solve the problem with gst-plugins generating far too much unneeded
77 +# dependancies.
78 #
79 -# eclass to make external gst-plugins emergable on a per-plugin basis
80 -# to solve the problem with gst-plugins generating far too much unneeded deps
81 +# GStreamer consuming applications should depend on the specific plugins they
82 +# need as defined in their source code.
83 #
84 -# 3rd party applications using gstreamer now should depend on a set of plugins as
85 -# defined in the source, in case of spider usage obtain recommended plugins to use from
86 -# Gentoo developers responsible for gstreamer <gstreamer@g.o> or the application
87 +# In case of spider usage, obtain recommended plugins to use from Gentoo
88 +# developers responsible for gstreamer <gstreamer@g.o> or the application
89 # developer.
90
91 -inherit eutils versionator
92 -
93 -
94 -###
95 -# variable declarations
96 -###
97 +inherit eutils multilib toolchain-funcs versionator
98
99 -# Create a major/minor combo for our SLOT and executables suffix
100 -PVP=(${PV//[-\._]/ })
101 -#PV_MAJ_MIN=${PVP[0]}.${PVP[1]}
102 -PV_MAJ_MIN=$(get_version_component_range '1-2')
103 -
104 -# Extract the plugin to build from the ebuild name
105 -# May be set by an ebuild and contain more than one indentifier, space seperated
106 -# (only src_configure can handle mutiple plugins at this time)
107 +GST_EXPF=""
108 +case "${EAPI:-0}" in
109 + 2|3|4|5)
110 + GST_EXPF="src_configure src_compile src_install"
111 + ;;
112 + 1)
113 + GST_EXPF="src_compile src_install"
114 + ;;
115 + 0)
116 + die "EAPI=\"${EAPI:-0}\" is not supported anymore"
117 + ;;
118 + *)
119 + die "EAPI=\"${EAPI}\" is not supported yet"
120 + ;;
121 +esac
122 +EXPORT_FUNCTIONS ${GST_EXPF}
123 +
124 +# @ECLASS-VARIABLE: GST_LA_PUNT
125 +# @DESCRIPTION:
126 +# Should we delete all the .la files?
127 +# NOT to be used without due consideration.
128 +if has "${EAPI:-0}" 0 1 2 3; then
129 + : ${GST_LA_PUNT:="no"}
130 +else
131 + : ${GST_LA_PUNT:="yes"}
132 +fi
133 +
134 +# @ECLASS-VARIABLE: GST_PLUGINS_BUILD
135 +# @DESCRIPTION:
136 +# Defines the plugins to be built.
137 +# May be set by an ebuild and contain more than one indentifier, space
138 +# seperated (only src_configure can handle mutiple plugins at this time).
139 GST_PLUGINS_BUILD=${PN/gst-plugins-/}
140
141 -# Actual build dir, is the same as the configure switch name most of the time
142 +# @ECLASS-VARIABLE: GST_PLUGINS_BUILD_DIR
143 +# @DESCRIPTION:
144 +# Actual build directory of the plugin.
145 +# Most often the same as the configure switch name.
146 GST_PLUGINS_BUILD_DIR=${PN/gst-plugins-/}
147
148 -# general common gst-plugins ebuild entries
149 +# @ECLASS-VARIABLE: GST_TARBALL_SUFFIX
150 +# @DESCRIPTION:
151 +# Most projects hosted on gstreamer.freedesktop.org mirrors provide tarballs as
152 +# tar.bz2 or tar.xz. This eclass defaults to bz2 for EAPI 0, 1, 2, 3 and
153 +# defaults to xz for everything else. This is because the gstreamer mirrors
154 +# are moving to only have xz tarballs for new releases.
155 +if has "${EAPI:-0}" 0 1 2 3; then
156 + : ${GST_TARBALL_SUFFIX:="bz2"}
157 +else
158 + : ${GST_TARBALL_SUFFIX:="xz"}
159 +fi
160 +
161 +# Even though xz-utils are in @system, they must still be added to DEPEND; see
162 +# http://archives.gentoo.org/gentoo-dev/msg_a0d4833eb314d1be5d5802a3b710e0a4.xml
163 +if [[ ${GST_TARBALL_SUFFIX} == "xz" ]]; then
164 + DEPEND="${DEPEND} app-arch/xz-utils"
165 +fi
166 +
167 +# @ECLASS-VARIABLE: GST_ORG_MODULE
168 +# @DESCRIPTION:
169 +# Name of the module as hosted on gstreamer.freedesktop.org mirrors.
170 +# Leave unset if package name matches module name.
171 +: ${GST_ORG_MODULE:=$PN}
172 +
173 +# @ECLASS-VARIABLE: GST_ORG_PVP
174 +# @INTERNAL
175 +# @DESCRIPTION:
176 +# Major and minor numbers of the version number.
177 +: ${GST_ORG_PVP:=$(get_version_component_range 1-2)}
178 +
179 +
180 DESCRIPTION="${BUILD_GST_PLUGINS} plugin for gstreamer"
181 HOMEPAGE="http://gstreamer.freedesktop.org/"
182 +SRC_URI="http://gstreamer.freedesktop.org/src/${GST_ORG_MODULE}/${GST_ORG_MODULE}-${PV}.tar.${GST_TARBALL_SUFFIX}"
183 +
184 LICENSE="GPL-2"
185 +SLOT="${GST_ORG_PVP}"
186
187 -#SRC_URI="mirror://gnome/sources/gst-plugins/${PV_MAJ_MIN}/${MY_P}.tar.bz2"
188 -SLOT=${PV_MAJ_MIN}
189 -###
190 -# internal functions
191 -###
192 +S="${WORKDIR}/${GST_ORG_MODULE}-${PV}"
193
194 -gst-plugins10_find_plugin_dir() {
195 +RDEPEND="
196 + >=dev-libs/glib-2.6:2
197 + media-libs/gstreamer:${SLOT}
198 +"
199 +DEPEND="
200 + >=sys-apps/sed-4
201 + virtual/pkgconfig
202 +"
203 +
204 +if [[ ${PN} != ${GST_ORG_MODULE} ]]; then
205 + # Do not run test phase for invididual plugin ebuilds.
206 + RESTRICT="test"
207 + RDEPEND="${RDEPEND} >=media-libs/${GST_ORG_MODULE}-${PV}:${SLOT}"
208 +else
209 + IUSE="nls"
210 + DEPEND="${DEPEND} nls? ( >=sys-devel/gettext-0.17 )"
211 +fi
212 +
213 +#if [[ ${SLOT} == "0.10" ]]; then
214 +# XXX: verify with old ebuilds.
215 +# DEPEND="${DEPEND} dev-libs/liboil"
216 +#fi
217 +
218 +DEPEND="${DEPEND} ${RDEPEND}"
219 +
220 +# @FUNCTION: gst-plugins10_get_plugins
221 +# @INTERNAL
222 +# @DESCRIPTION:
223 +# Get the list of plugins requiring external dependencies.
224 +gst-plugins10_get_plugins() {
225 + # Must be called from src_prepare/src_configure
226 + GST_PLUGINS_LIST=$(sed -rn 's/^AG_GST_CHECK_FEATURE\((\w+),.*/ \1 /p' \
227 + "${S}"/configure.* | tr '[:upper:]' '[:lower:]')
228 +}
229
230 +# @FUNCTION: gst-plugins10_find_plugin_dir
231 +# @INTERNAL
232 +# @DESCRIPTION:
233 +# Finds plugin build directory and cd to it.
234 +gst-plugins10_find_plugin_dir() {
235 if [[ ! -d ${S}/ext/${GST_PLUGINS_BUILD_DIR} ]]; then
236 if [[ ! -d ${S}/sys/${GST_PLUGINS_BUILD_DIR} ]]; then
237 ewarn "No such plugin directory"
238 @@ -58,24 +156,121 @@
239 einfo "Building external plugin ${GST_PLUGINS_BUILD_DIR} ..."
240 cd "${S}"/ext/${GST_PLUGINS_BUILD_DIR}
241 fi
242 -
243 }
244
245 -###
246 -# public functions
247 -###
248 -
249 -gst-plugins10_remove_unversioned_binaries() {
250 +# @FUNCTION: gst-plugins10_system_link
251 +# @USAGE: gst-plugins10_system_link gst-libs/gst/audio:gstreamer-audio [...]
252 +# @DESCRIPTION:
253 +# Walks through makefiles in order to make sure build will link against system
254 +# librairies.
255 +# Takes a list of path fragments and corresponding pkgconfig libraries
256 +# separated by colon (:). Will replace the path fragment by the output of
257 +# pkgconfig.
258 +gst-plugins10_system_link() {
259 + local directory libs pkgconfig pc tuple
260 + pkgconfig=$(tc-getPKG_CONFIG)
261 +
262 + gst-plugins10_find_plugin_dir
263 +
264 + for tuple in $@ ; do
265 + directory="$(echo ${tuple} | cut -f1 -d':')"
266 + pc="$(echo ${tuple} | cut -f2 -d':')-${SLOT}"
267 + libs="$(${pkgconfig} --libs-only-l ${pc})"
268
269 - # remove the unversioned binaries gstreamer provide
270 - # this is to prevent these binaries to be owned by several SLOTs
271 + sed -e "s:\$(top_builddir)/${directory}/.*\.la:${libs}:" \
272 + -i Makefile.am Makefile.in || die
273 + done
274 +}
275
276 +# @FUNCTION: gst-plugins10_remove_unversioned_binaries
277 +# @INTERNAL
278 +# @DEPRECATED
279 +# @DESCRIPTION:
280 +# Remove the unversioned binaries gstreamer provides to prevent file collision
281 +# with other slots.
282 +gst-plugins10_remove_unversioned_binaries() {
283 cd "${D}"/usr/bin
284 local gst_bins
285 - for gst_bins in *-${PV_MAJ_MIN}; do
286 + for gst_bins in *-${SLOT} ; do
287 [[ -e ${gst_bins} ]] || continue
288 - rm ${gst_bins/-${PV_MAJ_MIN}/}
289 - einfo "Removed ${gst_bins/-${PV_MAJ_MIN}/}"
290 + rm ${gst_bins/-${SLOT}/}
291 + einfo "Removed ${gst_bins/-${SLOT}/}"
292 done
293 +}
294 +
295 +# @FUNCTION: gst-plugins10_src_configure
296 +gst-plugins10_src_configure() {
297 + local plugin gst_conf
298
299 + if has ${EAPI:-0} 0 1 2 3 ; then
300 + gst_conf="${gst_conf} --disable-dependency-tracking"
301 + fi
302 +
303 + if has ${EAPI:-0} 0 1 2 3 4 ; then
304 + gst_conf="${gst_conf} --disable-silent-rules"
305 + fi
306 +
307 + gst-plugins10_get_plugins
308 +
309 + for plugin in ${GST_PLUGINS_LIST} ; do
310 + if has ${plugin} ${GST_PLUGINS_BUILD} ; then
311 + gst_conf="${gst_conf} --enable-${plugin}"
312 + else
313 + gst_conf="${gst_conf} --disable-${plugin}"
314 + fi
315 + done
316 +
317 + if grep -q "ORC_CHECK" configure.* ; then
318 + if in_iuse orc ; then
319 + gst_conf="${gst_conf} $(use_enable orc)"
320 + else
321 + gst_conf="${gst_conf} --disable-orc"
322 + fi
323 + fi
324 +
325 + if grep -q "AM_MAINTAINER_MODE" configure.* ; then
326 + gst_conf="${gst_conf} --disable-maintainer-mode"
327 + fi
328 +
329 + if grep -q "disable-schemas-compile" configure ; then
330 + gst_conf="${gst_conf} --disable-schemas-compile"
331 + fi
332 +
333 + if [[ ${PN} == ${GST_ORG_MODULE} ]]; then
334 + gst_conf="${gst_conf} $(use_enable nls)"
335 + fi
336 +
337 + einfo "Configuring to build ${GST_PLUGINS_BUILD} plugin(s) ..."
338 + econf \
339 + --with-package-name="Gentoo GStreamer ebuild" \
340 + --with-package-origin="http://www.gentoo.org" \
341 + ${gst_conf} $@
342 }
343 +
344 +# @FUNCTION: gst-plugins10_src_compile
345 +gst-plugins10_src_compile() {
346 + has ${EAPI:-0} 0 1 && gst-plugins10_src_configure "$@"
347 +
348 + gst-plugins10_find_plugin_dir
349 +
350 + if has "${EAPI:-0}" 0 1 2 3 ; then
351 + emake || die
352 + else
353 + default
354 + fi
355 +}
356 +
357 +# @FUNCTION: gst-plugins10_src_install
358 +gst-plugins10_src_install() {
359 + gst-plugins10_find_plugin_dir
360 +
361 + if has "${EAPI:-0}" 0 1 2 3 ; then
362 + emake install DESTDIR="${D}" || die
363 + [[ -e README ]] && dodoc README
364 + else
365 + default
366 + fi
367 +
368 + [[ ${GST_LA_PUNT} = "yes" ]] && prune_libtool_files --modules
369 +}
370 +
371
372
373
374 1.25 eclass/gst-plugins-base.eclass
375
376 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/gst-plugins-base.eclass?rev=1.25&view=markup
377 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/gst-plugins-base.eclass?rev=1.25&content-type=text/plain
378 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/gst-plugins-base.eclass?r1=1.24&r2=1.25
379
380 Index: gst-plugins-base.eclass
381 ===================================================================
382 RCS file: /var/cvsroot/gentoo-x86/eclass/gst-plugins-base.eclass,v
383 retrieving revision 1.24
384 retrieving revision 1.25
385 diff -u -r1.24 -r1.25
386 --- gst-plugins-base.eclass 23 Oct 2012 08:09:35 -0000 1.24
387 +++ gst-plugins-base.eclass 2 Dec 2012 17:16:20 -0000 1.25
388 @@ -1,151 +1,31 @@
389 # Copyright 1999-2012 Gentoo Foundation
390 # Distributed under the terms of the GNU General Public License v2
391 -# $Header: /var/cvsroot/gentoo-x86/eclass/gst-plugins-base.eclass,v 1.24 2012/10/23 08:09:35 tetromino Exp $
392 +# $Header: /var/cvsroot/gentoo-x86/eclass/gst-plugins-base.eclass,v 1.25 2012/12/02 17:16:20 eva Exp $
393
394 -# Author : foser <foser@g.o>
395 -
396 -# gst-plugins eclass
397 -#
398 -# eclass to make external gst-plugins emergable on a per-plugin basis
399 -# to solve the problem with gst-plugins generating far too much unneeded deps
400 -#
401 -# 3rd party applications using gstreamer now should depend on a set of plugins as
402 -# defined in the source, in case of spider usage obtain recommended plugins to use from
403 -# Gentoo developers responsible for gstreamer <gnome@g.o>, the application developer
404 -# or the gstreamer team.
405 -
406 -inherit eutils gst-plugins10 multilib
407 -
408 -GST_EXPF="src_unpack src_compile src_install"
409 -GST_TARBALL_SUFFIX="bz2"
410 -GST_LA_PUNT="no"
411 -case ${EAPI:-0} in
412 - 4) GST_EXPF="${GST_EXPF} src_prepare src_configure"
413 - GST_TARBALL_SUFFIX="xz"
414 - GST_LA_PUNT="yes" ;;
415 - 2|3) GST_EXPF="${GST_EXPF} src_prepare src_configure" ;;
416 - 1|0) ;;
417 - *) die "Unknown EAPI" ;;
418 +# @ECLASS: gst-plugins-base.eclass
419 +# @MAINTAINER:
420 +# gstreamer@g.o
421 +# @AUTHOR:
422 +# Gilles Dartiguelongue <eva@g.o>
423 +# Saleem Abdulrasool <compnerd@g.o>
424 +# foser <foser@g.o>
425 +# zaheerm <zaheerm@g.o>
426 +# @BLURB: Manages build for invididual ebuild for gst-plugins-base.
427 +# @DESCRIPTION:
428 +# See gst-plugins10.eclass documentation.
429 +
430 +GST_ORG_MODULE="gst-plugins-base"
431 +
432 +inherit gst-plugins10
433 +
434 +case "${EAPI:-0}" in
435 + 1|2|3|4|5)
436 + ;;
437 + 0)
438 + die "EAPI=\"${EAPI}\" is not supported anymore"
439 + ;;
440 + *)
441 + die "EAPI=\"${EAPI}\" is not supported yet"
442 + ;;
443 esac
444 -EXPORT_FUNCTIONS ${GST_EXPF}
445 -
446 -###
447 -# variable declarations
448 -###
449 -
450 -MY_PN=gst-plugins-base
451 -MY_P=${MY_PN}-${PV}
452 -# All relevant configure options for gst-plugins
453 -# need a better way to extract these
454 -# gst-plugins-base 0.9
455 -my_gst_plugins_base="x xvideo xshm gst_v4l alsa cdparanoia gnome_vfs
456 -gio libvisual ogg oggtest theora ivorbis vorbis vorbistest examples
457 -freetypetest pango"
458 -
459 -#SRC_URI="mirror://gnome/sources/gst-plugins/${PV_MAJ_MIN}/${MY_P}.tar.bz2"
460 -SRC_URI="http://gstreamer.freedesktop.org/src/gst-plugins-base/${MY_P}.tar.${GST_TARBALL_SUFFIX}"
461 -[[ ${GST_TARBALL_SUFFIX} = "xz" ]] && DEPEND="${DEPEND} app-arch/xz-utils"
462 -
463 -S=${WORKDIR}/${MY_P}
464 -
465 -# added to remove circular deps
466 -# 6/2/2006 - zaheerm
467 -if [ "${PN}" != "${MY_PN}" ]; then
468 -RDEPEND=">=media-libs/gst-plugins-base-${PV}"
469 -DEPEND="${RDEPEND}
470 - ${DEPEND}
471 - ~media-libs/gst-plugins-base-${PV}
472 - >=sys-apps/sed-4
473 - virtual/pkgconfig"
474 -RESTRICT=test
475 -fi
476 -
477 -###
478 -# public functions
479 -###
480 -
481 -gst-plugins-base_src_configure() {
482 -
483 - # disable any external plugin besides the plugin we want
484 - local plugin gst_conf
485 -
486 - einfo "Configuring to build ${GST_PLUGINS_BUILD} plugin(s) ..."
487 -
488 - for plugin in ${my_gst_plugins_base}; do
489 - gst_conf="${gst_conf} --disable-${plugin} "
490 - done
491 -
492 - for plugin in ${GST_PLUGINS_BUILD}; do
493 - gst_conf="${gst_conf} --enable-${plugin} "
494 - done
495 -
496 - cd "${S}"
497 - econf ${@} --with-package-name="Gentoo GStreamer Ebuild" --with-package-origin="http://www.gentoo.org" ${gst_conf}
498 -
499 -}
500 -
501 -###
502 -# public inheritable functions
503 -###
504 -
505 -gst-plugins-base_src_unpack() {
506 -
507 - unpack ${A}
508 -
509 - cd "${S}"
510 - has src_prepare ${GST_EXPF} || gst-plugins-base_src_prepare
511 -
512 -}
513 -
514 -gst-plugins-base_src_prepare() {
515 -
516 - # Link with the syswide installed gst-libs if needed
517 - gst-plugins10_find_plugin_dir
518 - sed -e "s:\$(top_builddir)/gst-libs/gst/interfaces/libgstinterfaces:${ROOT}/usr/$(get_libdir)/libgstinterfaces:" \
519 - -e "s:\${top_builddir}/gst-libs/gst/interfaces/libgstinterfaces:${ROOT}/usr/$(get_libdir)/libgstinterfaces:" \
520 - -e "s:\$(top_builddir)/gst-libs/gst/audio/libgstaudio:${ROOT}/usr/$(get_libdir)/libgstaudio:" \
521 - -e "s:\${top_builddir}/gst-libs/gst/audio/libgstaudio:${ROOT}/usr/$(get_libdir)/libgstaudio:" \
522 - -e "s:\$(top_builddir)/gst-libs/gst/cdda/libgstcdda:${ROOT}/usr/$(get_libdir)/libgstcdda:" \
523 - -e "s:\${top_builddir}/gst-libs/gst/cdda/libgstcdda:${ROOT}/usr/$(get_libdir)/libgstcdda:" \
524 - -e "s:\$(top_builddir)/gst-libs/gst/riff/libgstriff:${ROOT}/usr/$(get_libdir)/libgstriff:" \
525 - -e "s:\${top_builddir}/gst-libs/gst/riff/libgstriff:${ROOT}/usr/$(get_libdir)/libgstriff:" \
526 - -e "s:\$(top_builddir)/gst-libs/gst/tag/libgsttag:${ROOT}/usr/$(get_libdir)/libgsttag:" \
527 - -e "s:\${top_builddir}/gst-libs/gst/tag/libgsttag:${ROOT}/usr/$(get_libdir)/libgsttag:" \
528 - -e "s:\$(top_builddir)/gst-libs/gst/video/libgstvideo:${ROOT}/usr/$(get_libdir)/libgstvideo:" \
529 - -e "s:\${top_builddir}/gst-libs/gst/video/libgstvideo:${ROOT}/usr/$(get_libdir)/libgstvideo:" \
530 - -e "s:\$(top_builddir)/gst-libs/gst/netbuffer/libgstnetbuffer:${ROOT}/usr/$(get_libdir)/libgstnetbuffer:" \
531 - -e "s:\${top_builddir}/gst-libs/gst/netbuffer/libgstnetbuffer:${ROOT}/usr/$(get_libdir)/libgstnetbuffer:" \
532 - -e "s:\$(top_builddir)/gst-libs/gst/rtp/libgstrtp:${ROOT}/usr/$(get_libdir)/libgstrtp:" \
533 - -e "s:\${top_builddir}/gst-libs/gst/rtp/libgstrtp:${ROOT}/usr/$(get_libdir)/libgstrtp:" \
534 - -i Makefile.in
535 -# cd ${S}
536 -
537 - # Remove generation of any other Makefiles except the plugin's Makefile
538 -# if [ -d "${S}/sys/${GST_PLUGINS_BUILD_DIR}" ]; then
539 -# makefiles="Makefile sys/Makefile sys/${GST_PLUGINS_BUILD_DIR}/Makefile"
540 -# elif [ -d "${S}/ext/${GST_PLUGINS_BUILD_DIR}" ]; then
541 -# makefiles="Makefile ext/Makefile ext/${GST_PLUGINS_BUILD_DIR}/Makefile"
542 -# fi
543 -# sed -e "s:ac_config_files=.*:ac_config_files='${makefiles}':" \
544 -# -i ${S}/configure
545 -
546 -}
547 -
548 -
549 -
550 -gst-plugins-base_src_compile() {
551 -
552 - has src_configure ${GST_EXPF} || gst-plugins-base_src_configure ${@}
553 - gst-plugins10_find_plugin_dir
554 - emake || die "compile failure"
555 -
556 -}
557 -
558 -gst-plugins-base_src_install() {
559 -
560 - gst-plugins10_find_plugin_dir
561 - einstall || die
562 - [[ ${GST_LA_PUNT} = "yes" ]] && prune_libtool_files --modules
563
564 - [[ -e README ]] && dodoc README
565 -}
566
567
568
569 1.29 eclass/gst-plugins-good.eclass
570
571 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/gst-plugins-good.eclass?rev=1.29&view=markup
572 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/gst-plugins-good.eclass?rev=1.29&content-type=text/plain
573 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/gst-plugins-good.eclass?r1=1.28&r2=1.29
574
575 Index: gst-plugins-good.eclass
576 ===================================================================
577 RCS file: /var/cvsroot/gentoo-x86/eclass/gst-plugins-good.eclass,v
578 retrieving revision 1.28
579 retrieving revision 1.29
580 diff -u -r1.28 -r1.29
581 --- gst-plugins-good.eclass 23 Oct 2012 07:54:38 -0000 1.28
582 +++ gst-plugins-good.eclass 2 Dec 2012 17:16:20 -0000 1.29
583 @@ -1,158 +1,42 @@
584 # Copyright 1999-2012 Gentoo Foundation
585 # Distributed under the terms of the GNU General Public License v2
586 -# $Header: /var/cvsroot/gentoo-x86/eclass/gst-plugins-good.eclass,v 1.28 2012/10/23 07:54:38 tetromino Exp $
587 +# $Header: /var/cvsroot/gentoo-x86/eclass/gst-plugins-good.eclass,v 1.29 2012/12/02 17:16:20 eva Exp $
588
589 -# Author : foser <foser@g.o>, zaheerm <zaheerm@g.o>
590 -
591 -# gst-plugins-good eclass
592 -#
593 -# eclass to make external gst-plugins emergable on a per-plugin basis
594 -# to solve the problem with gst-plugins generating far too much unneeded deps
595 -#
596 -# 3rd party applications using gstreamer now should depend on a set of plugins as
597 -# defined in the source, obtain recommended plugins to use from
598 -# Gentoo developers responsible for gstreamer <gnome@g.o>, the application developer
599 -# or the gstreamer team.
600 -
601 -inherit eutils versionator gst-plugins10
602 -
603 -GST_EXPF="src_unpack src_compile src_install"
604 -GST_TARBALL_SUFFIX="bz2"
605 -GST_LA_PUNT="no"
606 -case ${EAPI:-0} in
607 - 4) GST_EXPF="${GST_EXPF} src_configure"
608 - GST_TARBALL_SUFFIX="xz"
609 - GST_LA_PUNT="yes" ;;
610 - 2|3) GST_EXPF="${GST_EXPF} src_configure" ;;
611 - 1|0) ;;
612 - *) die "Unknown EAPI" ;;
613 +# @ECLASS: gst-plugins-good.eclass
614 +# @MAINTAINER:
615 +# gstreamer@g.o
616 +# @AUTHOR:
617 +# Gilles Dartiguelongue <eva@g.o>
618 +# Saleem Abdulrasool <compnerd@g.o>
619 +# foser <foser@g.o>
620 +# zaheerm <zaheerm@g.o>
621 +# @BLURB: Manages build for invididual ebuild for gst-plugins-good.
622 +# @DESCRIPTION:
623 +# See gst-plugins10.eclass documentation.
624 +
625 +GST_ORG_MODULE="gst-plugins-good"
626 +
627 +inherit eutils gst-plugins10
628 +
629 +case "${EAPI:-0}" in
630 + 1|2|3|4|5)
631 + ;;
632 + 0)
633 + die "EAPI=\"${EAPI}\" is not supported anymore"
634 + ;;
635 + *)
636 + die "EAPI=\"${EAPI}\" is not supported yet"
637 + ;;
638 esac
639 -EXPORT_FUNCTIONS ${GST_EXPF}
640 -
641 -###
642 -# variable declarations
643 -###
644 -
645 -MY_PN=gst-plugins-good
646 -MY_P=${MY_PN}-${PV}
647 -# All relevant configure options for gst-plugins
648 -# need a better way to extract these
649 -
650 -# First line for non-plugin build related configure options; second line for
651 -# sys/ plugins; rest is split plugin options in order of ./configure --help output.
652 -# Good ways of validation are seeing diff of old and new configure.ac, and ./configure --help
653 -#
654 -# This list is current to gst-plugins-good-0.10.31:
655 -my_gst_plugins_good="gconftool zlib bz2
656 -directsound oss oss4 sunaudio osx_audio osx_video gst_v4l2 x xshm xvideo
657 -aalib aalibtest annodex cairo esd esdtest flac gconf gdk_pixbuf hal jpeg
658 -libcaca libdv libpng pulse dv1394 shout2 soup speex taglib wavpack"
659 -
660 -# When adding conditionals like below, be careful about having leading spaces in concat
661 -
662 -# --enable-shout2test option was removed in 0.10.31
663 -if ! version_is_at_least "0.10.31"; then
664 - my_gst_plugins_good+=" shout2test"
665 -fi
666 -
667 -# cairooverlay added to the cairo plugin under cairo_gobject
668 -if version_is_at_least "0.10.29"; then
669 - my_gst_plugins_good+=" cairo_gobject"
670 -fi
671 -
672 -# ext/jack moved here since 0.10.27
673 -if version_is_at_least "0.10.27"; then
674 - my_gst_plugins_good+=" jack"
675 -fi
676
677 -#SRC_URI="mirror://gnome/sources/gst-plugins/${PV_MAJ_MIN}/${MY_P}.tar.bz2"
678 -SRC_URI="http://gstreamer.freedesktop.org/src/gst-plugins-good/${MY_P}.tar.${GST_TARBALL_SUFFIX}"
679 -[[ ${GST_TARBALL_SUFFIX} = "xz" ]] && DEPEND="${DEPEND} app-arch/xz-utils"
680 -
681 -S=${WORKDIR}/${MY_P}
682 -# added to remove circular deps
683 -# 6/2/2006 - zaheerm
684 -if [ "${PN}" != "${MY_PN}" ]; then
685 -RDEPEND="=media-libs/gst-plugins-base-0.10*"
686 -DEPEND="${RDEPEND}
687 - ${DEPEND}
688 - >=sys-apps/sed-4
689 - virtual/pkgconfig"
690
691 +if [[ ${PN} != ${GST_ORG_MODULE} ]]; then
692 # -good-0.10.24 uses orc optionally instead of liboil unconditionally.
693 -# While <0.10.24 configure always checks for liboil, it is linked to only by non-split
694 -# plugins in gst/, so we only builddep for all old packages, and have a RDEPEND in old
695 -# versions of media-libs/gst-plugins-good
696 -if ! version_is_at_least "0.10.24"; then
697 -DEPEND="${DEPEND} >=dev-libs/liboil-0.3.8"
698 +# While <0.10.24 configure always checks for liboil, it is linked to only by
699 +# non-split plugins in gst/, so we only builddep for all old packages, and have
700 +# a RDEPEND in old versions of media-libs/gst-plugins-good
701 + if [[ ${SLOT} = "0.10" ]] && ! version_is_at_least "0.10.24"; then
702 + DEPEND="${DEPEND} >=dev-libs/liboil-0.3.8"
703 + fi
704 fi
705
706 -RESTRICT=test
707 -fi
708 -
709 -###
710 -# public functions
711 -###
712 -
713 -gst-plugins-good_src_configure() {
714 -
715 - # disable any external plugin besides the plugin we want
716 - local plugin gst_conf
717 -
718 - einfo "Configuring to build ${GST_PLUGINS_BUILD} plugin(s) ..."
719 -
720 - for plugin in ${my_gst_plugins_good}; do
721 - gst_conf="${gst_conf} --disable-${plugin} "
722 - done
723 -
724 - for plugin in ${GST_PLUGINS_BUILD}; do
725 - gst_conf="${gst_conf} --enable-${plugin} "
726 - done
727 -
728 - cd ${S}
729 - econf ${@} --with-package-name="Gentoo GStreamer Ebuild" --with-package-origin="http://www.gentoo.org" ${gst_conf} || die "./configure failure"
730 -
731 -}
732 -
733 -###
734 -# public inheritable functions
735 -###
736 -
737 -gst-plugins-good_src_unpack() {
738 -
739 -# local makefiles
740 -
741 - unpack ${A}
742 -
743 - # Link with the syswide installed gst-libs if needed
744 -# gst-plugins10_find_plugin_dir
745 -# cd ${S}
746 -
747 - # Remove generation of any other Makefiles except the plugin's Makefile
748 -# if [ -d "${S}/sys/${GST_PLUGINS_BUILD_DIR}" ]; then
749 -# makefiles="Makefile sys/Makefile sys/${GST_PLUGINS_BUILD_DIR}/Makefile"
750 -# elif [ -d "${S}/ext/${GST_PLUGINS_BUILD_DIR}" ]; then
751 -# makefiles="Makefile ext/Makefile ext/${GST_PLUGINS_BUILD_DIR}/Makefile"
752 -# fi
753 -# sed -e "s:ac_config_files=.*:ac_config_files='${makefiles}':" \
754 -# -i ${S}/configure
755 -
756 -}
757 -
758 -gst-plugins-good_src_compile() {
759 -
760 - has src_configure ${GST_EXPF} || gst-plugins-good_src_configure ${@}
761 -
762 - gst-plugins10_find_plugin_dir
763 - emake || die "compile failure"
764 -
765 -}
766 -
767 -gst-plugins-good_src_install() {
768 -
769 - gst-plugins10_find_plugin_dir
770 - einstall || die
771 - [[ ${GST_LA_PUNT} = "yes" ]] && prune_libtool_files --modules
772 -
773 - [[ -e README ]] && dodoc README
774 -}
775
776
777
778 1.25 eclass/gst-plugins-ugly.eclass
779
780 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/gst-plugins-ugly.eclass?rev=1.25&view=markup
781 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/gst-plugins-ugly.eclass?rev=1.25&content-type=text/plain
782 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/gst-plugins-ugly.eclass?r1=1.24&r2=1.25
783
784 Index: gst-plugins-ugly.eclass
785 ===================================================================
786 RCS file: /var/cvsroot/gentoo-x86/eclass/gst-plugins-ugly.eclass,v
787 retrieving revision 1.24
788 retrieving revision 1.25
789 diff -u -r1.24 -r1.25
790 --- gst-plugins-ugly.eclass 2 May 2012 18:31:42 -0000 1.24
791 +++ gst-plugins-ugly.eclass 2 Dec 2012 17:16:20 -0000 1.25
792 @@ -1,146 +1,31 @@
793 # Copyright 1999-2012 Gentoo Foundation
794 # Distributed under the terms of the GNU General Public License v2
795 -# $Header: /var/cvsroot/gentoo-x86/eclass/gst-plugins-ugly.eclass,v 1.24 2012/05/02 18:31:42 jdhore Exp $
796 +# $Header: /var/cvsroot/gentoo-x86/eclass/gst-plugins-ugly.eclass,v 1.25 2012/12/02 17:16:20 eva Exp $
797
798 -# Author : foser <foser@g.o>
799 +# @ECLASS: gst-plugins-ugly.eclass
800 +# @MAINTAINER:
801 +# gstreamer@g.o
802 +# @AUTHOR:
803 +# Gilles Dartiguelongue <eva@g.o>
804 +# Saleem Abdulrasool <compnerd@g.o>
805 +# foser <foser@g.o>
806 +# zaheerm <zaheerm@g.o>
807 +# @BLURB: Manages build for invididual ebuild for gst-plugins-ugly.
808 +# @DESCRIPTION:
809 +# See gst-plugins10.eclass documentation.
810
811 -# gst-plugins-ugly eclass
812 -#
813 -# eclass to make external gst-plugins emergable on a per-plugin basis
814 -# to solve the problem with gst-plugins generating far too much unneeded deps
815 -#
816 -# 3rd party applications using gstreamer now should depend on a set of plugins as
817 -# defined in the source, in case of spider usage obtain recommended plugins to use from
818 -# Gentoo developers responsible for gstreamer <gstreamer@g.o>.
819 +GST_ORG_MODULE="gst-plugins-ugly"
820
821 -inherit eutils versionator gst-plugins10
822 -
823 -
824 -###
825 -# variable declarations
826 -###
827 -
828 -MY_PN=gst-plugins-ugly
829 -MY_P=${MY_PN}-${PV}
830 -
831 -# All relevant configure options for gst-plugins-ugly
832 -# need a better way to extract these.
833 -my_gst_plugins_ugly="a52dec amrnb amrwb cdio dvdread lame mad mpeg2dec sidplay
834 -twolame x264"
835 -
836 -GST_UGLY_EXPORTED_FUNCTIONS="src_unpack src_compile src_install"
837 +inherit gst-plugins10
838
839 case "${EAPI:-0}" in
840 - 0)
841 - if [[ -n ${GST_ORC} ]]; then
842 - die "Usage of IUSE=+orc implying GST_ORC variable without EAPI-1"
843 - fi
844 + 1|2|3|4|5)
845 ;;
846 - 1)
847 + 0)
848 + die "EAPI=\"${EAPI}\" is not supported anymore"
849 ;;
850 *)
851 - die "Unsupported EAPI ${EAPI}"
852 + die "EAPI=\"${EAPI}\" is not supported yet"
853 ;;
854 esac
855
856 -# exports must be ALWAYS after inherit
857 -EXPORT_FUNCTIONS ${GST_UGLY_EXPORTED_FUNCTIONS}
858 -
859 -# Ensure GST_ORC is set to a default.
860 -GST_ORC=${GST_ORC:-"no"}
861 -if [[ ${GST_ORC} == "yes" ]]; then
862 - IUSE="+orc"
863 -fi
864 -
865 -#SRC_URI="mirror://gnome/sources/gst-plugins/${PV_MAJ_MIN}/${MY_P}.tar.bz2"
866 -SRC_URI="http://gstreamer.freedesktop.org/src/gst-plugins-ugly/${MY_P}.tar.bz2"
867 -
868 -S=${WORKDIR}/${MY_P}
869 -
870 -if [[ ${GST_ORC} == "yes" ]]; then
871 - RDEPEND="orc? ( >=dev-lang/orc-0.4.6 )"
872 - DEPEND="${RDEPEND}"
873 -fi
874 -
875 -# added to remove circular deps
876 -# 6/2/2006 - zaheerm
877 -if [ "${PN}" != "${MY_PN}" ]; then
878 -RDEPEND="${RDEPEND}
879 - =media-libs/gst-plugins-base-0.10*"
880 -DEPEND="${RDEPEND}
881 - >=sys-apps/sed-4
882 - virtual/pkgconfig"
883 -
884 -RESTRICT=test
885 -fi
886 -
887 -###
888 -# public functions
889 -###
890 -
891 -gst-plugins-ugly_src_configure() {
892 -
893 - # disable any external plugin besides the plugin we want
894 - local plugin gst_conf gst_orc_conf
895 -
896 - einfo "Configuring to build ${GST_PLUGINS_BUILD} plugin(s) ..."
897 -
898 - for plugin in ${my_gst_plugins_ugly}; do
899 - gst_conf="${gst_conf} --disable-${plugin} "
900 - done
901 -
902 - for plugin in ${GST_PLUGINS_BUILD}; do
903 - gst_conf="${gst_conf} --enable-${plugin} "
904 - done
905 -
906 - gst_orc_conf="--disable-orc"
907 - if [[ ${GST_ORC} == "yes" ]]; then
908 - gst_orc_conf="$(use_enable orc)"
909 - fi
910 -
911 - cd ${S}
912 - econf ${gst_orc_conf} ${@} --with-package-name="Gentoo GStreamer Ebuild" --with-package-origin="http://www.gentoo.org" ${gst_conf} || die "./configure failure"
913 -
914 -}
915 -
916 -###
917 -# public inheritable functions
918 -###
919 -
920 -gst-plugins-ugly_src_unpack() {
921 -
922 -# local makefiles
923 -
924 - unpack ${A}
925 -
926 - # Link with the syswide installed gst-libs if needed
927 -# gst-plugins10_find_plugin_dir
928 -# cd ${S}
929 -
930 - # Remove generation of any other Makefiles except the plugin's Makefile
931 -# if [ -d "${S}/sys/${GST_PLUGINS_BUILD_DIR}" ]; then
932 -# makefiles="Makefile sys/Makefile sys/${GST_PLUGINS_BUILD_DIR}/Makefile"
933 -# elif [ -d "${S}/ext/${GST_PLUGINS_BUILD_DIR}" ]; then
934 -# makefiles="Makefile ext/Makefile ext/${GST_PLUGINS_BUILD_DIR}/Makefile"
935 -# fi
936 -# sed -e "s:ac_config_files=.*:ac_config_files='${makefiles}':" \
937 -# -i ${S}/configure
938 -
939 -}
940 -
941 -gst-plugins-ugly_src_compile() {
942 -
943 - gst-plugins-ugly_src_configure ${@}
944 -
945 - gst-plugins10_find_plugin_dir
946 - emake || die "compile failure"
947 -
948 -}
949 -
950 -gst-plugins-ugly_src_install() {
951 -
952 - gst-plugins10_find_plugin_dir
953 - einstall || die
954 -
955 - [[ -e README ]] && dodoc README
956 -}
957
958
959
960 1.46 eclass/gst-plugins-bad.eclass
961
962 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/gst-plugins-bad.eclass?rev=1.46&view=markup
963 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/gst-plugins-bad.eclass?rev=1.46&content-type=text/plain
964 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/gst-plugins-bad.eclass?r1=1.45&r2=1.46
965
966 Index: gst-plugins-bad.eclass
967 ===================================================================
968 RCS file: /var/cvsroot/gentoo-x86/eclass/gst-plugins-bad.eclass,v
969 retrieving revision 1.45
970 retrieving revision 1.46
971 diff -u -r1.45 -r1.46
972 --- gst-plugins-bad.eclass 27 Sep 2012 16:35:41 -0000 1.45
973 +++ gst-plugins-bad.eclass 2 Dec 2012 17:16:20 -0000 1.46
974 @@ -1,155 +1,43 @@
975 # Copyright 1999-2012 Gentoo Foundation
976 # Distributed under the terms of the GNU General Public License v2
977 -# $Header: /var/cvsroot/gentoo-x86/eclass/gst-plugins-bad.eclass,v 1.45 2012/09/27 16:35:41 axs Exp $
978 +# $Header: /var/cvsroot/gentoo-x86/eclass/gst-plugins-bad.eclass,v 1.46 2012/12/02 17:16:20 eva Exp $
979
980 -#
981 -# Original Author: Saleem Abdulrasool <compnerd@g.o>
982 -# Based on the work of foser <foser@g.o> and zaheerm <zaheerm@g.o>
983 -# Purpose: This elcass is designed to help package external gst-plugins per
984 -# plugin rather than in a single package.
985 -#
986 +# @ECLASS: gst-plugins10-bad.eclass
987 +# @MAINTAINER:
988 +# gstreamer@g.o
989 +# @AUTHOR:
990 +# Gilles Dartiguelongue <eva@g.o>
991 +# Saleem Abdulrasool <compnerd@g.o>
992 +# foser <foser@g.o>
993 +# zaheerm <zaheerm@g.o>
994 +# @BLURB: Manages build for invididual ebuild for gst-plugins-bad.
995 +# @DESCRIPTION:
996 +# See gst-plugins10.eclass documentation.
997
998 -inherit eutils multilib versionator gst-plugins10
999 +GST_ORG_MODULE="gst-plugins-bad"
1000 +
1001 +inherit eutils gst-plugins10
1002
1003 -GSTBAD_EXPF="src_unpack src_compile src_install"
1004 case "${EAPI:-0}" in
1005 - 2|3|4|5) GSTBAD_EXPF+=" src_prepare src_configure" ;;
1006 - 0|1) ;;
1007 - *) die "EAPI=\"${EAPI}\" is not supported yet" ;;
1008 + 1|2|3|4|5)
1009 + ;;
1010 + 0)
1011 + die "EAPI=\"${EAPI}\" is not supported anymore"
1012 + ;;
1013 + *)
1014 + die "EAPI=\"${EAPI}\" is not supported yet"
1015 + ;;
1016 esac
1017
1018
1019 -EXPORT_FUNCTIONS ${GSTBAD_EXPF}
1020 -
1021 -# This list is current for gst-plugins-bad-0.10.21.
1022 -my_gst_plugins_bad="directsound directdraw osx_video quicktime vcd
1023 -assrender amrwb apexsink bz2 cdaudio celt cog dc1394 directfb dirac dts divx
1024 -faac faad fbdev flite gsm jp2k kate ladspa lv2 libmms
1025 -modplug mimic mpeg2enc mplex musepack musicbrainz mythtv nas neon ofa rsvg
1026 -timidity wildmidi sdl sdltest sndfile soundtouch spc gme swfdec xvid
1027 -dvb wininet acm vdpau schro zbar resindvd vp8"
1028 -
1029 -# When adding conditionals like below, be careful about having leading spaces
1030 -
1031 -# Changes in 0.10.22:
1032 -# New curlsink element in a new curl plugin
1033 -# New Blackmagic Decklink source and sink
1034 -# New Linear Systems SDI plugin
1035 -if version_is_at_least "0.10.22"; then
1036 - my_gst_plugins_bad+=" curl decklink linsys"
1037 -fi
1038 -
1039 -# Unused ancient theora decoder, better one in -base long ago
1040 -if ! version_is_at_least "0.10.22"; then
1041 - my_gst_plugins_bad+=" theoradec"
1042 -fi
1043 -
1044 -# Changes in 0.10.21:
1045 -# New opencv and apple_media plugins
1046 -if version_is_at_least "0.10.21"; then
1047 - my_gst_plugins_bad+=" opencv apple_media"
1048 -fi
1049 -
1050 -# exif for a specific jifmux tests purpose only.
1051 -# Made automagic in 0.10.22, which is fine as a non-installed test
1052 -if [ ${PV} == "0.10.21" ]; then
1053 - my_gst_plugins_bad+=" exif"
1054 -fi
1055 -
1056 -# jack moved to -good, metadata removed (functionality in base classes)
1057 -# alsaspdif gone (gst-plugins-alsa from -base can do spdif on its own long ago)
1058 -if ! version_is_at_least "0.10.21"; then
1059 - my_gst_plugins_bad+=" jack metadata alsa"
1060 -fi
1061 -
1062 -# Changes in 0.10.20:
1063 -# New split plugins rtmp, gsettings and shm
1064 -if version_is_at_least "0.10.20"; then
1065 - my_gst_plugins_bad+=" rtmp gsettings shm"
1066 -fi
1067 -
1068 -MY_PN="gst-plugins-bad"
1069 -MY_P=${MY_PN}-${PV}
1070 -
1071 -SRC_URI="http://gstreamer.freedesktop.org/src/gst-plugins-bad/${MY_P}.tar.bz2"
1072 -
1073 -# added to remove circular deps
1074 -# 6/2/2006 - zaheerm
1075 -if [ "${PN}" != "${MY_PN}" ]; then
1076 -RDEPEND="=media-libs/gstreamer-0.10*
1077 - =media-libs/gst-plugins-base-0.10*
1078 - >=dev-libs/glib-2.6"
1079 -DEPEND="${RDEPEND}
1080 - sys-apps/sed
1081 - virtual/pkgconfig
1082 - sys-devel/gettext"
1083 -
1084 +if [[ ${PN} != ${GST_ORG_MODULE} ]]; then
1085 # -bad-0.10.20 uses orc optionally instead of liboil unconditionally.
1086 -# While <0.10.20 configure always check for liboil, it is used only by non-split
1087 -# plugins in gst/ (legacyresample and mpegdemux), so we only builddep for all
1088 -# old packages, and have a RDEPEND in old versions of media-libs/gst-plugins-bad
1089 -if ! version_is_at_least "0.10.20"; then
1090 -DEPEND="${DEPEND} >=dev-libs/liboil-0.3.8"
1091 -fi
1092 -
1093 -RESTRICT=test
1094 +# While <0.10.20 configure always check for liboil, it is used only by
1095 +# non-split plugins in gst/ (legacyresample and mpegdemux), so we only
1096 +# builddep for all old packages, and have a RDEPEND in old versions of
1097 +# media-libs/gst-plugins-bad
1098 + if [[ ${SLOT} = "0.10" ]] && ! version_is_at_least "0.10.20"; then
1099 + DEPEND="${DEPEND} >=dev-libs/liboil-0.3.8"
1100 + fi
1101 fi
1102 -S=${WORKDIR}/${MY_P}
1103 -
1104 -gst-plugins-bad_src_unpack() {
1105 -# local makefiles
1106 -
1107 - unpack ${A}
1108 - has src_prepare ${GSTBAD_EXPF} || gst-plugins-bad_src_prepare
1109 -}
1110 -
1111 -gst-plugins-bad_src_prepare() {
1112 - # Link with the syswide installed gst-libs if needed
1113 - gst-plugins10_find_plugin_dir
1114 - sed -e "s:\$(top_builddir)/gst-libs/gst/interfaces/libgstphotography:${ROOT}/usr/$(get_libdir)/libgstphotography:" \
1115 - -e "s:\$(top_builddir)/gst-libs/gst/signalprocessor/libgstsignalprocessor:${ROOT}/usr/$(get_libdir)/libgstsignalprocessor:" \
1116 - -e "s:\$(top_builddir)/gst-libs/gst/video/libgstbasevideo:${ROOT}/usr/$(get_libdir)/libgstbasevideo:" \
1117 - -e "s:\$(top_builddir)/gst-libs/gst/basecamerabinsrc/libgstbasecamerabinsrc:${ROOT}/usr/$(get_libdir)/libgstbasecamerabinsrc:" \
1118 - -i Makefile.in
1119 -
1120 - # Remove generation of any other Makefiles except the plugin's Makefile
1121 -# if [[ -d "${S}/sys/${GST_PLUGINS_BUILD_DIR}" ]] ; then
1122 -# makefiles="Makefile sys/Makefile sys/${GST_PLUGINS_BUILD_DIR}/Makefile"
1123 -# elif [[ -d "${S}/ext/${GST_PLUGINS_BUILD_DIR}" ]] ; then
1124 -# makefiles="Makefile ext/Makefile ext/${GST_PLUGINS_BUILD_DIR}/Makefile"
1125 -# fi
1126 -
1127 -# sed -e "s:ac_config_files=.*:ac_config_files='${makefiles}':" \
1128 -# -i ${S}/configure
1129 -}
1130 -
1131 -gst-plugins-bad_src_configure() {
1132 - local plugin gst_conf
1133 -
1134 - einfo "Configuring to build ${GST_PLUGINS_BUILD} plugin(s) ..."
1135 -
1136 - for plugin in ${my_gst_plugins_bad} ; do
1137 - gst_conf+=" --disable-${plugin}"
1138 - done
1139 -
1140 - for plugin in ${GST_PLUGINS_BUILD} ; do
1141 - gst_conf+=" --enable-${plugin}"
1142 - done
1143 -
1144 - cd ${S}
1145 - econf ${@} --with-package-name="Gentoo GStreamer Ebuild" --with-package-origin="http://www.gentoo.org" ${gst_conf}
1146 -}
1147 -
1148 -gst-plugins-bad_src_compile() {
1149 - has src_configure ${GSTBAD_EXPF} || gst-plugins-bad_src_configure ${@}
1150 -
1151 - gst-plugins10_find_plugin_dir
1152 - emake || die "compile failure"
1153 -}
1154 -
1155 -gst-plugins-bad_src_install() {
1156 - gst-plugins10_find_plugin_dir
1157 - einstall || die "install failed"
1158
1159 - [[ -e README ]] && dodoc README
1160 -}