1 # Maintainer: Vitaly M. <jauthu@gmail.com.com>
3 pkgname=visualization-library-svn
6 pkgdesc="A lightweight C++ middleware for 2D and 3D graphics"
8 url="http://www.visualizationlibrary.org"
10 # SDL, GLUT and are in depends 'cause VL comes
11 # with SDL and GLUT examples and tests
12 depends=('mesa' 'sdl' 'freeglut' 'qt')
13 makedepends=('gcc' 'libtool' 'make' 'cmake'
14 'sdl' 'doxygen' 'qt' 'wxgtk')
15 conflicts=('visualization-library'
16 'visualization-library-glut'
17 'visualization-library-sdl'
18 'visualization-library-qt'
19 'visualization-library-wx')
20 provides=('visualization-library'
21 'visualization-library-glut'
22 'visualization-library-sdl'
23 'visualization-library-qt')
25 _svntrunk=http://visualizationlibrary.googlecode.com/svn/trunk
30 msg "Connecting to SVN server...."
32 if [[ -d "$_svnmod/.svn" ]]; then
33 (cd "$_svnmod" && svn up -r "$pkgver")
35 svn co "$_svntrunk" --config-dir ./ -r "$pkgver" "$_svnmod"
38 msg "SVN checkout done or server timeout"
39 msg "Starting build..."
41 rm -rf "$srcdir/$_svnmod-build"
42 cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
43 cd "$srcdir/$_svnmod-build"
44 find . -type d -name '.svn' -print0 | xargs -0 rm -rf
52 cmake .. -DCMAKE_INSTALL_PREFIX=/usr \
53 -DCMAKE_BUILD_TYPE=Release \
54 -DVL_GUI_SDL_SUPPORT=ON \
55 -DVL_GUI_GLUT_SUPPORT=ON \
56 -DVL_GUI_QT4_SUPPORT=ON \
57 -DVL_WXWIDGETS_SUPPORT=ON \
58 -DVL_INSTALL_DATA=ON \
59 -DVL_INSTALL_DOCS=ON \
60 -DVL_UNIX_INSTALL_MODE=ON
64 make DESTDIR=$pkgdir install
65 mkdir -p $pkgdir/usr/share/doc/vl
66 mv $pkgdir/usr/share/vl/docs $pkgdir/usr/share/doc/vl/
67 mv $pkgdir/usr/share/vl/README.TXT $pkgdir/usr/share/doc/vl/
68 mv $pkgdir/usr/share/vl/LICENSE.TXT $pkgdir/usr/share/doc/vl/
71 # vim:set ts=2 sw=2 et: