updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / osgart / PKGBUILD
blob3057e17ba67268b753548b0725275bc0323aee57
1 # Contributor: Juan Diego Tascon
3 pkgname=osgart
4 pkgver=1.0
5 pkgrel=2
6 pkgdesc="Library that simplifies the development of augmented reality"
7 arch=('i686' 'x86_64')
8 url="http://www.artoolworks.com/community/osgart/index.html"
9 license=('GPL')
10 depends=('artoolkit' 'openscenegraph-uw')
11 source=("http://www.artoolworks.com/dist/osgart/release/${pkgver}/osgART-${pkgver}.tar.bz2")
12 md5sums=('740978cbdb6663f8bfd71086042f3cd4')
14 build() {
15         # configure
16         cd ${startdir}/src/osgART/bin
17         
18         export CXXFLAGS="${CXXFLAGS} -include cstring -include cstdlib -include iostream -include memory -include typeinfo"
19         make CXXFLAGS="$CXXFLAGS" || return 1
21         mkdir -p ${startdir}/pkg/usr/{lib,bin,share,include}
22         cp -f *.so ${startdir}/pkg/usr/lib
23         cp -f osgart_example ${startdir}/pkg/usr/bin
24         cp -rf ../include/* ${startdir}/pkg/usr/include
26         mkdir -p ${startdir}/pkg/usr/share/osgART/examples
27         cp -rf Data images models shaders videos ${startdir}/pkg/usr/share/osgART
29         cd ../src
30         rm -rf osgART osgWrappers Scripts
31         cp -rf * ${startdir}/pkg/usr/share/osgART/examples