/[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.5 Revision 1.17
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-good.eclass,v 1.5 2006/02/27 11:11:22 zaheerm Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/gst-plugins-good.eclass,v 1.17 2009/03/30 04:24:15 tester 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#
24MY_PN=gst-plugins-good 24MY_PN=gst-plugins-good
25MY_P=${MY_PN}-${PV} 25MY_P=${MY_PN}-${PV}
26# All relevant configure options for gst-plugins 26# All relevant configure options for gst-plugins
27# need a better way to extract these 27# need a better way to extract these
28# gst-plugins-base 0.9 28# gst-plugins-base 0.9
29
30# This list is current to gst-plugins-good-0.10.6
29my_gst_plugins_good="gconf gconftool oss aalib aalibtest cairo cdio esd \ 31my_gst_plugins_good="gconf gconftool oss aalib aalibtest cairo cdio esd esdtest
30 esdtest flac jpeg ladspa libcaca libdv libpng dv1394 shout2 shout2test \ 32flac jpeg ladspa libcaca libdv libpng dv1394 shout2 shout2test speex annodex hal
31 speex" 33x taglib gdk_pixbuf gst_v4l2 sunaudio xshm xvideo zlib wavpack soup pulse bz2"
32 34
33#SRC_URI="mirror://gnome/sources/gst-plugins/${PV_MAJ_MIN}/${MY_P}.tar.bz2" 35#SRC_URI="mirror://gnome/sources/gst-plugins/${PV_MAJ_MIN}/${MY_P}.tar.bz2"
34SRC_URI="http://gstreamer.freedesktop.org/src/gst-plugins-good/${MY_P}.tar.bz2" 36SRC_URI="http://gstreamer.freedesktop.org/src/gst-plugins-good/${MY_P}.tar.bz2"
35 37
36S=${WORKDIR}/${MY_P} 38S=${WORKDIR}/${MY_P}
37# added to remove circular deps 39# added to remove circular deps
38# 6/2/2006 - zaheerm 40# 6/2/2006 - zaheerm
39if [ "${PN}" != "${MY_PN}" ]; then 41if [ "${PN}" != "${MY_PN}" ]; then
40RDEPEND="=media-libs/gst-plugins-base-0.10*" 42RDEPEND="=media-libs/gst-plugins-base-0.10*"
41DEPEND="${RDEPEND} 43DEPEND="${RDEPEND}
42 >=sys-apps/sed-4" 44 >=sys-apps/sed-4
45 dev-util/pkgconfig"
43fi 46fi
44 47
45### 48###
46# public functions 49# public functions
47### 50###
62 for plugin in ${GST_PLUGINS_BUILD}; do 65 for plugin in ${GST_PLUGINS_BUILD}; do
63 gst_conf="${gst_conf} --enable-${plugin} " 66 gst_conf="${gst_conf} --enable-${plugin} "
64 done 67 done
65 68
66 cd ${S} 69 cd ${S}
67 econf ${@} ${gst_conf} || die "./configure failure" 70 econf ${@} --with-package-name="Gentoo GStreamer Ebuild" --with-package-origin="http://www.gentoo.org" ${gst_conf} || die "./configure failure"
68 71
69} 72}
70 73
71### 74###
72# public inheritable functions 75# public inheritable functions
73### 76###
74 77
75gst-plugins-good_src_unpack() { 78gst-plugins-good_src_unpack() {
76 79
77 local makefiles 80# local makefiles
78 81
79 unpack ${A} 82 unpack ${A}
80 83
81 # Link with the syswide installed gst-libs if needed 84 # Link with the syswide installed gst-libs if needed
82 gst-plugins10_find_plugin_dir 85# gst-plugins10_find_plugin_dir
83 cd ${S} 86# cd ${S}
84 87
85 # Remove generation of any other Makefiles except the plugin's Makefile 88 # Remove generation of any other Makefiles except the plugin's Makefile
86 if [ -d "${S}/sys/${GST_PLUGINS_BUILD_DIR}" ]; then 89# if [ -d "${S}/sys/${GST_PLUGINS_BUILD_DIR}" ]; then
87 makefiles="Makefile sys/Makefile sys/${GST_PLUGINS_BUILD_DIR}/Makefile" 90# makefiles="Makefile sys/Makefile sys/${GST_PLUGINS_BUILD_DIR}/Makefile"
88 elif [ -d "${S}/ext/${GST_PLUGINS_BUILD_DIR}" ]; then 91# elif [ -d "${S}/ext/${GST_PLUGINS_BUILD_DIR}" ]; then
89 makefiles="Makefile ext/Makefile ext/${GST_PLUGINS_BUILD_DIR}/Makefile" 92# makefiles="Makefile ext/Makefile ext/${GST_PLUGINS_BUILD_DIR}/Makefile"
90 fi 93# fi
91 sed -e "s:ac_config_files=.*:ac_config_files='${makefiles}':" \ 94# sed -e "s:ac_config_files=.*:ac_config_files='${makefiles}':" \
92 -i ${S}/configure 95# -i ${S}/configure
93 96
94} 97}
95 98
96gst-plugins-good_src_compile() { 99gst-plugins-good_src_compile() {
97 100
105gst-plugins-good_src_install() { 108gst-plugins-good_src_install() {
106 109
107 gst-plugins10_find_plugin_dir 110 gst-plugins10_find_plugin_dir
108 einstall || die 111 einstall || die
109 112
110 dodoc README 113 [[ -e README ]] && dodoc README
111} 114}
112 115
113EXPORT_FUNCTIONS src_unpack src_compile src_install 116EXPORT_FUNCTIONS src_unpack src_compile src_install

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

  ViewVC Help
Powered by ViewVC 1.1.20