### this file is sourced not run
PKGVER=2016.08
PKGBUILD=1
PKGARCH=x86_64

# source: james
TARBALL=glmark2-2016-08-19.tar.bz2
MD5SUM=eec2f0b62690c489ee42443ba3f4eb28
#SRC_URL=https://launchpad.net/glmark2/trunk/2012.12/+download/$TARBALL
SRC_URL=http://distro.ibiblio.org/fatdog/source/710/$TARBALL
BUNDLE=

SLACKREQ='libpng12' # and xorg libraries, requires python to build
SLACKDESC='glmark2: glmark2 2012.12 (OpenGL ES benchmark)  
glmark2:  
glmark2: glmark2 is a benchmark for OpenGL (ES) 2.0. It uses only the subset 
glmark2: of the OpenGL 2.0 API that is compatible with OpenGL ES 2.0.  
glmark2: 
glmark2: 
glmark2: 
glmark2: 
glmark2: 
glmark2: 
glmark2: 
'

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	! [ -e /usr/bin/env ] && ln -s /tools/bin/env /usr/bin/env
	cd /tmp/glmark*
	./waf configure --prefix=/usr --with-flavors="x11-gl,x11-glesv2"
	./waf build $MAKEFLAGS && 
	./waf install &&
	pkg_build_slackdesc &&
	rm -rf /usr/bin/env
}
