You are not logged in.

#1 2005-12-11 07:23:13

Father
Member
From: Australia
Registered: 2004-06-01
Posts: 209

Ogre - help request post-libtool slay

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

#2 2005-12-17 06:40:04

Father
Member
From: Australia
Registered: 2004-06-01
Posts: 209

Re: Ogre - help request post-libtool slay

anyone.....?

Offline

#3 2005-12-19 11:28:07

pressh
Developer/TU
From: Netherlands
Registered: 2005-08-14
Posts: 1,719

Re: Ogre - help request post-libtool slay

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

#4 2005-12-19 11:29:15

sudman1
Member
From: Huntingdon, UK
Registered: 2005-02-18
Posts: 143

Re: Ogre - help request post-libtool slay

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

#5 2005-12-19 21:28:40

pressh
Developer/TU
From: Netherlands
Registered: 2005-08-14
Posts: 1,719

Re: Ogre - help request post-libtool slay

yeah, so it errors on me on compiling neutral 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

#6 2005-12-20 12:49:52

Father
Member
From: Australia
Registered: 2004-06-01
Posts: 209

Re: Ogre - help request post-libtool slay

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

Board footer

Powered by FluxBB