#Packager: George Vlahavas <vlahavas~at~gmail~dot~com>
# Included in Slint by Didier Spaier didieratsintdotfr
pkgname=cogl
pkgver=1.22.8
_majorver=`echo $pkgver | cut -d'.' -f1,2`
pkgrel=1slit
source=("https://ftp.gnome.org/pub/gnome/sources/cogl/${_majorver}/cogl-${pkgver}.tar.xz")
docs=("readme" "install" "copying" "changelog" "authors" "news" "todo" "about-nls" "coding_style")

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"cogl (An object oriented GL/GLES Abstraction/Utility Layer)"
"Cogl is a small open source library for using 3D graphics hardware for"
"rendering. The API departs from the flat state machine style of OpenGL"
"and is designed to make it easy to write orthogonal components that"
"can render without stepping on each others toes."
)


build() {
	cd $startdir/src/$pkgname-$pkgver
	./configure --prefix=/usr \
		--libdir=/usr/lib${LIBDIRSUFFIX} \
		--localstatedir=/var \
		--sysconfdir=/etc \
		--enable-cogl-gst \
		--build=$arch-slackware-linux
	make -j $numjobs || return 1
	make install DESTDIR=$startdir/pkg
} 
