You are not logged in.
the ogre package is currently in the AUR
im wanting to update the pkg to work post-libtool slay, and also update to 1.0.6
the ogre build requires libtool, and since libtool is quite dead.. i need some help building it..
if i run the required
aclocal
./bootstrap
it complains that automake is the wrong version (asks for 1.7 when i have 1.9) and fails
if i dont run those two lines, ogre compiles, but the render systems are missing (ie, xxx/lib/OGRE is completely empty)
PKGBUILD
#contributor: Adam Griffiths <adam_griffithsAATTdart.net.au>
pkgname=ogre
pkgver=1.0.6
pkgrel=1
pkgdesc="ogre3d (Object-oriented Graphics Rendering Engine)"
url="http://www.ogre3d.org/"
license="LGPL"
depends=('cgcompiler' 'devil' 'zziplib' 'freetype2')
makedepends=('sed')
source=('http://dl.sourceforge.net/sourceforge/ogre/ogre-linux_osx-v1-0-6.tar.bz2')
md5sums=('49d75f22a5893bdab31367c069b9b99b')
build()
{
cd $startdir/src/ogrenew
# aclocal
# ./bootstrap
# kill libtool
find $startdir/pkg -name '*.la' -exec rm {} ;
# for GLX support
./configure --prefix=/opt/ogre --with-gl-support=GLX --with-platform=GLX
make || return 1
make prefix=$startdir/pkg/opt/ogre install
# Copy the sample code and meshes across
cp -R $startdir/src/ogrenew/Samples $startdir/pkg/opt/ogre/
chgrp users $startdir/pkg/opt/ogre/Samples -R
chmod 775 $startdir/pkg/opt/ogre/Samples -R
# Update the plugin.cfg file paths
sed -i "sPluginFolder=/usr/local/lib/OGREPluginFolder=/opt/ogre/lib/OGRE/\" $startdir/pkg/opt/ogre/Samples/Common/bin/plugins.cfg
# Create a reference to our pkgconfig file
mkdir -p $startdir/pkg/etc/profile.d
echo "export PATH=$PATH:/opt/ogre/bin" > $startdir/pkg/etc/profile.d/ogre.sh
echo "export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/opt/ogre/lib/pkgconfig" >> $startdir/pkg/etc/profile.d/ogre.sh
chmod 755 $startdir/pkg/etc/profile.d/ogre.sh
# kill libtool
find $startdir/pkg -name '*.la' -exec rm {} ;
}
im not sure if i should be killing the libtools before or after the compile.
So ive put in both.
It works, but the render systems cant find their required .la files, so they dont succeed.
maybe im doing something stupid.. but if anyone knows how i can update this package id be most appreciative.
thanks.
Offline
anyone.....?
Offline
libtool slay should be done after compiling.
that said, some packages still need some .la files.
I'll take a look at your package this evening.
Offline
It sounds to me like you should just leave the .la files and just put a comment into your PKGBUILD to that effect.
v/r
Suds
Offline
yeah, so it errors on me on compiling Really have no time to figure it out.
Anyway, I would, as per sudman1 comments just leave the .la files in, as obvious from your comments they are needed for ogre to function correct. Just remember they are still needed sometimes.
Offline
it seems to still have trouble even _with_ the la files.
but you've atleast confirmed what i thought.
when i get the time ill tinker with it some more..
thanks for the help
Offline