updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / ogre-branch-1.4 / PKGBUILD
blob8953f86a9e97200b79e27159c13e369693ddbf86
1 # Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
2 # Contributor: Josh Taylor (deficite) <joshtaylor.mail@gmail.com>
3 # Contributor: Nick B <Shirakawasuna at gmail _dot_com>
4 # Contributor: Vladimir <vooon341@gmail.com>
5 pkgname=ogre-branch-1.4
6 pkgver=1.4.9
7 pkgrel=4
8 pkgdesc="A scene-oriented, flexible 3D engine written in C++"
9 arch=('i686' 'x86_64')
10 url="http://www.ogre3d.org"
11 license=('LGPL')
12 depends=('freetype2' 'zziplib' 'freeimage' 'nvidia-cg-toolkit' 'cegui' 'ois' 'libtool' 'libxaw' 'libxrandr')
13 conflicts=('ogre')
14 provides=('ogre=1.4.9')
15 source=("http://downloads.sourceforge.net/sourceforge/ogre/ogre-v${pkgver//./-}.tar.bz2" \
16         "bootstrap.patch")
17    
18 md5sums=('8a73fbcf42fd6b156b2567839d0cd125'
19          'fd725f75c0480cde4879802ec6f84ee7')
21 build() {
22   cd ${srcdir}/ogre
24   # patch this old piece of crap
25   patch < ${srcdir}/bootstrap.patch && ./bootstrap
26   # --with-platform=GLX is for nVidia users. I am separating the ogre package from its demos,
27   # if I can figure out a good way to do so. If you want the demos, remove the disable flag for now
28   ./configure --prefix=/usr --with-platform=GLX --disable-ogre-demos
30   [ "$CARCH" = "x86_64" ] && \
31   sed -i s,"CFLAGS = -march","CFLAGS = -fpic -fvisibility=default -march",g Makefile && \
32   sed -i s,"CXXFLAGS = ","CXXLAGS = -fpic -fivisibility=default ",g Makefile
33   
34   make
37 package() {
38   cd ${srcdir}/ogre
40   make DESTDIR=${pkgdir} install