1 # Maintainer: Samsagax <samsagax@gmail.com>
2 # Contributor: FigoDaPaura <ffigoDaPaura>
7 pkgdesc="Redirects 3D commands from an OpenGL application onto a server-side 3D graphics card. SVN version"
9 url="http://virtualgl.org"
11 depends=('mesa' 'libxv' 'turbojpeg' 'libjpeg')
12 makedepends=('subversion' 'cmake')
13 provides=('virtualgl')
14 conflicts=('virtualgl' 'virtualgl-bin')
19 _svntrunk='https://virtualgl.svn.sourceforge.net/svnroot/virtualgl/vgl/trunk'
24 msg "Connecting to SVN server...."
26 if [[ -d "$_svnmod/.svn" ]]; then
27 (cd "$_svnmod" && svn up -r "$pkgver")
29 svn co "$_svntrunk" --config-dir ./ -r "$pkgver" "$_svnmod"
32 msg "SVN checkout done or server timeout"
33 msg "Starting build..."
35 rm -rf "$srcdir/$_svnmod-build"
36 cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
37 cd "$srcdir/$_svnmod-build"
39 cmake -DCMAKE_INSTALL_PREFIX=/opt/VirtualGL -DTJPEG_INCLUDE_DIR=/usr/include -DTJPEG_LIBRARY=/usr/lib/libturbojpeg.so \
40 -DVGL_LIBDIR=/usr/lib -DVGL_BINDIR=/usr/bin
45 cd "$srcdir/$_svnmod-build"
46 make install DESTDIR="$pkgdir"
48 mkdir -p "$pkgdir/opt/VirtualGL/bin"
49 mv "$pkgdir"/usr/bin/glxinfo "$pkgdir/opt/VirtualGL/bin"