Revision: 380
http://python-ogre.svn.sourceforge.net/python-ogre/?rev=380&view=rev
Author: andy_miller
Date: 2007-09-17 00:10:37 -0700 (Mon, 17 Sep 2007)
Log Message:
-----------
Linux Shell Scripts -- Work in Progress
Added Paths:
-----------
trunk/python-ogre/scripts/00-PreReqs.sh
trunk/python-ogre/scripts/01-RetrieveSource.sh
trunk/python-ogre/scripts/02-ExtractAndPatch.sh
trunk/python-ogre/scripts/03-BuildBaseLibs.sh
trunk/python-ogre/scripts/04-BuildAdditionalLibs.sh
trunk/python-ogre/scripts/05-BuildTools.sh
trunk/python-ogre/scripts/06-GenerateCode.sh
trunk/python-ogre/scripts/07-BuildModules.sh
trunk/python-ogre/scripts/config.sh
trunk/python-ogre/scripts/master.sh
trunk/python-ogre/scripts/ogre_cvs2.sh
trunk/python-ogre/scripts/setup.sh
Added: trunk/python-ogre/scripts/00-PreReqs.sh
===================================================================
--- trunk/python-ogre/scripts/00-PreReqs.sh (rev 0)
+++ trunk/python-ogre/scripts/00-PreReqs.sh 2007-09-17 07:10:37 UTC (rev 380)
@@ -0,0 +1,6 @@
+#!/bin/bash
+# Part of the Python-Ogre installation
+sudo apt-get install g++ libfreetype6-dev libpcre3-dev autoconf automake1.9 libgl1-mesa-dev libx11-dev \
+libglut3-dev libtool libxaw7-dev libxxf86vm-dev \
+libxrandr-dev cvs subversion libxt-dev libexpat1-dev python python-dev \
+python-celementtree libglew-dev libzzip-dev scons
Property changes on: trunk/python-ogre/scripts/00-PreReqs.sh
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/python-ogre/scripts/01-RetrieveSource.sh
===================================================================
--- trunk/python-ogre/scripts/01-RetrieveSource.sh (rev 0)
+++ trunk/python-ogre/scripts/01-RetrieveSource.sh 2007-09-17 07:10:37 UTC (rev 380)
@@ -0,0 +1,51 @@
+#!/bin/bash
+# Part of the Python-Ogre installation
+
+# master config setup
+source ./config.sh
+
+echo "Retrieving sources"
+#
+# Get all sources
+#
+pushd $DOWNLOADS
+echo " -- Getting bundles"
+$WGET http://developer.download.nvidia.com/cg/Cg_1.5/1.5.0/0022/Cg-1.5_Aug2007_x86.tar.gz
+$WGET http://www.cmake.org/files/v2.4/cmake-2.4.6-Linux-i386.tar.gz
+$WGET http://prdownloads.sourceforge.net/freeimage/FreeImage393.zip
+$WGET http://prdownloads.sourceforge.net/crayzedsgui/CEGUI-0.5.0b.tar.gz
+$WGET http://prdownloads.sourceforge.net/wgois/ois-1.0RC1.tar.gz
+$WGET http://prdownloads.sourceforge.net/boost/boost-jam-3.1.13-1-linuxx86.tgz
+$WGET http://prdownloads.sourceforge.net/scons/scons-0.96.96.tar.gz
+$WGET http://prdownloads.sourceforge.net/ogre/ogre-linux_osx-v1-4-4.tar.bz2
+$WGET http://prdownloads.sourceforge.net/opende/ode-src-0.8.zip
+$WGET http://downloads.sourceforge.net/boost/boost_1_34_0.tar.bz2
+$WGET http://www.newtondynamics.com/downloads/newtonLinux-1.53.tar.gz
+$WGET http://www.openal.org/openal_webstf/downloads/openal-0.0.8.tar.gz
+$WGET http://www.openal.org/openal_webstf/downloads/freealut-1.1.0.tar.gz
+popd
+cd $INSTALL_DIR
+echo " -- getting OgreAL"
+svn co https://ogreal.svn.sourceforge.net/svnroot/ogreal/trunk/OgreAL-Eihort OgreAL
+echo " -- getting NxOgre"
+svn co http://latest.nxogre.org/nxogre3/ NxOgre
+echo " -- getting pygccxml"
+svn co https://pygccxml.svn.sourceforge.net/svnroot/pygccxml pygccxml
+echo " -- getting python-ogre"
+svn co https://python-ogre.svn.sourceforge.net/svnroot/python-ogre/trunk/python-ogre python-ogre
+echo " -- getting quickgui"
+svn co --username anyone --password nopassword svn://www.stellarcommand.com/QuickGUI/trunk/src/ quickgui
+echo " -- getting gccxml"
+cvs -z3 -q -d :pserver:an...@ww...:/cvsroot/GCC_XML co gccxml
+echo " -- getting ogreode"
+cvs -z3 -q -d :pserver:ano...@cv...:/cvsroot/ogre co -P ogreaddons/ogreode
+echo " -- getting ogrenewt"
+cvs -z3 -q -d :pserver:ano...@cv...:/cvsroot/ogre co -P ogreaddons/ogrenewt
+echo " -- getting videoplugins"
+cvs -z3 -q -d :pserver:ano...@cv...:/cvsroot/ogre co -P ogreaddons/videoplugin
+
+echo ""
+echo "======= Sources Retrieved ======="
+echo ""
+
+
Property changes on: trunk/python-ogre/scripts/01-RetrieveSource.sh
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/python-ogre/scripts/02-ExtractAndPatch.sh
===================================================================
--- trunk/python-ogre/scripts/02-ExtractAndPatch.sh (rev 0)
+++ trunk/python-ogre/scripts/02-ExtractAndPatch.sh 2007-09-17 07:10:37 UTC (rev 380)
@@ -0,0 +1,83 @@
+#!/bin/bash
+# Part of the Python-Ogre installation
+
+# master config setup
+source ./config.sh
+
+echo " == extracting =="
+echo " -- Unpacking OGRE"
+tar jxf $DOWNLOADS/ogre-linux_osx-v1-4-4.tar.bz2
+echo " -- Unpacking Boost"
+tar jxf $DOWNLOADS/boost_1_34_0.tar.bz2
+echo " -- Unpacking CEGUI"
+tar zxf $DOWNLOADS/CEGUI-0.5.0b.tar.gz
+echo " -- Unpacking OIS"
+tar zxf $DOWNLOADS/ois-1.0RC1.tar.gz
+echo " -- Unpacking FreeImage"
+unzip -q -o $DOWNLOADS/FreeImage393.zip
+echo " -- Unpacking Newton"
+tar zxf $DOWNLOADS/newtonLinux-1.53.tar.gz
+echo " -- Unpacking ODE"
+unzip -q -o $DOWNLOADS/ode-src-0.8.zip
+
+echo " -- Unpacking CG"
+pushd $ROOT
+echo "Installing Cg"
+tar zxf $DOWNLOADS/Cg-1.5_Aug2007_x86.tar.gz
+popd
+#
+# install bjam
+#
+echo " -- Unpacking bjam"
+rm -r -f boost-jam-3.1.13-1-linuxx86
+tar -xvzf $DOWNLOADS/boost-jam-3.1.13-1-linuxx86.tgz --overwrite
+mv boost-jam-3.1.13-1-linuxx86/bjam $PREFIX/bin
+
+#
+# install cmake
+#
+echo " -- Unpacking cmake"
+tar -xvzf $DOWNLOADS/cmake-2.4.6-Linux-i386.tar.gz --overwrite
+cd cmake-2.4.6-Linux-i386
+cp * $PREFIX -r
+cd ..
+
+
+echo " -- Patching OgreOde"
+cd ogreaddons/ogreode
+patch -s -i ../../python-ogre/patch/ogreode.patch -p0
+cd $INSTALL_DIR
+echo " -- Patching OgreNewt"
+cd ogreaddons/ogrenewt
+patch -s -i ../../python-ogre/patch/ogrenewt.patch -p0
+cp SConscript OgreNewt_Main
+rm -r ./OgreNewt_Main/inc/boost
+cd $INSTALL_DIR
+
+#
+# Install Newton
+#
+echo " -- Installing Newton to OgreNewt and root"
+cp newtonSDK/sdk/Newton.h $PREFIX/include
+cp newtonSDK/sdk/*.a $PREFIX/lib
+cp newtonSDK/sdk/*.a ogreaddons/ogrenewt
+
+echo " -- Patching Boost"
+chmod -R +rw boost_1_34_0
+cp -r python-ogre/boost/* boost_1_34_0
+
+echo " -- Patching Ogre"
+patch -s -i ./python-ogre/patch/ogre.patch -p0
+
+echo " -- Patching CEGUI"
+pushd CEGUI-0.5.0
+patch -s -i ../python-ogre/patch/cegui.patch -p0
+echo "EMPTY" >>./INSTALL
+echo "EMPTY" >>./NEWS
+popd
+
+echo
+echo "== Finished Extraction and Patching =="
+echo
+
+
Property changes on: trunk/python-ogre/scripts/02-ExtractAndPatch.sh
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/python-ogre/scripts/03-BuildBaseLibs.sh
===================================================================
--- trunk/python-ogre/scripts/03-BuildBaseLibs.sh (rev 0)
+++ trunk/python-ogre/scripts/03-BuildBaseLibs.sh 2007-09-17 07:10:37 UTC (rev 380)
@@ -0,0 +1,59 @@
+#!/bin/bash
+# Part of the Python-Ogre installation
+
+# master config setup
+source ./config.sh
+
+echo " == Building base libraries == "
+#
+# Install CEGUI (Crazy Eddie's GUI)
+#
+echo " -- Building CEGUI"
+pushd CEGUI-0.5.0
+aclocal
+#patch -q -i ../python-ogre/patch/cegui.patch -p0
+#echo "EMPTY" >>./INSTALL
+#echo "EMPTY" >>./NEWS
+automake
+./configure --prefix=$PREFIX --enable-freeimage=yes --disable-samples --without-ogre-renderer
+make
+make install
+popd
+
+#
+# Install OIS (Object Oriented Input System)
+#
+echo " -- Builing OIS"
+pushd ois-1.0RC1
+./bootstrap
+./configure --prefix=$PREFIX
+make
+make install
+popd
+
+
+#
+# Install and build ODE
+#
+echo " -- Building ODE"
+pushd ode-0.8
+chmod +x autogen.sh
+./autogen.sh
+./configure --prefix=$PREFIX
+make
+make install
+popd
+
+#
+# Install Ogre (Object Oriented Graphics Rendering Engine)
+#
+echo " -- Building Ogre"
+pushd ogrenew
+./bootstrap
+./configure --prefix=$PREFIX
+make
+make install
+popd
+
+echo
+echo " ==== Finished building base libraries ===="
Property changes on: trunk/python-ogre/scripts/03-BuildBaseLibs.sh
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/python-ogre/scripts/04-BuildAdditionalLibs.sh
===================================================================
--- trunk/python-ogre/scripts/04-BuildAdditionalLibs.sh (rev 0)
+++ trunk/python-ogre/scripts/04-BuildAdditionalLibs.sh 2007-09-17 07:10:37 UTC (rev 380)
@@ -0,0 +1,30 @@
+#!/bin/bash
+# Part of the Python-Ogre installation
+
+# master config setup
+source ./config.sh
+
+echo " == Building additional libraries == "
+#
+# Install and build OgreOde
+#
+echo " -- Building Ogreode"
+pushd ogreaddons/ogreode
+chmod +x autogen.sh
+./autogen.sh
+./configure --prefix=$PREFIX
+make
+make install
+popd
+
+#
+# Install and build OgreNewt
+#
+echo " -- Building OgreNewt"
+pushd ogreaddons/ogrenewt
+scons prefix=$PREFIX boost=$PREFIX/include/boost-1_34 install
+popd
+
+#
+# OgreAl
+#
Property changes on: trunk/python-ogre/scripts/04-BuildAdditionalLibs.sh
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/python-ogre/scripts/05-BuildTools.sh
===================================================================
--- trunk/python-ogre/scripts/05-BuildTools.sh (rev 0)
+++ trunk/python-ogre/scripts/05-BuildTools.sh 2007-09-17 07:10:37 UTC (rev 380)
@@ -0,0 +1,62 @@
+#!/bin/bash
+# Part of the Python-Ogre installation
+
+# master config setup
+source ./config.sh
+
+echo " === Building Tools ==="
+
+#
+# build GCC_XML
+#
+echo " -- building GCC_XML"
+mkdir -p gccxml-build
+cd gccxml-build
+cmake ../gccxml -DCMAKE_INSTALL_PREFIX:PATH=$PREFIX
+make
+make install
+cd ..
+
+
+#
+# build and install boost
+#
+echo " -- building boost"
+cd boost_1_34_0
+./configure --with-libraries=python --prefix=$PREFIX
+cat << EOF > boost.patch
+--- Makefile 2007-05-12 12:10:17.000000000 -0300
++++ Makefile.new 2007-05-12 12:10:52.000000000 -0300
+@@ -1,6 +1,4 @@
+-BJAM=./tools/jam/src/bin.linuxx86
+-don't know how to make trie.c
+-...skipped bjam for lack of trie.c.../bjam
++BJAM=bjam
+BJAM_CONFIG=release
+PREFIX=/usr/local
+EPREFIX=/usr/local
+EOF
+patch -p0 < boost.patch
+sed -i s/'BOOST_PYTHON_MAX_ARITY 15'/'BOOST_PYTHON_MAX_ARITY 19'/ boost/python/detail/preprocessor.hpp
+make
+make install
+cd $INSTALL_DIR
+
+## Scons
+echo " -- installing SCONs"
+rm -rf scons-0.96.96
+tar -xvzf $DOWNLOADS/scons-0.96.96.tar.gz --overwrite
+cd scons-0.96.96
+python setup.py install --prefix=$PREFIX
+cd ..
+
+# py++
+echo " -- installing PY++"
+cd pygccxml/pygccxml_dev
+python setup.py install --prefix=$PREFIX
+cd ../pyplusplus_dev
+python setup.py install --prefix=$PREFIX
+cd $INSTALL_DIR
+
+echo
+echo " ==== Done building tools ===="
Property changes on: trunk/python-ogre/scripts/05-BuildTools.sh
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/python-ogre/scripts/06-GenerateCode.sh
===================================================================
--- trunk/python-ogre/scripts/06-GenerateCode.sh (rev 0)
+++ trunk/python-ogre/scripts/06-GenerateCode.sh 2007-09-17 07:10:37 UTC (rev 380)
@@ -0,0 +1,45 @@
+#!/bin/bash
+# Part of the Python-Ogre installation
+
+# master config setup
+source ./config.sh
+
+echo "=== generating code ==="
+echo ' -- creating OGRE code'
+cd python-ogre/code_generators/ogre
+python generate_code.py > build.out
+cd ..
+echo ' -- creating OGRErefapp code'
+cd ogrerefapp
+python generate_code.py > build.out
+cd ..
+#echo ' -- creating OgreAL code'
+#cd ogreal
+#python generate_code.py > build.out
+#cd ..
+echo ' -- creating quickgui code'
+cd quickgui
+python generate_code.py > build.out
+cd ..
+echo ' -- creating OIS code'
+cd ois
+python generate_code.py > build.out
+cd ..
+echo ' -- creating OGREode code'
+cd ogreode
+python generate_code.py > build.out
+cd ..
+#echo ' -- creating OGREnewt code'
+#cd ogrenewt
+#python generate_code.py > build.out
+#cd ..
+echo ' -- creating ode code'
+cd ode
+python generate_code.py > build.out
+cd ..
+echo ' -- creating CEGUI code'
+cd cegui
+python generate_code.py > build.out
+cd $INSTALL_DIR
+echo
+echo "=== done building code ==="
Property changes on: trunk/python-ogre/scripts/06-GenerateCode.sh
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/python-ogre/scripts/07-BuildModules.sh
===================================================================
--- trunk/python-ogre/scripts/07-BuildModules.sh (rev 0)
+++ trunk/python-ogre/scripts/07-BuildModules.sh 2007-09-17 07:10:37 UTC (rev 380)
@@ -0,0 +1,13 @@
+#!/bin/bash
+# Part of the Python-Ogre installation
+
+# master config setup
+source ./config.sh
+
+#
+# compile code
+#
+cd python-ogre
+scons PROJECTS=ogre,ois,quickgui,cegui,ogrerefapp
+cd ..
+
Property changes on: trunk/python-ogre/scripts/07-BuildModules.sh
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/python-ogre/scripts/config.sh
===================================================================
--- trunk/python-ogre/scripts/config.sh (rev 0)
+++ trunk/python-ogre/scripts/config.sh 2007-09-17 07:10:37 UTC (rev 380)
@@ -0,0 +1,28 @@
+INSTALL_DIR=`pwd`
+ROOT=$INSTALL_DIR/root
+PREFIX=$ROOT/usr
+DOWNLOADS=$INSTALL_DIR/downloads
+WGETARGS="-c -nc --tries=3 --random-wait"
+WGET="`which wget` $WGETARGS"
+
+TEMPFILE=`mktemp`
+cat << EOF > $TEMPFILE
+#!/usr/bin/python
+import sys
+version = sys.version.split('.')
+print "%s.%s" % (version[0], version[1])
+EOF
+PYTHONVERSION=`python $TEMPFILE`
+rm $TEMPFILE
+
+export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$PREFIX/lib/pkgconfig
+export LD_LIBRARY_PATH=$PREFIX/lib
+export CFLAGS="-I$PREFIX/include -L$PREFIX/lib"
+export CXXFLAGS=$CFLAGS
+export PATH=$PATH:$PREFIX/bin
+export PYTHONPATH=$PREFIX/lib/python$PYTHONVERSION/site-packages
+
+mkdir -p $PREFIX
+mkdir -p $PREFIX/lib
+mkdir -p $PREFIX/include
+mkdir -p $DOWNLOADS
Property changes on: trunk/python-ogre/scripts/config.sh
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/python-ogre/scripts/master.sh
===================================================================
--- trunk/python-ogre/scripts/master.sh (rev 0)
+++ trunk/python-ogre/scripts/master.sh 2007-09-17 07:10:37 UTC (rev 380)
@@ -0,0 +1,15 @@
+#!/bin/bash
+# Part of the Python-Ogre installation
+
+# Run them all :)
+source ./00-PreReqs.sh
+source ./01-RetrieveSource.sh
+source ./02-ExtractAndPatch.sh
+source ./03-BuildBaseLibs.sh
+source ./04-BuildAdditionalLibs.sh
+source ./05-BuildTools.sh
+source ./06-GenerateCode.sh
+source ./07-BuildModules.sh
+
+
+
Property changes on: trunk/python-ogre/scripts/master.sh
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/python-ogre/scripts/ogre_cvs2.sh
===================================================================
--- trunk/python-ogre/scripts/ogre_cvs2.sh (rev 0)
+++ trunk/python-ogre/scripts/ogre_cvs2.sh 2007-09-17 07:10:37 UTC (rev 380)
@@ -0,0 +1,459 @@
+#!/bin/bash
+
+# May 17th -- extend to pathc ogreode and ogrenewt, build code for both, compile ode, ogreode (not ogrenewt yet)
+# Changes late May 15th - Corrected the environment variables definitions on the setup.sh file.
+# Changes May 15th - added Ode, Newton, Ogreode - adjusted for Boost 1.34 instead of CVS version
+#
+# Copyright (C) 2007
+# Renato Cunha <re...@ta...>
+# Andy Miller
+# Konrad Kleine
+#
+# http://www.python-ogre.org
+#
+# This script is based on Andy Miller's script, which was based on Konrad Kleine's
+# one. Since there wasn't a license associated, I decided to apply this script
+# to the GPL terms.
+#
+# This program 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.
+#
+# This program 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 this program on the LICENSE file; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
+
+# sudo ldconfig ~/development/root/usr/lib
+
+##
+## This script installs all packages and libraries needed to build Python-Ogre
+## It can be run as root, but you'll be on your own. You really should
+## run it as a normal user.
+##
+## PLEASE NOTE: You might need to interact with this program by entering
+## the root password and things like that.
+##
+## Another note: Unlike this script's predecessors I am going to assume you have
+## a working build environment (with gcc, g++, svn etc.) If this is not the case,
+## please install the following packages:
+##
+# sudo apt-get install g++ libfreetype6-dev libpcre3-dev autoconf automake1.9 libgl1-mesa-dev libx11-dev \
+# libglut3-dev libtool libxaw7-dev libxxf86vm-dev \
+# libxrandr-dev cvs subversion libxt-dev libexpat1-dev python python-dev \
+# python-celementtree libglew-dev libzzip-dev scons
+##
+
+echo -e "Python-Ogre Retrieve script\n"
+echo -e "This script will retrieve and build all the necessary software for\
+ Ogre and Python-Ogre\n"
+
+if [ $UID -eq 0 ]
+then
+ echo
+ echo "It's not good practice to start this script as root!"
+ echo
+ exit 1
+fi
+
+echo "Do you want to proceed? (Y/n)"
+
+read answer
+
+if [ "$answer" == "n" ]
+then
+ exit 0
+fi
+
+INSTALL_DIR=`pwd`
+ROOT=$INSTALL_DIR/root
+PREFIX=$ROOT/usr
+DOWNLOADS=$INSTALL_DIR/downloads
+WGETARGS="-c -nc --tries=3 --random-wait"
+WGET="`which wget` $WGETARGS"
+
+CONTROLretrieve="n"
+CONTROLextract="n"
+CONTROLpatchogre="n"
+CONTROLbuildfreeimage="n"
+CONTROLbuildutils="n"
+CONTROLbuildogre="n"
+CONTROLgeneratecode="y"
+CONTROLbuildpythonogre="n"
+
+#
+# Please don't edit below this point unless you know what you are doing
+#
+
+TEMPFILE=`mktemp`
+cat << EOF > $TEMPFILE
+#!/usr/bin/python
+import sys
+version = sys.version.split('.')
+print "%s.%s" % (version[0], version[1])
+EOF
+PYTHONVERSION=`python $TEMPFILE`
+rm $TEMPFILE
+
+export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$PREFIX/lib/pkgconfig
+export LD_LIBRARY_PATH=$PREFIX/lib
+export CFLAGS="-I$PREFIX/include -L$PREFIX/lib"
+export CXXFLAGS=$CFLAGS
+export PATH=$PATH:$PREFIX/bin
+export PYTHONPATH=$PREFIX/lib/python$PYTHONVERSION/site-packages
+
+cat << EOF > setup.sh
+export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$PREFIX/lib/pkgconfig"
+export LD_LIBRARY_PATH="$PREFIX/lib"
+export CFLAGS="-I$PREFIX/include -L$PREFIX/lib"
+export CXXFLAGS="$CFLAGS"
+export PATH="$PATH:$PREFIX/bin"
+export PYTHONPATH="$PREFIX/lib/python$PYTHONVERSION/site-packages"
+EOF
+
+mkdir -p $PREFIX
+mkdir -p $PREFIX/lib
+mkdir -p $PREFIX/include
+mkdir -p $DOWNLOADS
+
+if [ "$CONTROLretrieve" == "y" ]
+then
+{
+ echo "Retrieving sources" &&\
+#
+# Get all sources
+#
+pushd $DOWNLOADS && \
+$WGET http://developer.download.nvidia.com/cg/Cg_1.5/1.5.0/0022/Cg-1.5_Aug2007_x86.tar.gz && \
+$WGET http://www.cmake.org/files/v2.4/cmake-2.4.6-Linux-i386.tar.gz && \
+$WGET http://prdownloads.sourceforge.net/freeimage/FreeImage393.zip && \
+$WGET http://prdownloads.sourceforge.net/crayzedsgui/CEGUI-0.5.0b.tar.gz && \
+$WGET http://prdownloads.sourceforge.net/wgois/ois-1.0RC1.tar.gz && \
+$WGET http://prdownloads.sourceforge.net/boost/boost-jam-3.1.13-1-linuxx86.tgz && \
+$WGET http://prdownloads.sourceforge.net/scons/scons-0.96.96.tar.gz && \
+$WGET http://prdownloads.sourceforge.net/ogre/ogre-linux_osx-v1-4-4.tar.bz2 && \
+$WGET http://prdownloads.sourceforge.net/opende/ode-src-0.8.zip && \
+$WGET http://downloads.sourceforge.net/boost/boost_1_34_0.tar.bz2 && \
+$WGET http://www.newtondynamics.com/downloads/newtonLinux-1.53.tar.gz && \
+# $WGET http://www.openal.org/openal_webstf/downloads/openal-0.0.8-1.i586.rpm &&
+$WGET http://www.openal.org/openal_webstf/downloads/openal-0.0.8.tar.gz
+# $WGET http://www.openal.org/openal_webstf/downloads/freealut-1.1.0-1.i586.rpm &&
+$WGET http://www.openal.org/openal_webstf/downloads/freealut-1.1.0.tar.gz &&\
+popd && \
+echo && \
+echo "Please just press Enter when you are asked for a password" && \
+echo && \
+svn co https://ogreal.svn.sourceforge.net/svnroot/ogreal/trunk/OgreAL-Eihort OgreAL
+svn co https://pygccxml.svn.sourceforge.net/svnroot/pygccxml pygccxml
+svn co https://python-ogre.svn.sourceforge.net/svnroot/python-ogre/trunk/python-ogre python-ogre
+svn co --username anyone --password nopassword svn://www.stellarcommand.com/QuickGUI/trunk/src/ quickgui
+#cvs -z3 -d :pserver:an...@ww...:/cvsroot/GCC_XML co gccxml
+cvs -z3 -d :pserver:ano...@cv...:/cvsroot/ogre co -P ogreaddons/ogreode
+cd ogreaddons/ogreode
+patch -i ../../python-ogre/patch/ogreode.patch -p0
+cd ../..
+cvs -z3 -d :pserver:ano...@cv...:/cvsroot/ogre co -P ogreaddons/ogrenewt
+cd ogreaddons/ogrenewt
+patch -i ../../python-ogre/patch/ogrenewt.patch -p0
+cp SConscript OgreNewt_Main
+rm -r ./OgreNewt_Main/inc/boost
+cd ../..
+cvs -z3 -d :pserver:ano...@cv...:/cvsroot/ogre co -P ogreaddons/videoplugin; }
+fi
+
+if [ "$CONTROLextract" == "y" ]
+then
+{
+echo "Unpacking OGRE"
+tar jxf $DOWNLOADS/ogre-linux_osx-v1-4-4.tar.bz2
+echo "Unpacking (and Patching) Boost"
+tar jxf $DOWNLOADS/boost_1_34_0.tar.bz2
+cp -r python-ogre/boost/* boost_1_34_0
+echo "Unpacking CEGUI"
+tar zxf $DOWNLOADS/CEGUI-0.5.0b.tar.gz
+echo "Unpacking OIS"
+tar zxf $DOWNLOADS/ois-1.0RC1.tar.gz
+echo "Unpacking FreeImage"
+unzip -o $DOWNLOADS/FreeImage393.zip
+echo "Unpacking Newton"
+tar zxf $DOWNLOADS/newtonLinux-1.53.tar.gz
+echo "Unpacking ODE"
+unzip -o $DOWNLOADS/ode-src-0.8.zip ; }
+fi
+
+if [ "$CONTROLpatchogre" == "y" ]
+then
+#
+# patch ogre etc
+#
+{ echo "Patching Ogre" &&\
+patch -i ./python-ogre/patch/ogre.patch -p0 ; }
+fi
+
+
+
+if [ "$CONTROLbuildfreeimage" == "y" ]
+then
+{
+
+#
+# Install FreeImage (For image loading in Ogre)
+#
+ pushd FreeImage
+ make
+cat << EOF > freeimage.patch
+--- Makefile.gnu 2006-12-20 15:22:08.000000000 -0200
++++ Makefile.gnu.new 2007-05-12 11:11:54.000000000 -0300
+@@ -58,11 +58,11 @@
+ \$(CC) -s -shared -Wl,-soname,\$(VERLIBNAME) -o \$@ \$(MODULES) \$(LIBRARIES)
+
+ install:
+- install -m 644 -o root -g root \$(HEADER) \$(INCDIR)
+- install -m 644 -o root -g root \$(STATICLIB) \$(INSTALLDIR)
+- install -m 755 -o root -g root \$(SHAREDLIB) \$(INSTALLDIR)
+- ln -sf \$(SHAREDLIB) \$(INSTALLDIR)/\$(VERLIBNAME)
+- ln -sf \$(VERLIBNAME) \$(INSTALLDIR)/\$(LIBNAME)
++ install -m 644 \$(HEADER) \$(DESTDIR)\$(INCDIR)
++ install -m 644 \$(STATICLIB) \$(DESTDIR)/\$(INSTALLDIR)
++ install -m 755 \$(SHAREDLIB) \$(DESTDIR)/\$(INSTALLDIR)
++ ln -sf \$(DESTDIR)/\$(SHAREDLIB) \$(DESTDIR)/\$(INSTALLDIR)/\$(VERLIBNAME)
++ ln -sf \$(DESTDIR)/\$(VERLIBNAME) \$(DESTDIR)/\$(INSTALLDIR)/\$(LIBNAME)
+ ldconfig
+
+ clean:
+EOF
+ patch -p0 < freeimage.patch
+ make DESTDIR=$ROOT install # On Freeimage's case, this is the right path
+ popd; }
+fi
+
+
+# cegui gets patched further down
+
+if [ "$CONTROLbuildogre" == "y" ]
+then
+#
+# Install Nvidia's Cg-Toolkit (Needed for shader support in Ogre)
+#
+{
+ pushd $ROOT
+ echo "Installing Cg"
+ tar zxvf $DOWNLOADS/Cg-1.5_Aug2007_x86.tar.gz
+ popd
+
+
+ #
+ # Install CEGUI (Crazy Eddie's GUI)
+ #
+ pushd CEGUI-0.5.0
+ aclocal
+ patch -i ../python-ogre/patch/cegui.patch -p0
+ echo "EMPTY" >>./INSTALL
+ echo "EMPTY" >>./NEWS
+ automake
+ ./configure --prefix=$PREFIX --enable-freeimage=yes --disable-samples --without-ogre-renderer
+ make
+ make install
+ popd
+
+ #
+ # Install OIS (Object Oriented Input System)
+ #
+ pushd ois-1.0RC1
+ ./bootstrap
+ ./configure --prefix=$PREFIX
+ make
+ make install
+ popd
+
+ #
+ # Install Newton
+ #
+ cp newtonSDK/sdk/Newton.h ogreaddons/ogrenewt/OgreNewt_Main/inc
+ cp newtonSDK/sdk/*.a ogreaddons/ogrenewt
+
+ #
+ # Install and build ODE
+ #
+ echo "Building ODE"
+ pushd ode-0.8
+ chmod +x autogen.sh
+ ./autogen.sh
+ ./configure --prefix=$PREFIX
+ make
+ make install
+ popd
+
+ #
+ # Install Ogre (Object Oriented Graphics Rendering Engine)
+ #
+ pushd ogrenew
+ ./bootstrap
+ ./configure --prefix=$PREFIX
+ make
+ make install
+ popd
+
+ #
+ # Install and build OgreOde
+ #
+ pushd ogreaddons/ogreode
+ chmod +x autogen.sh
+ ./autogen.sh
+ ./configure --prefix=$PREFIX
+ make
+ make install
+ popd ; }
+
+ #
+ # Install and build OgreNewt
+ #
+ pushd ogreaddons/ogrenewt/OgreNewt_Main/inc
+cat << EOF > newt.patch
+--- Newton.h
++++ Newton.h
+//********************************************************************
+// Newton Game dynamics
+// copyright 2000-2004
+// By Julio Jerez
+// VC: 6.0
+// One and only header file.
+//********************************************************************
+
+#ifndef NEWTON_H__736495_6495_076__INCLUDED_
+#define NEWTON_H__736495_6495_076__INCLUDED_
++#include "Ogre.h"
+
+// force all not visual studio platform to be in library form
+EOF
+ patch -p0 < newt.patch
+ popd
+
+ pushd ogreaddons/ogrenewt
+ scons prefix=$PREFIX boost=$PREFIX/include/boost-1_34 install
+ popd
+
+fi
+
+if [ "$CONTROLbuildutils" == "y" ]
+then
+ #
+ # install cmake
+ #
+ { echo && \
+ echo "Building tools" &&\
+ tar -xvzf $DOWNLOADS/cmake-2.4.6-Linux-i386.tar.gz --overwrite && \
+ cd cmake-2.4.6-Linux-i386 && \
+ cp * $PREFIX -r && \
+ cd .. && \
+
+ #
+ # build GCC_XML
+ #
+ mkdir -p gccxml-build && \
+ cd gccxml-build && \
+ cmake ../gccxml -DCMAKE_INSTALL_PREFIX:PATH=$PREFIX && \
+ make && \
+ make install && \
+ cd .. &&\
+
+ #
+ # install bjam
+ #
+ rm -r -f boost-jam-3.1.13-1-linuxx86
+ tar -xvzf $DOWNLOADS/boost-jam-3.1.13-1-linuxx86.tgz --overwrite && \
+ mv boost-jam-3.1.13-1-linuxx86/bjam $PREFIX/bin
+
+ #
+ # build and install boost
+ #
+ cd boost_1_34_0
+ ./configure --with-libraries=python --prefix=$PREFIX
+cat << EOF > boost.patch
+--- Makefile 2007-05-12 12:10:17.000000000 -0300
++++ Makefile.new 2007-05-12 12:10:52.000000000 -0300
+@@ -1,6 +1,4 @@
+-BJAM=./tools/jam/src/bin.linuxx86
+-don't know how to make trie.c
+-...skipped bjam for lack of trie.c.../bjam
++BJAM=bjam
+ BJAM_CONFIG=release
+ PREFIX=/usr/local
+ EPREFIX=/usr/local
+EOF
+ patch -p0 < boost.patch
+ sed -i s/'BOOST_PYTHON_MAX_ARITY 15'/'BOOST_PYTHON_MAX_ARITY 19'/ boost/python/detail/preprocessor.hpp
+ make
+ make install
+ cd $INSTALL_DIR
+
+ ## Scons
+ rm -rf scons-0.96.96 &&\
+ tar -xvzf $DOWNLOADS/scons-0.96.96.tar.gz --overwrite && \
+ cd scons-0.96.96 && \
+ python setup.py install --prefix=$PREFIX && \
+ cd .. &&\
+
+ # py++
+ cd pygccxml/pygccxml_dev &&\
+ python setup.py install --prefix=$PREFIX &&\
+ cd ../pyplusplus_dev &&\
+ python setup.py install --prefix=$PREFIX &&\
+ cd $INSTALL_DIR ; }
+fi
+
+
+#
+# create code
+#
+if [ "$CONTROLgeneratecode" == "y" ]
+then
+{ echo "generating code" && \
+cd python-ogre/code_generators/ogre && \
+python generate_code.py > build.out && \
+cd .. &&\
+cd ogrerefapp && \
+python generate_code.py > build.out && \
+cd .. &&\
+cd ois && \
+python generate_code.py > build.out && \
+cd .. &&\
+cd quickgui && \
+python generate_code.py > build.out && \
+cd .. &&\
+cd ogreode && \
+python generate_code.py > build.out && \
+cd .. &&\
+#cd ogrenewt && \
+#python generate_code.py > build.out && \
+#cd .. &&\
+cd ode && \
+python generate_code.py > build.out && \
+cd .. &&\
+cd cegui && \
+python generate_code.py > build.out && \
+cd $INSTALL_DIR ; }
+fi
+#
+# compile code
+#
+if [ "$CONTROLbuildpythonogre" == "y" ]
+then
+{ echo "building python-ogre" && \
+cd python-ogre &&\
+scons PROJECTS=ogre,ois,quickgui,cegui,ogrerefapp&&\
+cd .. ;}
+fi
+
+#
+# install
+#
+
+#
+# check/update ldconfig
+#
Property changes on: trunk/python-ogre/scripts/ogre_cvs2.sh
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/python-ogre/scripts/setup.sh
===================================================================
--- trunk/python-ogre/scripts/setup.sh (rev 0)
+++ trunk/python-ogre/scripts/setup.sh 2007-09-17 07:10:37 UTC (rev 380)
@@ -0,0 +1,6 @@
+export PKG_CONFIG_PATH=":/home/andy/development/root/usr/lib/pkgconfig:/home/andy/development/root/usr/lib/pkgconfig"
+export LD_LIBRARY_PATH="/home/andy/development/root/usr/lib"
+export CFLAGS="-I/home/andy/development/root/usr/include -L/home/andy/development/root/usr/lib"
+export CXXFLAGS="-I/home/andy/development/root/usr/include -L/home/andy/development/root/usr/lib"
+export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/andy/development/root/usr/bin:/home/andy/development/root/usr/bin"
+export PYTHONPATH="/home/andy/development/root/usr/lib/python2.5/site-packages"
Property changes on: trunk/python-ogre/scripts/setup.sh
___________________________________________________________________
Name: svn:executable
+ *
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|