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

# source: james
TARBALL=glmark2-2012.12.tar.gz
MD5SUM=4f306664aa3886fa0cf93853603603f8
SRC_URL=https://launchpad.net/glmark2/trunk/2012.12/+download/$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 --enable-glesv2 --enable-gl && 
	./waf build $MAKEFLAGS && 
	./waf install &&
	pkg_build_slackdesc &&
	rm -rf /usr/bin/env
}
