summaryrefslogtreecommitdiff
path: root/testing/virtualgl/APKBUILD
blob: 15653ceb6a69e7cc9e4b459b4de37d1c170ada8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Contributor: ScrumpyJack <scrumpyjack@st.ilet.to>
# Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to>
pkgname=virtualgl
_pkgname=VirtualGL
pkgver=2.6.5
pkgrel=1
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>3 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"