summaryrefslogtreecommitdiff
path: root/meta/recipes-graphics/cogl
diff options
context:
space:
mode:
authorAndreas Oberritter <obi@opendreambox.org>2013-07-11 00:56:35 +0000
committerSaul Wold <sgw@linux.intel.com>2013-07-12 10:12:10 -0700
commitbcccb87a3213f5315f52fb18610b7e9dab510a7e (patch)
tree3339a2bf9574d89832060b69619da2281d6ae9e3 /meta/recipes-graphics/cogl
parent760af902a98b350a2f1f3203fa0096965924a83d (diff)
downloadopenembedded-core-bcccb87a3213f5315f52fb18610b7e9dab510a7e.tar.gz
openembedded-core-bcccb87a3213f5315f52fb18610b7e9dab510a7e.tar.bz2
openembedded-core-bcccb87a3213f5315f52fb18610b7e9dab510a7e.zip
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. Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
Diffstat (limited to 'meta/recipes-graphics/cogl')
-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 \
inherit clutter
DEPENDS = "pango glib-2.0 gdk-pixbuf"
-PACKAGES =+ "${PN}-examples"
+PACKAGES =+ "${PN}-examples \
+ libcogl libcogl-dev \
+ libcogl-gles2 libcogl-gles2-dev \
+ libcogl-pango libcogl-pango-dev"
AUTOTOOLS_AUXDIR = "${S}/build"
# Extra DEPENDS for PACKAGECONFIG
@@ -54,3 +57,25 @@ PACKAGECONFIG ??= "gl \
${@base_contains('DISTRO_FEATURES', 'x11', 'glx', '', d)}"
FILES_${PN}-examples = "${bindir}/* ${datadir}/cogl/examples-data/*"
+FILES_libcogl = "${libdir}/libcogl${SOLIBS}"
+FILES_libcogl-dev = "${includedir}/cogl/cogl \
+ ${libdir}/libcogl${SOLIBSDEV} \
+ ${libdir}/libcogl.la \
+ ${libdir}/pkgconfig/cogl-1.0.pc \
+ ${libdir}/pkgconfig/cogl-2.0-experimental.pc \
+ ${libdir}/pkgconfig/cogl-gl-1.0.pc"
+FILES_libcogl-gles2 = "${libdir}/libcogl-gles2${SOLIBS}"
+FILES_libcogl-gles2-dev = "${includedir}/cogl/cogl-gles2 \
+ ${libdir}/libcogl-gles2${SOLIBSDEV} \
+ ${libdir}/libcogl-gles2.la \
+ ${libdir}/pkgconfig/cogl-gles2-experimental.pc"
+FILES_libcogl-pango = "${libdir}/libcogl-pango${SOLIBS}"
+FILES_libcogl-pango-dev = "${includedir}/cogl/cogl-pango \
+ ${libdir}/libcogl-pango${SOLIBSDEV} \
+ ${libdir}/libcogl-pango.la \
+ ${libdir}/pkgconfig/cogl-pango-1.0.pc"
+
+# For backwards compatibility after Debian-renaming
+RPROVIDES_libcogl = "cogl-1.0"
+RCONFLICTS_libcogl = "cogl-1.0"
+RREPLACES_libcogl = "cogl-1.0"