updated on Sat Jan 21 16:18:39 UTC 2012
[aur-mirror.git] / openscenegraph-uw / PKGBUILD
blob165727275bbed55aa5260eee8dfd4930e0d6d4ae
1 # Contributor Paolo Giangrandi <peoro@luccalug.it>
2 # Contributor: William Rea <sillywilly@gmail.com>
4 pkgname=openscenegraph-uw
5 pkgver=1.2.0
6 pkgrel=2
7 pkgdesc="An Open Source, high performance real-time graphics toolkit modified by Underware"
8 url="http://www.openscenegraph.org"
9 arch=('i686')
10 license=("LGPL" "custom")
11 depends=('libtiff' 'libpng' 'mesa')
12 provides=('openscenegraph' 'openproducer' 'openthreads')
13 conflicts=('openscenegraph' 'openproducer' 'openthreads')
14 source=(http://download.gna.org/underware/sources/openscenegraph-$pkgver.tar.gz \
15         http://poker3d-gentoo.googlecode.com/svn/trunk/dev-cpp/openscenegraph/files/01.dpatch)
16 md5sums=('875b7fad523fc5f3a789c29ae156dc60' '51e42411b2b88bede8a26a41e22aba63')
18 build() {
19   cd $startdir/src/openscenegraph-$pkgver
20   patch -Np1 -i ../01.dpatch
21   export LIBUNGIF_INSTALLED=no 
22   export GLUT_INSTALLED=yes 
23   export COMPILE_EXAMPLES=no
24   export COMPILE_OSG_OP_OT_WITH_SONAMES=YES
25   export OPENTHREADS_INC_DIR=$startdir/src/openscenegraph-$pkgver/OpenThreads/include
26   export OPENTHREADS_LIB_DIR=$startdir/src/openscenegraph-$pkgver/OpenThreads/lib/Linux
27   export PRODUCER_INC_DIR=$startdir/src/openscenegraph-$pkgver/Producer/include
28   export PRODUCER_LIB_DIR=$startdir/src/openscenegraph-$pkgver/Producer/lib/Linux
29   export INST_LOCATION="$startdir/pkg/usr"
30   export CXXFLAGS="${CXXFLAGS} -include cstring -include cstdlib -include iostream -include memory -include cstdio"
31   cd $startdir/src/openscenegraph-$pkgver/OpenThreads
32   make ARCH='' OPTF="'${CXXFLAGS}'" || return 1
33   cd $startdir/src/openscenegraph-$pkgver/Producer
34   make ARCH='' OPTF="'${CXXFLAGS}'" || return 1
35   cd $startdir/src/openscenegraph-$pkgver/OpenSceneGraph
36   make ARCH='' OPTF="'${CXXFLAGS}'" || return 1
38   cd $startdir/src/openscenegraph-$pkgver/OpenThreads
39   make ARCH='' install || return 1
40   install -D Make/openthreads.pc $startdir/pkg/usr/lib/pkgconfig/openthreads.pc
41   cd $startdir/src/openscenegraph-$pkgver/Producer
42   make ARCH='' install || return 1
43   install -D Make/producer.pc $startdir/pkg/usr/lib/pkgconfig/producer.pc
44   cd $startdir/src/openscenegraph-$pkgver/OpenSceneGraph
45   make ARCH='' install || return 1
46   install -D Make/openscenegraph.pc $startdir/pkg/usr/lib/pkgconfig/openscenegraph.pc
47   mv $startdir/pkg/usr/share/OpenSceneGraph/bin $startdir/pkg/usr
48   rm -r $startdir/pkg/usr/share
49   install -D -m 644 LICENSE.txt $startdir/pkg/usr/share/licenses/$pkgname/LICENSE.txt