#!/bin/bash
#
# Copyright 2012-2013 Eugene Wissner <belka.ew@gmail.com>
# Copyright 2014 John Truex <apolluwn@gmail.com>
# Copyright 2012-2026 Sasa Ostrouska <saxa@droplinegnome.org>
# Available under the terms of the GNU GPL.
#

NAME="cogl"
VERSION="1.22.8"
REVISION="4"

PKG_SOURCEURL='${DLG_GNOMEMIRROR}/${NAME}/${VER_MAJ}.${VER_MIN}/${NAME}-${VERSION}.tar.xz'
PKG_SANIFYNOTOUCH='yes'

. $DLG_ROOT/etc/config
. $DLG_ROOT/lib/dl-base

cflags -std=gnu17 -Wno-implicit-function-declaration
prepare
analyzesource

#configure --enable-cairo=yes \
#	--enable-glib=yes \
#	--enable-cogl-pango=yes \
#	--enable-cogl-gst=yes \
#	--enable-cogl-path=yes \
#	--enable-gdk-pixbuf=yes \
#	--enable-examples-install=yes \
#	--enable-gl=yes \
#	--enable-glx=yes \
#	--enable-xlib-egl-platform=yes \
#	--enable-introspection=yes \
#	--enable-wayland-egl-platform=yes \
#	--enable-wayland-egl-server=yes \
#	--with-x

configure   --enable-gles1 \
            --enable-gles2 \
            --enable-{kms,wayland,xlib}-egl-platform \
            --enable-wayland-egl-server

make
makeinstall install-strip
tidydocumentation
analyzebinaries
finalizepackage
packagize
cleanup
