PKGNAME=cogl
PKGSEC=x11
PKGDEP="mesa libdrm x11-lib gdk-pixbuf pango cairo libglvnd glib \
        harfbuzz wayland"
# FIXME: autotools still detects whether gtk-doc is available, even if it's disabled
BUILDDEP="gobject-introspection gtk-doc vim"
PKGDES="Object oriented GL/GLES Abstraction/Utility Layer"

ABTYPE=autotools
AUTOTOOLS_AFTER=(
    '--enable-cairo=yes'
    '--enable-cogl-pango=yes'
    '--enable-gdk-pixbuf=yes'
    '--enable-glx=yes'
    '--disable-gtk-doc'
    '--enable-introspection=yes'
    '--enable-kms-egl-platform'
    '--enable-wayland-egl-platform'
    '--enable-wayland-egl-server'
    '--enable-xlib-egl-platform'
    '--enable-gles1'
    '--enable-gles2'
    '--enable-cogl-gles2'
)

AUTOTOOLS_AFTER__ARM64=(
    "${AUTOTOOLS_AFTER[@]}"
    '--with-default-driver=gles2'
)
AUTOTOOLS_AFTER__ARMV4="${AUTOTOOLS_AFTER__ARM64[@]}"
AUTOTOOLS_AFTER__ARMV6HF="${AUTOTOOLS_AFTER__ARM64[@]}"
AUTOTOOLS_AFTER__ARMV7HF="${AUTOTOOLS_AFTER__ARM64[@]}"
