summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2007-07-25 14:31:04 +0000
committerKoen Kooi <koen@openembedded.org>2007-07-25 14:31:04 +0000
commitaf3fdf9495476b000ff6b50e8c3b8e15fa1ff422 (patch)
treeb4e577132b9814018484bfd95b902d58cd4cc60f
parent905009f453a941085816827efbf12f048f18cd54 (diff)
webkit: add some qmake magic from zecke to make install and staging work better
-rw-r--r--packages/webkit/webkit_svn.bb15
1 files changed, 12 insertions, 3 deletions
diff --git a/packages/webkit/webkit_svn.bb b/packages/webkit/webkit_svn.bb
index 10884a3dca..c5f5dcafa7 100644
--- a/packages/webkit/webkit_svn.bb
+++ b/packages/webkit/webkit_svn.bb
@@ -27,7 +27,7 @@ do_configure_append() {
qmake2 -spec ${QMAKESPEC} CONFIG+=gdk-port CONFIG-=qt CONFIG-=release CONFIG+=debug
mkdir -p WebKitBuilds/Debug
cd WebKitBuilds/Debug
- PWD=`pwd` qmake2 -spec ${QMAKESPEC} -r OUTPUT_DIR=$PWD/ CONFIG-=qt CONFIG+=gdk-port $PWD/../../WebKit.pro
+ PWD=`pwd` qmake2 -spec ${QMAKESPEC} -r OUTPUT_DIR=$PWD/ CONFIG-=qt CONFIG+=gdk-port $PWD/../../WebKit.pro WEBKIT_INC_DIR=${prefix}/include WEBKIT_LIB_DIR=${libdir}
}
do_compile_prepend() {
@@ -44,11 +44,20 @@ do_install() {
install -d ${D}${libdir}/pkgconfig
install -m 0755 ${S}/WebKitBuilds/Debug/WebKitTools/GdkLauncher/GdkLauncher ${D}${bindir}
- cp -pPR WebKitBuilds/Debug/lib/*.so* ${D}${libdir}
- cp -pPR WebKitBuilds/Debug/lib/*.pc ${D}${libdir}/pkgconfig/ || true
+ cd ${S}/WebKitBuilds/Debug
+ PWD=`pwd` qmake2 -spec ${QMAKESPEC} -r OUTPUT_DIR=$PWD/ CONFIG-=qt CONFIG+=gdk-port $PWD/../../WebKit.pro WEBKIT_INC_DIR=${D}${prefix}/include WEBKIT_LIB_DIR=${D}${libdir}
+ oe_runmake install
}
+do_stage() {
+ install -d ${STAGING_LIBDIR}
+ install -d ${STAGING_INCDIR}
+ cd ${S}/WebKitBuilds/Debug
+ PWD=`pwd` qmake2 -spec ${QMAKESPEC} -r OUTPUT_DIR=$PWD/ CONFIG-=qt CONFIG+=gdk-port $PWD/../../WebKit.pro WEBKIT_INC_DIR=${STAGING_INCDIR} WEBKIT_LIB_DIR=${STAGING_LIBDIR}
+ oe_runmake install
+}
+
PACKAGES =+ "webkit-gdklauncher-dbg webkit-gdklauncher"
FILES_webkit-gdklauncher = "${bindir}/GdkLauncher"