aboutsummaryrefslogtreecommitdiffstats
path: root/testing/virtualgl/APKBUILD
blob: a5adb7c98a0f068c1bf951295a27a5bc2d406f5c (plain) (blame)
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
40
41
42
43
44
# Contributor: ScrumpyJack <scrumpyjack@st.ilet.to>
# Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to>
pkgname=virtualgl
_pkgname=VirtualGL
pkgver=2.5
pkgrel=0
pkgdesc="VirtualGL is a toolkit to run remote OpenGL applications with full 3D hardware acceleration."
url="http://www.virtualgl.org"
arch="x86_64"
license="LGPL"
depends=""
depends_dev=""
makedepends="mesa-dev cmake openssl-dev libjpeg-turbo-dev libx11-dev glu-dev libxv-dev"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="http://downloads.sourceforge.net/project/${pkgname}/${pkgver}/${_pkgname}-${pkgver}.tar.gz"

builddir=${srcdir}/${_pkgname}-${pkgver}
build() {
	cd "$builddir"
	mkdir -p build && cd build

	cmake .. \
	-DCMAKE_INSTALL_PREFIX=/usr/share \
	-DTJPEG_INCLUDE_DIR=/usr/include \
	-DTJPEG_LIBRARY=/usr/lib/libturbojpeg.so \
        -DOPENGL_glu_LIBRARY=/usr/lib/libGLU.so \
        -DVGL_USESSL=1 \
	-DVGL_LIBDIR=/usr/lib \
	-DVGL_BINDIR=/usr/bin \
	-DVGL_DOCDIR=/usr/share/doc/${pkgname} \
	-DVGL_FAKEXCB=1 || return 1
	make
}

package() {
	cd "$builddir/build"
        make  DESTDIR="$pkgdir" install || return 1
        cd "$builddir" && rm -r build
}

md5sums="7b0a781be8eb249fbe77a99af89cc758  VirtualGL-2.5.tar.gz"
sha256sums="14d5ba1af9fe8859bbb6131714fee465143f16184449d2d7adb65bd4aba4d7d6  VirtualGL-2.5.tar.gz"
sha512sums="1c14144d0d1de6350d6b82bea85719f3716575bb811763163bac06b387efdcc066f3f99d5e751872aa9b05e8f9572ebea09802a596d49d126eef5e30909af0d0  VirtualGL-2.5.tar.gz"