Want more features on Pastebin? Sign Up, it's FREE!
Guest

lib32-virtualgl

By: 2ndres on Oct 23rd, 2012  |  syntax: Bash  |  size: 1.38 KB  |  views: 109  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Contributor: FigoDaPaura <ffigoDaPaura>
  2. # Some tweaks by Andres Jimenez
  3.  
  4. pkgname=lib32-virtualgl
  5. pkgver=2.3.2
  6. pkgrel=1
  7. pkgdesc="32-bit serverside components for 64-bit VirtualGL servers."
  8. arch=('x86_64')
  9. url="http://virtualgl.org"
  10. license=('LGPL')
  11. depends=('virtualgl' 'lib32-libxv' 'lib32-turbojpeg' 'lib32-mesa' 'lib32-libx11' 'lib32-libxext' 'lib32-libxau' 'lib32-libstdc++5' 'lib32-libgl' 'lib32-glu')
  12. makedepends=('cmake' 'gcc-multilib')
  13. conflicts=('virtualgl32-bin')
  14.  
  15. sha1sums=('f042862c21ceaba57c6e1f0ec72adb4f838725e9')
  16.  
  17. source=("http://downloads.sourceforge.net/project/virtualgl/VirtualGL/$pkgver/VirtualGL-$pkgver.tar.gz")
  18.  
  19. build() {
  20.   cd "$srcdir/VirtualGL-$pkgver"
  21.  
  22.   export CC="gcc -m32"
  23.   export CXX="g++ -m32"
  24.   export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
  25.  
  26.   mkdir -p build
  27.   cd build
  28.  
  29.   cmake .. -DCMAKE_INSTALL_PREFIX=/opt/VirtualGL -DTJPEG_INCLUDE_DIR=/usr/include -DTJPEG_LIBRARY=/usr/lib32/libturbojpeg.so \
  30.     -DVGL_LIBDIR=/usr/lib32 -DVGL_BINDIR=/usr/bin -DX11_X11_LIB=/usr/lib32/libX11.so -DX11_Xext_LIB=/usr/lib32/libXext.so \
  31.     -DOPENGL_gl_LIBRARY=/usr/lib32/libGL.so
  32.   make
  33. }
  34.  
  35. package() {
  36.   cd "$srcdir/VirtualGL-$pkgver/build"
  37.   make install DESTDIR="$pkgdir"
  38.  
  39.   cd "$pkgdir/usr"
  40.   mv bin/glxspheres glxspheres-32
  41.   rm -rf bin
  42.   mkdir -p bin
  43.   mv glxspheres-32 bin/
  44.  
  45.   cd "$pkgdir/opt/VirtualGL"
  46.   rm -rf doc
  47.   rm -rf include
  48. }
clone this paste RAW Paste Data