updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / artoolkit / PKGBUILD
blob093f5ca004972d1b6e2d8c2826d0302dd4b2f02d
1 # Contributor: Juan Diego Tascon
3 pkgname=artoolkit
4 pkgver=2.72.1
5 pkgrel=6
6 pkgdesc="Augmented Reality ToolKit"
7 arch=('i686' 'x86_64')
8 url="http://www.hitl.washington.edu/artoolkit/"
9 license=('GPL')
10 makedepends=('gstreamer0.10' 'glut')
11 source=("http://downloads.sourceforge.net/project/artoolkit/artoolkit/${pkgver}/ARToolKit-${pkgver}.tgz")
12 md5sums=('4328b512711529309bad4bd1d791952c')
14 build() {
15         # configure
16         cd ${srcdir}/ARToolKit
17         echo -ne "5\ny\nn\n" >> answers
18         ./Configure < answers || return 1
19         
20         # install lib
21         make -C lib/SRC || return 1
22         
23         mkdir -p ${pkgdir}/usr/{lib,include}
24         
25         rm -rf include/AR/config.h.in
26         cp -rf include/AR ${pkgdir}/usr/include
27         
28         # create shared objects (libxxx.so)
29         pushd lib
30         for liba in *.a
31         do
32                 libso=$(basename $liba .a).so
33                 ld -shared -s -whole-archive $liba -o $libso
34                 cp $liba $libso ${pkgdir}/usr/lib/
35         done
36         popd
37         
38         # install share
39         mkdir -p ${pkgdir}/usr/share/artoolkit/
40         cp -rf doc patterns examples ${pkgdir}/usr/share/artoolkit/
41         
42         #install bin
43         make -C util || return 1
44         make -C examples || return 1
45         cp -rf bin ${pkgdir}/usr/share/artoolkit