# Contributor: ScrumpyJack # Maintainer: ScrumpyJack pkgname=virtualgl _pkgname=VirtualGL pkgver=2.6.2 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 libxtst-dev" subpackages="$pkgname-dev $pkgname-doc" source="https://downloads.sourceforge.net/project/${pkgname}/${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 make } package() { cd "$builddir/build" make DESTDIR="$pkgdir" install } sha512sums="826707451a7c85de84f3e4b2cc629ee41ee48132c62d55dd2af87d7f1a45873a8d0a281936bae37ce838491948c462e9cebb08ce8b20fcba2122c94d8bc2f5e5 VirtualGL-2.6.2.tar.gz"