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

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

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

Revision 1.17 Revision 1.18
1# Copyright 1999-2004 Gentoo Foundation 1# Copyright 1999-2004 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-base.eclass,v 1.17 2010/07/28 05:17:58 leio Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/gst-plugins-base.eclass,v 1.18 2010/08/12 10:53:57 pva Exp $
4 4
5# Author : foser <foser@gentoo.org> 5# Author : foser <foser@gentoo.org>
6 6
7# gst-plugins eclass 7# gst-plugins 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 gst-plugins10 17inherit eutils gst-plugins10
18 18
19GST_EXPF="src_unpack src_compile src_install"
20case ${EAPI:-0} in
21 2|3) GST_EXPF="${GST_EXPF} src_prepare src_configure" ;;
22 1|0) ;;
23 *) die "Unknown EAPI" ;;
24esac
25EXPORT_FUNCTIONS ${GST_EXPF}
19 26
20### 27###
21# variable declarations 28# variable declarations
22### 29###
23 30
63 70
64 for plugin in ${GST_PLUGINS_BUILD}; do 71 for plugin in ${GST_PLUGINS_BUILD}; do
65 gst_conf="${gst_conf} --enable-${plugin} " 72 gst_conf="${gst_conf} --enable-${plugin} "
66 done 73 done
67 74
68 cd ${S} 75 cd "${S}"
69 econf ${@} --with-package-name="Gentoo GStreamer Ebuild" --with-package-origin="http://www.gentoo.org" ${gst_conf} || die "./configure failure" 76 econf ${@} --with-package-name="Gentoo GStreamer Ebuild" --with-package-origin="http://www.gentoo.org" ${gst_conf}
70 77
71} 78}
72 79
73### 80###
74# public inheritable functions 81# public inheritable functions
75### 82###
76 83
77gst-plugins-base_src_unpack() { 84gst-plugins-base_src_unpack() {
78 85
79# local makefiles 86 unpack ${A}
80 87
81 unpack ${A} 88 cd "${S}"
89 has src_prepare ${GST_EXPF} || gst-plugins-base_src_prepare
90
91}
92
93gst-plugins-base_src_prepare() {
82 94
83 # Link with the syswide installed gst-libs if needed 95 # Link with the syswide installed gst-libs if needed
84 gst-plugins10_find_plugin_dir 96 gst-plugins10_find_plugin_dir
85 sed -e "s:\$(top_builddir)/gst-libs/gst/interfaces/libgstinterfaces:${ROOT}/usr/$(get_libdir)/libgstinterfaces:" \ 97 sed -e "s:\$(top_builddir)/gst-libs/gst/interfaces/libgstinterfaces:${ROOT}/usr/$(get_libdir)/libgstinterfaces:" \
86 -e "s:\${top_builddir}/gst-libs/gst/interfaces/libgstinterfaces:${ROOT}/usr/$(get_libdir)/libgstinterfaces:" \ 98 -e "s:\${top_builddir}/gst-libs/gst/interfaces/libgstinterfaces:${ROOT}/usr/$(get_libdir)/libgstinterfaces:" \
110# sed -e "s:ac_config_files=.*:ac_config_files='${makefiles}':" \ 122# sed -e "s:ac_config_files=.*:ac_config_files='${makefiles}':" \
111# -i ${S}/configure 123# -i ${S}/configure
112 124
113} 125}
114 126
127
128
115gst-plugins-base_src_compile() { 129gst-plugins-base_src_compile() {
116 130
117 gst-plugins-base_src_configure ${@} 131 has src_configure ${GST_EXPF} || gst-plugins-base_src_configure ${@}
118
119 gst-plugins10_find_plugin_dir 132 gst-plugins10_find_plugin_dir
120 emake || die "compile failure" 133 emake || die "compile failure"
121 134
122} 135}
123 136
126 gst-plugins10_find_plugin_dir 139 gst-plugins10_find_plugin_dir
127 einstall || die 140 einstall || die
128 141
129 [[ -e README ]] && dodoc README 142 [[ -e README ]] && dodoc README
130} 143}
131
132
133EXPORT_FUNCTIONS src_unpack src_compile src_install

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18

  ViewVC Help
Powered by ViewVC 1.1.20