1 # Contributor: Brice Méalier <mealier_brice@yahoo.fr>
5 pkgdesc="3D real-time graphics engine."
6 url="http://www.geometrictools.com/"
7 license="Wild Magic License Agreement (LGPL)"
9 makedepends=('xorg' 'gcc')
16 source=(http://www.geometrictools.com/Downloads/WildMagic4p8.zip)
17 md5sums=('591818e1fac323511229742c2b9cb5a9')
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/