# Contributor: ScrumpyJack # Maintainer: ScrumpyJack pkgname=virtualgl _pkgname=VirtualGL pkgver=2.6.5 pkgrel=0 pkgdesc="VirtualGL is a toolkit to run remote OpenGL applications with full 3D hardware acceleration." url="https://virtualgl.org/" arch="x86_64 ppc64le" license="LGPL-2.1-or-later" makedepends="mesa-dev cmake openssl-dev libjpeg-turbo-dev libx11-dev glu-dev libxv-dev xcb-util-keysyms-dev libxtst-dev" subpackages="$pkgname-dev $pkgname-doc" source="https://downloads.sourceforge.net/project/virtualgl/$pkgver/$_pkgname-$pkgver.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" build() { mkdir -p build && cd build cmake .. \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_DOCDIR=/usr/share/doc/$pkgname \ -DCMAKE_INSTALL_LIBDIR=/usr/lib \ -DCMAKE_INSTALL_BINDIR=/usr/bin \ -DTJPEG_INCLUDE_DIR=/usr/include \ -DTJPEG_LIBRARY=/usr/lib/libturbojpeg.so \ -DOPENGL_glu_LIBRARY=/usr/lib/libGLU.so \ -DVGL_USESSL=1 \ -DVGL_FAKEXCB=1 \ -DVGL_FAKEOPENCL=0 make } package() { cd "$builddir/build" make DESTDIR="$pkgdir" install } sha512sums="0ab9e744e400d323bc16f6e2cf310905361745ea4da9e9e9a41cbeb45b1d661eebd38a0fad8ae5df4664d02b341de44c5730af8437e6ef49c7351b4afb953532 VirtualGL-2.6.5.tar.gz"