1 # Contributor: Juan Diego Tascon
6 pkgdesc="Augmented Reality ToolKit"
8 url="http://www.hitl.washington.edu/artoolkit/"
10 makedepends=('gstreamer0.10' 'glut')
11 source=("http://downloads.sourceforge.net/project/artoolkit/artoolkit/${pkgver}/ARToolKit-${pkgver}.tgz")
12 md5sums=('4328b512711529309bad4bd1d791952c')
16 cd ${srcdir}/ARToolKit
17 echo -ne "5\ny\nn\n" >> answers
18 ./Configure < answers || return 1
21 make -C lib/SRC || return 1
23 mkdir -p ${pkgdir}/usr/{lib,include}
25 rm -rf include/AR/config.h.in
26 cp -rf include/AR ${pkgdir}/usr/include
28 # create shared objects (libxxx.so)
32 libso=$(basename $liba .a).so
33 ld -shared -s -whole-archive $liba -o $libso
34 cp $liba $libso ${pkgdir}/usr/lib/
39 mkdir -p ${pkgdir}/usr/share/artoolkit/
40 cp -rf doc patterns examples ${pkgdir}/usr/share/artoolkit/
43 make -C util || return 1
44 make -C examples || return 1
45 cp -rf bin ${pkgdir}/usr/share/artoolkit