From: Andreas Oberritter <obi@opendreambox.org>
To: openembedded-core@lists.openembedded.org
Subject: [PATCH 1/3] cogl-1.0: put each library into its own package
Date: Thu, 11 Jul 2013 02:56:35 +0200 [thread overview]
Message-ID: <1373504197-9550-1-git-send-email-obi@opendreambox.org> (raw)
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>
---
meta/recipes-graphics/cogl/cogl-1.0.inc | 27 ++++++++++++++++++++++++++-
1 file changed, 26 insertions(+), 1 deletion(-)
diff --git a/meta/recipes-graphics/cogl/cogl-1.0.inc b/meta/recipes-graphics/cogl/cogl-1.0.inc
index 55eb003..8400668 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"
--
1.8.1.2
next reply other threads:[~2013-07-11 0:56 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-11 0:56 Andreas Oberritter [this message]
2013-07-11 0:56 ` [PATCH 2/3] cogl-1.0: make building cogl-pango optional Andreas Oberritter
2013-07-11 8:56 ` Burton, Ross
2013-07-11 9:18 ` Tomas Frydrych
2013-07-11 10:59 ` Andreas Oberritter
2013-07-11 0:56 ` [PATCH 3/3] cogl-1.0: add option to enable GLES1 Andreas Oberritter
2013-07-11 8:52 ` Burton, Ross
2013-07-11 10:53 ` Andreas Oberritter
2013-07-11 11:01 ` Burton, Ross
2013-07-11 11:51 ` Phil Blundell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1373504197-9550-1-git-send-email-obi@opendreambox.org \
--to=obi@opendreambox.org \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox