98 lines
3.8 KiB
Bash
Executable file
98 lines
3.8 KiB
Bash
Executable file
#!/bin/sh
|
|
#-------------------------------------------------------------------------------
|
|
# Copyright (c) 2004 Media Development Loan Fund
|
|
#
|
|
# This file is part of the LiveSupport project.
|
|
# http://livesupport.campware.org/
|
|
# To report bugs, send an e-mail to bugs@campware.org
|
|
#
|
|
# LiveSupport is free software; you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation; either version 2 of the License, or
|
|
# (at your option) any later version.
|
|
#
|
|
# LiveSupport is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with LiveSupport; if not, write to the Free Software
|
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
#
|
|
#
|
|
# Author : $Author: maroy $
|
|
# Version : $Revision: 1.10 $
|
|
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/tools/gstreamer/gstreamer-0.8.10/bin/Attic/install.sh,v $
|
|
#-------------------------------------------------------------------------------
|
|
#-------------------------------------------------------------------------------
|
|
# Run this script to install gstreamer into the development system usr
|
|
# environment.
|
|
# To read more about gstreamer, see http://gstreamer.freedesktop.org/
|
|
#-------------------------------------------------------------------------------
|
|
product=gstreamer-0.8.10
|
|
plugins=gst-plugins-0.8.9
|
|
|
|
reldir=`dirname $0`/..
|
|
basedir=`cd ${reldir}; pwd;`
|
|
installdir=`cd ${basedir}/../../../usr; pwd;`
|
|
tmpdir=${basedir}/tmp
|
|
etcdir=${basedir}/etc
|
|
gstreamer_tar=${basedir}/src/${product}.tar.bz2
|
|
plugins_tar=${basedir}/src/${plugins}.tar.bz2
|
|
pkg_config_path=${installdir}/lib/pkgconfig
|
|
|
|
export PATH=${installdir}/bin:$PATH
|
|
export LD_LIBRARY_PATH=${installdir}/lib
|
|
export PKG_CONFIG_PATH=${pkg_config_path}
|
|
|
|
export LDFLAGS="-L${installdir}/lib"
|
|
export CPPFLAGS="-I${installdir}/install"
|
|
|
|
mkdir -p ${tmpdir}
|
|
|
|
echo "installing ${product} from ${basedir} to ${installdir}"
|
|
|
|
cd ${tmpdir}
|
|
tar xfj ${gstreamer_tar}
|
|
cd ${product}
|
|
./configure --prefix=${installdir} \
|
|
--with-pkg-config-path=${pkg_config_path}
|
|
make install || exit 1
|
|
|
|
|
|
echo "installing ${plugins} from ${basedir} to ${installdir}"
|
|
|
|
cd ${tmpdir}
|
|
tar xfj ${plugins_tar}
|
|
cd ${plugins}
|
|
# see bug report at http://bugzilla.gnome.org/show_bug.cgi?id=305658
|
|
# for details on the following patch
|
|
patch -p1 < ${etcdir}/adder-fix.diff
|
|
# see bug report at http://bugzilla.gnome.org/show_bug.cgi?id=309218
|
|
# for details on the following patch
|
|
patch -p1 < ${etcdir}/adder-duration-fix.patch
|
|
# see bug report at http://bugzilla.gnome.org/show_bug.cgi?id=308167
|
|
# for details on the following patch
|
|
patch -p1 < ${etcdir}/switch-fix.diff
|
|
# see bug report at http://bugzilla.gnome.org/show_bug.cgi?id=308619
|
|
# for details on the following patch
|
|
patch -p1 < ${etcdir}/id3demuxbin-pad-free-fix.patch
|
|
# see bug report at http://bugzilla.gnome.org/show_bug.cgi?id=308663
|
|
# for details on the following patch
|
|
patch -p1 < ${etcdir}/typefind-smil.patch
|
|
# --disable-spc is a workaround for gst-plugins-0.8.9, as some APU.c file
|
|
# is missing from there. remove this when later versions come around
|
|
# --disable-gconf --disable-gconftool is here because libgconf will refer
|
|
# to the system libgobject, which might conflict with our version,
|
|
# resulting in missing linking symbols
|
|
./configure --disable-spc \
|
|
--disable-gconf --disable-gconftool \
|
|
--prefix=${installdir} \
|
|
--with-pkg-config-path=${pkg_config_path}
|
|
make install || exit 1
|
|
|
|
|
|
cd ${basedir}
|
|
rm -rf tmp
|
|
|