qt4: make use of qt4-tools-native instead of qmake2-native and uicmoc4-native
authorJeremy Lainé <jeremy.laine@m4x.org>
Wed, 25 Mar 2009 11:05:40 +0000 (12:05 +0100)
committerJeremy Lainé <jeremy.laine@m4x.org>
Wed, 25 Mar 2009 11:05:40 +0000 (12:05 +0100)
classes/qmake2.bbclass
recipes/qt4/qt4-x11-free.inc
recipes/qt4/qt4-x11-free_4.1.2.bb
recipes/qt4/qt4-x11-free_4.3.3.bb
recipes/qt4/qt4-x11-free_4.4.3.bb
recipes/qt4/qt_depends.inc
recipes/qt4/qt_staging.inc

index 9ced896..5ea31a9 100644 (file)
@@ -3,7 +3,7 @@
 #
 inherit qmake_base
 
-DEPENDS_prepend = "qmake2-native uicmoc4-native "
+DEPENDS_prepend = "qt4-tools-native "
 
 export QMAKESPEC = "${STAGING_DATADIR}/qt4/mkspecs/${TARGET_OS}-oe-g++"
 export OE_QMAKE_UIC = "${STAGING_BINDIR_NATIVE}/uic4"
index 93e1175..6f49042 100644 (file)
@@ -5,7 +5,6 @@ HOMEPAGE = "http://www.trolltech.com"
 LICENSE = "GPL QPL"
 DEPENDS += "virtual/libx11 fontconfig xft libxext libxrender libxrandr libxcursor"
 PROVIDES = "qt4x11"
-PR = "r11"
 
 SRC_URI = "ftp://ftp.trolltech.com/qt/source/qt-x11-opensource-src-${PV}.tar.gz \
            file://0001-cross-compile.patch;patch=1 \
index 54c7064..1b76280 100644 (file)
@@ -2,9 +2,9 @@ SECTION = "x11/libs"
 PRIORITY = "optional"
 HOMEPAGE = "http://www.trolltech.com"
 LICENSE = "GPL QPL"
-DEPENDS = "uicmoc4-native qmake2-native freetype jpeg virtual/libx11 xft libxext libxrender libxrandr libxcursor"
+DEPENDS = "qt4-tools-native freetype jpeg virtual/libx11 xft libxext libxrender libxrandr libxcursor"
 PROVIDES = "qt4x11"
-PR = "r1"
+PR = "r2"
 
 SRC_URI = "ftp://ftp.trolltech.com/qt/source/qt-x11-opensource-src-${PV}.tar.gz \
            file://cross-compile.patch;patch=1 \
index 7d30503..766b26d 100644 (file)
@@ -1,4 +1,6 @@
 require qt4-x11-free.inc
+PR = "r12"
+
 SRC_URI += " \
            file://0002-fix-resinit-declaration.patch;patch=1 \
            file://0006-freetype-host-includes.patch;patch=1 \
index d1bf335..c675694 100644 (file)
@@ -1,5 +1,5 @@
 require qt4-x11-free.inc
-PR = "r5"
+PR = "r6"
 
 SRC_URI += " \
            file://0002-fix-resinit-declaration.patch;patch=1 \
index 26cffa2..bdb5faf 100644 (file)
@@ -1,3 +1,3 @@
 inherit pkgconfig qmake_base
 
-DEPENDS += " uicmoc4-native qmake2-native freetype jpeg libpng zlib dbus openssl glib-2.0 gstreamer gst-plugins-base"
+DEPENDS += " qt4-tools-native freetype jpeg libpng zlib dbus openssl glib-2.0 gstreamer gst-plugins-base"
index 21e1b4c..c7b1e66 100644 (file)
@@ -16,12 +16,10 @@ do_stage_append() {
     sed -i s#"-L${S}/lib"##g libQt*.la
     sed -i s#'$(OE_QMAKE_LIBS_X11)'#"${OE_QMAKE_LIBS_X11}"#g libQt*.la
 
-    # FIXME: is this really needed?
-    install -d ${STAGING_DIR_TARGET}/qt4/bin
-    cp ${STAGING_DIR_NATIVE}/qt4/bin/* ${STAGING_DIR_TARGET}/qt4/bin/ || true 
-    cp ${STAGING_DIR_NATIVE}/${bindir}/{rcc*,uic*,moc*} ${STAGING_DIR_TARGET}/qt4/bin/ || true 
-    for qttool in ${STAGING_DIR_TARGET}/qt4/bin/*4 ; do
-         ln -sf $qttool  ${STAGING_DIR_TARGET}/qt4/bin/$(basename $qttool |sed s:4::g) 
+    install -d ${STAGING_DATADIR}/${QT_DIR_NAME}/bin
+    ln -sf ${STAGING_BINDIR_NATIVE}/qmake2 ${STAGING_DATADIR}/${QT_DIR_NAME}/bin/qmake
+    for qttool in qmake moc uic uic3 rcc lrelease lupdate; do
+         ln -sf ${STAGING_BINDIR_NATIVE}/${qttool}4 ${STAGING_DATADIR}/${QT_DIR_NAME}/bin/${qttool}
     done
 }