[oe] [RFC][PATCH] libomxil-bellagio: inherit class `pkgconfig` to stage pkg-config file `libomxil-bellagio.pc`
Paul Menzel
paulepanter at users.sourceforge.net
Mon Jan 17 00:08:06 UTC 2011
Date: Sun Jan 16 20:16:47 2011 +0100
`libomxil-bellagio` distributes a pkg-config file [1] which is only put to the following location with the following content.
$ more angstrom-dev/sysroots/armv7a-angstrom-linux-gnueabi/usr/lib/pkgconfig/libomxil-bellagio.pc
prefix=/usr
exec_prefix=/usr
libdir=/usr/lib
includedir=/usr/include
toolsdir=/usr/bin
pluginsdir=${libdir}/bellagio
Name: libomxil
Description: OpenMAX Integration Layer library
Version: 0.9.2.1
Libs: -L${libdir} -lomxil-bellagio
Cflags: -I${includedir} -I${includedir}/bellagio
To make it useful for crosscompiling inherit `pkgconfig.bbclass`.
[1] http://omxil.git.sourceforge.net/git/gitweb.cgi?p=omxil/omxil;a=blob;f=libomxil-bellagio.pc.in;h=abae71bf4ade80e26b28a755f214a96285fd5c47;hb=772f0eca88b242ffb5469e8e381c63ce1f7cd3e1
Signed-off-by: Paul Menzel <paulepanter at users.sourceforge.net>
---
The reason for tagging this `[RFC]` is, that inheriting `pkgconfig.bbclass` does not change anything in the behavior. Could commit c2c8fe4c [1]
pkgconfig.bbclass: don't blindly install every .pc file
be the reason for this? But I do not see a warning printed. I tried the following, but it did not work. (But because of a path issue.)
+do_install_append () {
+ install -d ${D}${libdir}/pkgconfig
+ install -m 0644 ${WORKDIR}/libomxil-bellagio.pc ${D}${libdir}/pkgconfig/
+}
[1] http://cgit.openembedded.org/cgit.cgi/openembedded/commit/?id=c2c8fe4c5629add94bd0b922f5b3446624a9f4d8
---
recipes/openmax/libomxil-bellagio.inc | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/recipes/openmax/libomxil-bellagio.inc b/recipes/openmax/libomxil-bellagio.inc
index 8c3a82c..8ec327e 100644
--- a/recipes/openmax/libomxil-bellagio.inc
+++ b/recipes/openmax/libomxil-bellagio.inc
@@ -3,11 +3,11 @@ LICENSE = "LGPLv2"
DEPENDS = "alsa-lib ffmpeg \
${@base_conditional('ENTERPRISE_DISTRO', '1', '', 'libmad', d)}"
-INC_PR = "r7"
+INC_PR = "r8"
SRC_URI = "${SOURCEFORGE_MIRROR}/omxil/${PN}-${PV}.tar.gz"
-inherit autotools
+inherit autotools pkgconfig
FILES_${PN} += "${libdir}/bellagio/*.so ${libdir}/bellagio/*.la"
FILES_${PN}-dev += "${libdir}/bellagio/*.a"
--
1.7.2.3
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.openembedded.org/pipermail/openembedded-devel/attachments/20110117/edeca633/attachment-0002.sig>
More information about the Openembedded-devel
mailing list