diff options
Diffstat (limited to 'meta/recipes-graphics/cogl')
-rw-r--r-- | meta/recipes-graphics/cogl/cogl-1.0.inc | 88 | ||||
-rw-r--r-- | meta/recipes-graphics/cogl/cogl-1.0_1.18.2.bb | 6 |
2 files changed, 94 insertions, 0 deletions
diff --git a/meta/recipes-graphics/cogl/cogl-1.0.inc b/meta/recipes-graphics/cogl/cogl-1.0.inc new file mode 100644 index 0000000000..b763dd5ba8 --- /dev/null +++ b/meta/recipes-graphics/cogl/cogl-1.0.inc | |||
@@ -0,0 +1,88 @@ | |||
1 | SUMMARY = "Modern 3D graphics API with associated utility APIs" | ||
2 | HOMEPAGE = "http://wiki.clutter-project.org/wiki/Cogl" | ||
3 | LICENSE = "MIT" | ||
4 | |||
5 | inherit clutter | ||
6 | |||
7 | DEPENDS = "glib-2.0 gdk-pixbuf" | ||
8 | PACKAGES =+ "${PN}-examples \ | ||
9 | libcogl libcogl-dev \ | ||
10 | libcogl-gles2 libcogl-gles2-dev \ | ||
11 | libcogl-pango libcogl-pango-dev \ | ||
12 | libcogl-path libcogl-path-dev" | ||
13 | AUTOTOOLS_AUXDIR = "${S}/build" | ||
14 | |||
15 | # Extra DEPENDS for PACKAGECONFIG | ||
16 | EDEPENDS_GL = "virtual/libgl libdrm" | ||
17 | EDEPENDS_GLES2 = "virtual/libgles2" | ||
18 | EDEPENDS_KMS = "libdrm virtual/egl" | ||
19 | EDEPENDS_EGL = "virtual/egl" | ||
20 | EDEPENDS_X11 = "virtual/libx11 libxcomposite libxfixes libxi libxrandr" | ||
21 | EDEPENDS_WAYLAND = "virtual/mesa wayland" | ||
22 | |||
23 | # Extra RDEPENDS for PACKAGECONFIG | ||
24 | # This has to be explictly listed, because cogl dlopens the backends | ||
25 | ERDEPENDS_GL = "libgl" | ||
26 | ERDEPENDS_GLES2 = "libgles2" | ||
27 | |||
28 | # GLESv1 is rarely tested, so disable it | ||
29 | EXTRA_OECONF += "--disable-introspection \ | ||
30 | --enable-examples-install \ | ||
31 | --enable-debug \ | ||
32 | --disable-gles1 \ | ||
33 | --disable-cairo \ | ||
34 | " | ||
35 | |||
36 | # OpenGL/GLX | ||
37 | PACKAGECONFIG[glx] = "--enable-gl --enable-glx,--disable-gl --disable-glx,${EDEPENDS_GL} ${EDEPENDS_X11},${ERDEPENDS_GL}" | ||
38 | |||
39 | # GLESv2 | ||
40 | PACKAGECONFIG[gles2] = "--enable-gles2,--disable-gles2,${EDEPENDS_GLES2}, ${ERDEPENDS_GLES2}" | ||
41 | |||
42 | # EGL backends | ||
43 | PACKAGECONFIG[egl-kms] = "--enable-kms-egl-platform,--disable-kms-egl-platform,${EDEPENDS_KMS}" | ||
44 | PACKAGECONFIG[egl-null] = "--enable-null-egl-platform,--disable-null-egl-platform" | ||
45 | PACKAGECONFIG[egl-x11] = "--enable-xlib-egl-platform,--disable-xlib-egl-platform,${EDEPENDS_X11}" | ||
46 | PACKAGECONFIG[egl-wayland] = "--enable-wayland-egl-platform,--disable-wayland-egl-platform,${EDEPENDS_WAYLAND}" | ||
47 | |||
48 | # Wayland (server-side) | ||
49 | PACKAGECONFIG[wayland-server] = "--enable-wayland-egl-server,--disable-wayland-egl-server,${EDEPENDS_WAYLAND}" | ||
50 | |||
51 | # Support rendering text directly with Pango | ||
52 | PACKAGECONFIG[cogl-pango] = "--enable-cogl-pango,--disable-cogl-pango,pango" | ||
53 | |||
54 | # Respect the DISTRO_FEATURES to pull in GLX or Wayland as appropriate by | ||
55 | # default. | ||
56 | PACKAGECONFIG ??= "cogl-pango gles2 \ | ||
57 | ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'egl-wayland', '', d)} \ | ||
58 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'glx', '', d)}" | ||
59 | |||
60 | FILES_${PN}-examples = "${bindir}/* ${datadir}/cogl/examples-data/*" | ||
61 | FILES_libcogl = "${libdir}/libcogl${SOLIBS}" | ||
62 | FILES_libcogl-dev = "${includedir}/cogl/cogl \ | ||
63 | ${libdir}/libcogl${SOLIBSDEV} \ | ||
64 | ${libdir}/libcogl.la \ | ||
65 | ${libdir}/pkgconfig/cogl-1.0.pc \ | ||
66 | ${libdir}/pkgconfig/cogl-2.0-experimental.pc \ | ||
67 | ${libdir}/pkgconfig/cogl-gl-1.0.pc" | ||
68 | FILES_libcogl-gles2 = "${libdir}/libcogl-gles2${SOLIBS}" | ||
69 | FILES_libcogl-gles2-dev = "${includedir}/cogl/cogl-gles2 \ | ||
70 | ${libdir}/libcogl-gles2${SOLIBSDEV} \ | ||
71 | ${libdir}/libcogl-gles2.la \ | ||
72 | ${libdir}/pkgconfig/cogl-gles2-experimental.pc" | ||
73 | FILES_libcogl-pango = "${libdir}/libcogl-pango${SOLIBS}" | ||
74 | FILES_libcogl-pango-dev = "${includedir}/cogl/cogl-pango \ | ||
75 | ${libdir}/libcogl-pango${SOLIBSDEV} \ | ||
76 | ${libdir}/libcogl-pango.la \ | ||
77 | ${libdir}/pkgconfig/cogl-pango-1.0.pc" | ||
78 | |||
79 | FILES_libcogl-path = "${libdir}/libcogl-path${SOLIBS}" | ||
80 | FILES_libcogl-path-dev = "${includedir}/cogl/cogl-path \ | ||
81 | ${libdir}/libcogl-path${SOLIBSDEV} \ | ||
82 | ${libdir}/libcogl-path.la \ | ||
83 | ${libdir}/pkgconfig/cogl-path-1.0.pc" | ||
84 | |||
85 | # For backwards compatibility after Debian-renaming | ||
86 | RPROVIDES_libcogl = "cogl-1.0" | ||
87 | RCONFLICTS_libcogl = "cogl-1.0" | ||
88 | RREPLACES_libcogl = "cogl-1.0" | ||
diff --git a/meta/recipes-graphics/cogl/cogl-1.0_1.18.2.bb b/meta/recipes-graphics/cogl/cogl-1.0_1.18.2.bb new file mode 100644 index 0000000000..6700efb66b --- /dev/null +++ b/meta/recipes-graphics/cogl/cogl-1.0_1.18.2.bb | |||
@@ -0,0 +1,6 @@ | |||
1 | require cogl-1.0.inc | ||
2 | |||
3 | LIC_FILES_CHKSUM = "file://COPYING;md5=1b1a508d91d25ca607c83f92f3e31c84" | ||
4 | |||
5 | SRC_URI[archive.md5sum] = "952155d526d35f297737266408e842b5" | ||
6 | SRC_URI[archive.sha256sum] = "9278e519d5480eb0379efd48db024e8fdbf93f01dff48a7e756b85b508a863aa" | ||