Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

lib32-virtualgl-2.3.1-2

By: a guest on Aug 1st, 2012  |  syntax: Bash  |  size: 1.36 KB  |  hits: 39  |  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.  
  3. pkgname=lib32-virtualgl
  4. pkgver=2.3.1
  5. pkgrel=2
  6. pkgdesc="32-bit serverside components for 64-bit VirtualGL servers."
  7. arch=('x86_64')
  8. url="http://virtualgl.org"
  9. license=('LGPL')
  10. depends=('virtualgl' 'lib32-libxv' 'lib32-turbojpeg' 'lib32-mesa' 'lib32-libx11' 'lib32-libxext' 'lib32-libxau')
  11. makedepends=('cmake' 'gcc-multilib')
  12. conflicts=('virtualgl32-bin')
  13.  
  14. sha1sums=('087f2c8cab080e7d68d22ee5f08cb39437e63d8d')
  15.  
  16. source=("http://downloads.sourceforge.net/project/virtualgl/VirtualGL/$pkgver/VirtualGL-$pkgver.tar.gz")
  17.  
  18. build() {
  19.   cd "$srcdir/VirtualGL-$pkgver"
  20.  
  21.  
  22.   export CFLAGS="$CFLAGS -m32 -mstackrealign"
  23.   export CXXFLAGS="$CXXFLAGS -m32 -mstackrealign"
  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. }