1*4882a593SmuzhiyunSUMMARY = "Graphics library for creating hardware-accelerated user interfaces" 2*4882a593SmuzhiyunDESCRIPTION = "Clutter is an Open GL based interactive canvas library, \ 3*4882a593Smuzhiyundesigned for creating fast, mainly 2D single window applications such as media \ 4*4882a593Smuzhiyunbox UIs, presentations, kiosk style applications and so on." 5*4882a593SmuzhiyunHOMEPAGE = "http://www.clutter-project.org/" 6*4882a593SmuzhiyunLICENSE = "LGPL-2.1-or-later" 7*4882a593Smuzhiyun 8*4882a593Smuzhiyuninherit clutter ptest-gnome features_check upstream-version-is-even gobject-introspection 9*4882a593Smuzhiyun# depends on cogl-1.0 which needs opengl 10*4882a593SmuzhiyunREQUIRED_DISTRO_FEATURES ?= "opengl" 11*4882a593Smuzhiyun 12*4882a593SmuzhiyunDEPENDS = "pango glib-2.0 json-glib atk udev cogl-1.0" 13*4882a593SmuzhiyunPACKAGE_BEFORE_PN += "${PN}-examples" 14*4882a593SmuzhiyunAUTOTOOLS_AUXDIR = "${S}/build-aux" 15*4882a593Smuzhiyun 16*4882a593SmuzhiyunEDEPENDS_X11 = "virtual/libx11 libxi libxfixes" 17*4882a593SmuzhiyunEDEPENDS_GLX = "virtual/libgl" 18*4882a593SmuzhiyunEDEPENDS_EGL = "virtual/egl" 19*4882a593SmuzhiyunEDEPENDS_WAYLAND = "wayland libxkbcommon gdk-pixbuf" 20*4882a593Smuzhiyun 21*4882a593SmuzhiyunEDEPENDS_EVDEV = "libxkbcommon" 22*4882a593SmuzhiyunERDEPENDS_EVDEV = "xkeyboard-config" 23*4882a593Smuzhiyun 24*4882a593Smuzhiyun# Disable pretty much everything, override in platform specific set up 25*4882a593SmuzhiyunEXTRA_OECONF += "--disable-quartz-backend \ 26*4882a593Smuzhiyun --disable-win32-backend \ 27*4882a593Smuzhiyun --disable-cex100-backend \ 28*4882a593Smuzhiyun --disable-tslib-input \ 29*4882a593Smuzhiyun " 30*4882a593Smuzhiyun 31*4882a593SmuzhiyunPACKAGECONFIG[gdk] = "--enable-gdk-backend,--disable-gdk-backend,gtk+3" 32*4882a593SmuzhiyunPACKAGECONFIG[x11] = "--enable-x11-backend,--disable-x11-backend,${EDEPENDS_X11}" 33*4882a593SmuzhiyunPACKAGECONFIG[glx] = ",,${EDEPENDS_X11} ${EDEPENDS_GLX}" 34*4882a593SmuzhiyunPACKAGECONFIG[egl] = "--enable-egl-backend,--disable-egl-backend,${EDEPENDS_EGL}" 35*4882a593SmuzhiyunPACKAGECONFIG[evdev] = "--enable-evdev-input,--disable-evdev-input,${EDEPENDS_EVDEV},${ERDEPENDS_EVDEV}" 36*4882a593SmuzhiyunPACKAGECONFIG[wayland] = "--enable-wayland-backend,--disable-wayland-backend,${EDEPENDS_WAYLAND}" 37*4882a593SmuzhiyunPACKAGECONFIG[wayland-compositor] = "--enable-wayland-compositor,--disable-wayland-compositor,wayland" 38*4882a593Smuzhiyun 39*4882a593Smuzhiyun# Default configuration, distros might want to override 40*4882a593SmuzhiyunPACKAGECONFIG ??= "egl gdk \ 41*4882a593Smuzhiyun ${@bb.utils.filter('DISTRO_FEATURES', 'wayland', d)} \ 42*4882a593Smuzhiyun ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'glx x11', '', d)}" 43*4882a593Smuzhiyun 44*4882a593SmuzhiyunFILES:${PN}-examples = "${libdir}/clutter/examples" 45*4882a593Smuzhiyun 46*4882a593Smuzhiyundo_configure:prepend() { 47*4882a593Smuzhiyun # see https://bugzilla.gnome.org/show_bug.cgi?id=661128 for this 48*4882a593Smuzhiyun touch -t 200001010000 ${S}/po/clutter-1.0.pot 49*4882a593Smuzhiyun} 50