/[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.43 Revision 1.44
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-bad.eclass,v 1.43 2012/06/02 19:16:31 zmedico Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/gst-plugins-bad.eclass,v 1.44 2012/06/20 08:49:27 scarabeus 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
12inherit eutils multilib versionator gst-plugins10 12inherit eutils multilib versionator gst-plugins10
13
14GSTBAD_EXPF="src_unpack src_compile src_install"
15case "${EAPI:-0}" in
16 2|3|4) GSTBAD_EXPF+=" src_prepare src_configure" ;;
17 0|1) ;;
18 *) die "EAPI=\"${EAPI}\" is not supported yet" ;;
19esac
20
21
22EXPORT_FUNCTIONS ${GSTBAD_EXPF}
13 23
14# This list is current for gst-plugins-bad-0.10.21. 24# This list is current for gst-plugins-bad-0.10.21.
15my_gst_plugins_bad="directsound directdraw osx_video quicktime vcd 25my_gst_plugins_bad="directsound directdraw osx_video quicktime vcd
16assrender amrwb apexsink bz2 cdaudio celt cog dc1394 directfb dirac dts divx 26assrender amrwb apexsink bz2 cdaudio celt cog dc1394 directfb dirac dts divx
17faac faad fbdev flite gsm jp2k kate ladspa lv2 libmms 27faac faad fbdev flite gsm jp2k kate ladspa lv2 libmms
88 98
89gst-plugins-bad_src_unpack() { 99gst-plugins-bad_src_unpack() {
90# local makefiles 100# local makefiles
91 101
92 unpack ${A} 102 unpack ${A}
103 has src_prepare ${GSTBAD_EXPF} || gst-plugins-bad_src_prepare
104}
93 105
106gst-plugins-bad_src_prepare() {
94 # Link with the syswide installed gst-libs if needed 107 # Link with the syswide installed gst-libs if needed
95 gst-plugins10_find_plugin_dir 108 gst-plugins10_find_plugin_dir
96 sed -e "s:\$(top_builddir)/gst-libs/gst/interfaces/libgstphotography:${ROOT}/usr/$(get_libdir)/libgstphotography:" \ 109 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:" \ 110 -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:" \ 111 -e "s:\$(top_builddir)/gst-libs/gst/video/libgstbasevideo:${ROOT}/usr/$(get_libdir)/libgstbasevideo:" \
114 local plugin gst_conf 127 local plugin gst_conf
115 128
116 einfo "Configuring to build ${GST_PLUGINS_BUILD} plugin(s) ..." 129 einfo "Configuring to build ${GST_PLUGINS_BUILD} plugin(s) ..."
117 130
118 for plugin in ${my_gst_plugins_bad} ; do 131 for plugin in ${my_gst_plugins_bad} ; do
119 gst_conf="${gst_conf} --disable-${plugin}" 132 gst_conf+=" --disable-${plugin}"
120 done 133 done
121 134
122 for plugin in ${GST_PLUGINS_BUILD} ; do 135 for plugin in ${GST_PLUGINS_BUILD} ; do
123 gst_conf="${gst_conf} --enable-${plugin}" 136 gst_conf+=" --enable-${plugin}"
124 done 137 done
125 138
126 cd ${S} 139 cd ${S}
127 econf ${@} --with-package-name="Gentoo GStreamer Ebuild" --with-package-origin="http://www.gentoo.org" ${gst_conf} || die "configure failed" 140 econf ${@} --with-package-name="Gentoo GStreamer Ebuild" --with-package-origin="http://www.gentoo.org" ${gst_conf}
128} 141}
129 142
130gst-plugins-bad_src_compile() { 143gst-plugins-bad_src_compile() {
131 gst-plugins-bad_src_configure ${@} 144 has src_configure ${GSTBAD_EXPF} || gst-plugins-bad_src_configure ${@}
132 145
133 gst-plugins10_find_plugin_dir 146 gst-plugins10_find_plugin_dir
134 emake || die "compile failure" 147 emake || die "compile failure"
135} 148}
136 149
138 gst-plugins10_find_plugin_dir 151 gst-plugins10_find_plugin_dir
139 einstall || die "install failed" 152 einstall || die "install failed"
140 153
141 [[ -e README ]] && dodoc README 154 [[ -e README ]] && dodoc README
142} 155}
143
144EXPORT_FUNCTIONS src_unpack src_compile src_install

Legend:
Removed from v.1.43  
changed lines
  Added in v.1.44

  ViewVC Help
Powered by ViewVC 1.1.20