# Contributor: Carlo Landmeter # Maintainer: Natanael Copa pkgname=cogl pkgver=1.20.0 pkgrel=1 pkgdesc="An object oriented GL/GLES Abstraction/Utility Layer" url="http://www.clutter-project.org/" arch="all" license="GPL2" depends="" depends_dev="glib-dev mesa-dev libdrm-dev libxdamage-dev libxcomposite-dev libxrandr-dev pango-dev cairo-dev gobject-introspection-dev libxext-dev eudev-dev" makedepends="$depends_dev" install="" subpackages="$pkgname-dev $pkgname-lang" source="https://download.gnome.org/sources/cogl/${pkgver%.*}/cogl-$pkgver.tar.xz" _builddir="$srcdir"/cogl-$pkgver prepare() { local i cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$_builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --localstatedir=/var \ --enable-gles2 \ --enable-gles1 \ --enable-kms-egl-platform \ --enable-gl \ || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 } md5sums="5b28897194d9ff76a574a9493d1f7ee0 cogl-1.20.0.tar.xz" sha256sums="729e35495829e7d31fafa3358e47b743ba21a2b08ff9b6cd28fb74c0de91192b cogl-1.20.0.tar.xz" sha512sums="a7c50072ef5660a4fff8d3843ede86178e5c4bcc635eb24c1e16f73422f57596b91a2c78a73a5e01f6f4b9c96509c7c648729f748b2fec4b8ad0f332cd5e0bd1 cogl-1.20.0.tar.xz"