updated on Sun Jan 15 08:01:04 UTC 2012
[aur-mirror.git] / wildmagic4 / PKGBUILD
blob60136c5e637f073b1f40df47fceb8f56154f0bd2
1 # Contributor: Brice Méalier <mealier_brice@yahoo.fr>
2 pkgname=wildmagic4
3 pkgver=4.8
4 pkgrel=1
5 pkgdesc="3D real-time graphics engine."
6 url="http://www.geometrictools.com/"
7 license="Wild Magic License Agreement (LGPL)"
8 depends=()
9 makedepends=('xorg' 'gcc')
10 provides=()
11 conflicts=()
12 replaces=()
13 backup=()
14 arch=(i686)
15 install=
16 source=(http://www.geometrictools.com/Downloads/WildMagic4p8.zip)
17 md5sums=('591818e1fac323511229742c2b9cb5a9')
19 build() {
20   cd $startdir/src/GeometricTools
21 #  patch -p1 < ../wildmagic.patch
23   cd $startdir/src/GeometricTools/WildMagic4
25   find ./ -name "*.wm4" | xargs sed -e 's|INCPATH := |INCPATH += |;s|LIBPATH := |LIBPATH += |;s|CC|CXX|;s|CFLAGS :=|CFLAGS += -fPIC -shared|;s|/usr/X11R6/include|/usr/include|' -i
28   sed -e 's|GetEnv("WM4_PATH")|"Data"|' -i LibFoundation/System/Wm4System.cpp
30   make CFG=Release SYS=linux GRF=OpenGL -f makefile.wm4 || return 1
32   mkdir -p $startdir/pkg/opt/WildMagic4/Library
33   cp $startdir/src/GeometricTools/WildMagic4/SDK/Library/Release/lib* $startdir/pkg/opt/WildMagic4/Library/
34   mkdir -p $startdir/pkg/opt/WildMagic4/Include
35   cp $startdir/src/GeometricTools/WildMagic4/SDK/Include/* $startdir/pkg/opt/WildMagic4/Include/