summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics
diff options
context:
space:
mode:
authorAndreas Oberritter <obi@opendreambox.org>2013-07-11 00:56:35 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-07-13 18:23:33 +0100
commit9b6011c2d11106b3419eb24e603242095b7eaa45 (patch)
tree4509bf8af20f988d1ecc9f56f5eb8d59fe2c5092 /meta/recipes-graphics
parent63645af528efe5db5e8d96f1012177abd6a324a5 (diff)
downloadpoky-9b6011c2d11106b3419eb24e603242095b7eaa45.tar.gz
cogl-1.0: put each library into its own package
This allows to install cogl-gles2 and cogl-pango only when needed and enables Debian package renaming. This stops cogl-pango from dragging in unwanted runtime dependencies, if cogl-pango isn't used. (From OE-Core rev: bcccb87a3213f5315f52fb18610b7e9dab510a7e) Signed-off-by: Andreas Oberritter <obi@opendreambox.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics')
-rw-r--r--meta/recipes-graphics/cogl/cogl-1.0.inc27
1 files changed, 26 insertions, 1 deletions
diff --git a/meta/recipes-graphics/cogl/cogl-1.0.inc b/meta/recipes-graphics/cogl/cogl-1.0.inc
index 55eb003f8a..8400668e09 100644
--- a/meta/recipes-graphics/cogl/cogl-1.0.inc
+++ b/meta/recipes-graphics/cogl/cogl-1.0.inc
@@ -9,7 +9,10 @@ SRC_URI += "file://cogl_fixed_mul-constraint.patch \
9inherit clutter 9inherit clutter
10 10
11DEPENDS = "pango glib-2.0 gdk-pixbuf" 11DEPENDS = "pango glib-2.0 gdk-pixbuf"
12PACKAGES =+ "${PN}-examples" 12PACKAGES =+ "${PN}-examples \
13 libcogl libcogl-dev \
14 libcogl-gles2 libcogl-gles2-dev \
15 libcogl-pango libcogl-pango-dev"
13AUTOTOOLS_AUXDIR = "${S}/build" 16AUTOTOOLS_AUXDIR = "${S}/build"
14 17
15# Extra DEPENDS for PACKAGECONFIG 18# Extra DEPENDS for PACKAGECONFIG
@@ -54,3 +57,25 @@ PACKAGECONFIG ??= "gl \
54 ${@base_contains('DISTRO_FEATURES', 'x11', 'glx', '', d)}" 57 ${@base_contains('DISTRO_FEATURES', 'x11', 'glx', '', d)}"
55 58
56FILES_${PN}-examples = "${bindir}/* ${datadir}/cogl/examples-data/*" 59FILES_${PN}-examples = "${bindir}/* ${datadir}/cogl/examples-data/*"
60FILES_libcogl = "${libdir}/libcogl${SOLIBS}"
61FILES_libcogl-dev = "${includedir}/cogl/cogl \
62 ${libdir}/libcogl${SOLIBSDEV} \
63 ${libdir}/libcogl.la \
64 ${libdir}/pkgconfig/cogl-1.0.pc \
65 ${libdir}/pkgconfig/cogl-2.0-experimental.pc \
66 ${libdir}/pkgconfig/cogl-gl-1.0.pc"
67FILES_libcogl-gles2 = "${libdir}/libcogl-gles2${SOLIBS}"
68FILES_libcogl-gles2-dev = "${includedir}/cogl/cogl-gles2 \
69 ${libdir}/libcogl-gles2${SOLIBSDEV} \
70 ${libdir}/libcogl-gles2.la \
71 ${libdir}/pkgconfig/cogl-gles2-experimental.pc"
72FILES_libcogl-pango = "${libdir}/libcogl-pango${SOLIBS}"
73FILES_libcogl-pango-dev = "${includedir}/cogl/cogl-pango \
74 ${libdir}/libcogl-pango${SOLIBSDEV} \
75 ${libdir}/libcogl-pango.la \
76 ${libdir}/pkgconfig/cogl-pango-1.0.pc"
77
78# For backwards compatibility after Debian-renaming
79RPROVIDES_libcogl = "cogl-1.0"
80RCONFLICTS_libcogl = "cogl-1.0"
81RREPLACES_libcogl = "cogl-1.0"