diff options
| author | Andreas Oberritter <obi@opendreambox.org> | 2013-07-11 00:56:35 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-07-13 18:23:33 +0100 |
| commit | 9b6011c2d11106b3419eb24e603242095b7eaa45 (patch) | |
| tree | 4509bf8af20f988d1ecc9f56f5eb8d59fe2c5092 | |
| parent | 63645af528efe5db5e8d96f1012177abd6a324a5 (diff) | |
| download | poky-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>
| -rw-r--r-- | meta/recipes-graphics/cogl/cogl-1.0.inc | 27 |
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 \ | |||
| 9 | inherit clutter | 9 | inherit clutter |
| 10 | 10 | ||
| 11 | DEPENDS = "pango glib-2.0 gdk-pixbuf" | 11 | DEPENDS = "pango glib-2.0 gdk-pixbuf" |
| 12 | PACKAGES =+ "${PN}-examples" | 12 | PACKAGES =+ "${PN}-examples \ |
| 13 | libcogl libcogl-dev \ | ||
| 14 | libcogl-gles2 libcogl-gles2-dev \ | ||
| 15 | libcogl-pango libcogl-pango-dev" | ||
| 13 | AUTOTOOLS_AUXDIR = "${S}/build" | 16 | AUTOTOOLS_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 | ||
| 56 | FILES_${PN}-examples = "${bindir}/* ${datadir}/cogl/examples-data/*" | 59 | FILES_${PN}-examples = "${bindir}/* ${datadir}/cogl/examples-data/*" |
| 60 | FILES_libcogl = "${libdir}/libcogl${SOLIBS}" | ||
| 61 | FILES_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" | ||
| 67 | FILES_libcogl-gles2 = "${libdir}/libcogl-gles2${SOLIBS}" | ||
| 68 | FILES_libcogl-gles2-dev = "${includedir}/cogl/cogl-gles2 \ | ||
| 69 | ${libdir}/libcogl-gles2${SOLIBSDEV} \ | ||
| 70 | ${libdir}/libcogl-gles2.la \ | ||
| 71 | ${libdir}/pkgconfig/cogl-gles2-experimental.pc" | ||
| 72 | FILES_libcogl-pango = "${libdir}/libcogl-pango${SOLIBS}" | ||
| 73 | FILES_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 | ||
| 79 | RPROVIDES_libcogl = "cogl-1.0" | ||
| 80 | RCONFLICTS_libcogl = "cogl-1.0" | ||
| 81 | RREPLACES_libcogl = "cogl-1.0" | ||
