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

# source: BLFS 11.3
TARBALL=cogl-$PKGVER.tar.xz
MD5SUM=7dd8b2e24171ef7399f851cea144b569
SRC_URL=https://download.gnome.org/sources/cogl/1.22/$TARBALL
BUNDLE=

SLACKREQ='cairo gdk-pixbuf mesa-libglu mesa pango libwayland
gstreamer2 gst2-plugins-base'
SLACKDESC="libcogl: libcogl $PKGVER (3D Graphics API)
libcogl: 
libcogl: Cogl is a modern 3D graphics API with associated utility APIs 
libcogl: designed to expose the features of 3D graphics hardware using a 
libcogl: direct state access API design, as opposed to the state-machine style 
libcogl: of OpenGL.
libcogl: 
libcogl: 
libcogl: 
libcogl: 
libcogl: 
"

### default pkg_download
### default pkg_prepare
### default pkg_package

### build
pkg_build() {
	CONFFLAGS="$CONFFLAGS \
		--enable-gles1 \
		--enable-gles2 \
		--enable-kms-egl-platform     \
		--enable-xlib-egl-platform    \
		--enable-wayland-egl-platform \
		--enable-wayland-egl-server   \
		--enable-cogl-gst             \
	" &&
	pkg_build_autoconf &&
	pkg_build_slackdesc &&

	# multilib
	mv -v /usr/share/gir-1.0/* /usr/share/gir-1.0-64 &&
	rm -r /usr/share/gir-1.0/
}
 
