require 'buildsystems/autotools'

class Cogl < Autotools
  description 'Library for using 3D graphics hardware for rendering'
  homepage 'https://www.clutter-project.org'
  version '1.22.8'
  license 'MIT and BSD'
  compatibility 'aarch64 armv7l x86_64'
  source_url 'https://ftp.gnome.org/pub/GNOME/sources/cogl/1.22/cogl-1.22.8.tar.xz'
  source_sha256 'a805b2b019184710ff53d0496f9f0ce6dcca420c141a0f4f6fcc02131581d759'
  binary_compression 'tar.xz'

  binary_sha256({
    aarch64: '43ec43e1186c754119bf75e1414e32ddf79d6ee17dd8a3d63ca55765d715d3da',
     armv7l: '43ec43e1186c754119bf75e1414e32ddf79d6ee17dd8a3d63ca55765d715d3da',
     x86_64: '866c2dbd788c46ffc48b903d6d4732f6f5646f1c9c18959fce21a2dbe0d382cc'
  })

  depends_on 'libxcomposite'
  depends_on 'libxrandr'
  depends_on 'mesa'
  depends_on 'pango'
  depends_on 'gdk_pixbuf'
  depends_on 'gstreamer'
  depends_on 'wayland'
  depends_on 'glib'
  depends_on 'gobject_introspection'

  gnome

  autotools_configure_options '--enable-cairo=yes \
  --enable-cogl-pango=yes \
  --enable-gdk-pixbuf=yes \
  --enable-cogl-gst=yes  \
  --enable-kms-egl-platform \
  --enable-wayland-egl-platform \
  --enable-wayland-egl-server'
end
