[oe-commits] Simon Busch : libshiboken: fixup several issues with the generated pkgconfig file and bump PR
git version control
git at git.openembedded.org
Thu Jun 2 20:01:29 UTC 2011
Module: openembedded.git
Branch: testing-next
Commit: d3bfa68c288ac9de5981af949e3120ad5535eb97
URL: http://git.openembedded.org/?p=openembedded.git&a=commit;h=d3bfa68c288ac9de5981af949e3120ad5535eb97
Author: Simon Busch <morphis at gravedo.de>
Date: Wed May 25 07:06:13 2011 +0200
libshiboken: fixup several issues with the generated pkgconfig file and bump PR
Signed-off-by: Simon Busch <morphis at gravedo.de>
---
recipes/pyside/libshiboken_1.0.2.bb | 20 +++++++++++++++-----
1 files changed, 15 insertions(+), 5 deletions(-)
diff --git a/recipes/pyside/libshiboken_1.0.2.bb b/recipes/pyside/libshiboken_1.0.2.bb
index a65e4ef..a9edded 100644
--- a/recipes/pyside/libshiboken_1.0.2.bb
+++ b/recipes/pyside/libshiboken_1.0.2.bb
@@ -1,7 +1,10 @@
require shiboken.inc
+DEPENDS = "python"
RDEPENDS_${PN} = "python-core"
-PR = "${INC_PR}.0"
+PR = "${INC_PR}.1"
+
+inherit cmake pkgconfig python-dir
SRC_URI += " \
file://FindQt4.cmake \
@@ -18,7 +21,12 @@ do_configure_prepend() {
cp ${WORKDIR}/FindQt4.cmake ${S}/cmake/Modules/FindQt4.cmake
}
-do_install_prepend() {
+STAGING_LIBDIR_NATIVE = ${STAGING_DIR}/${BUILD_SYS}${prefix}/lib
+STAGING_INCDIR_NATIVE = ${STAGING_DIR}/${BUILD_SYS}${prefix}/include
+
+# NOTE: This needs to be appended to do_configure as pkgconfig.bbclass uses
+# do_install_prepend for it's fixups and we need to run before it!
+do_configure_append() {
# Fixup generated *.cmake and *.pc files for wrong paths
for i in `find ${S}/data -name "*.cmake" -type f` ; do \
sed -i -e 's:${STAGING_BINDIR_NATIVE}:${bindir}:g' \
@@ -26,16 +34,18 @@ do_install_prepend() {
-e 's:${STAGING_LIBDIR}:${libdir}:g' \
$i
done
+
# We need do this here a second time (pkgconfig.bbclass already replaces the -L.. and
# -I .. ones) as there are additional variables for python in the pkgconfig file
for i in `find ${S}/data -name "*.pc" -type f` ; do \
sed -i -e 's:${STAGING_BINDIR_NATIVE}:${bindir}:g' \
-e 's:${STAGING_INCDIR}:${includedir}:g' \
-e 's:${STAGING_LIBDIR}:${libdir}:g' \
+ -e 's:${STAGING_INCDIR_NATIVE}:${includedir}:g' \
+ -e 's:${STAGING_LIBDIR_NATIVE}:${libdir}:g' \
+ -e 's:-lshiboken:-lshiboken-${PYTHON_DIR}:g' \
$i
done
}
-inherit cmake pkgconfig
-
-FILES_${PN}-dev += "${libdir}/cmake/"
+FILES_${PN}-dev += "${libdir}/cmake/ ${libdir}/pkgconfig"
More information about the Openembedded-commits
mailing list