[oe-commits] Simon Busch : qt4-native: introduce the native version of qt4 and remove old qt4-tools-native

git version control git at git.openembedded.org
Tue May 10 04:52:09 UTC 2011


Module: openembedded.git
Branch: master
Commit: 5a6efd58cdc85d08ab9e106c84bbac5110b5aecd
URL:    http://git.openembedded.org/?p=openembedded.git&a=commit;h=5a6efd58cdc85d08ab9e106c84bbac5110b5aecd

Author: Simon Busch <morphis at gravedo.de>
Date:   Sun May  8 14:34:16 2011 +0200

qt4-native: introduce the native version of qt4 and remove old qt4-tools-native

The new recipe is based on the qt4-tool-native one but it even installs the libraries of
qt4 and not only the tools like moc/rcc. It will not increase the build time as most
libraries are already build for the qt4-tool-native but not staged.

This commit removes the old qt4-tools-native too. All versions provided by
qt4-tools-native are even supported by qt4-native so it is a drop-in replacement.

Signed-off-by: Simon Busch <morphis at gravedo.de>
Acked-by: Otavio Salvador <otavio at ossystems.com.br>

---

 .../qt4/{qt4-tools-native.inc => qt4-native.inc}   |   34 +++++++-------------
 ...4-tools-native_4.5.2.bb => qt4-native_4.5.2.bb} |    2 +-
 ...4-tools-native_4.6.3.bb => qt4-native_4.6.3.bb} |    2 +-
 ...4-tools-native_4.7.2.bb => qt4-native_4.7.2.bb} |    4 +--
 4 files changed, 15 insertions(+), 27 deletions(-)

diff --git a/recipes/qt4/qt4-tools-native.inc b/recipes/qt4/qt4-native.inc
similarity index 65%
rename from recipes/qt4/qt4-tools-native.inc
rename to recipes/qt4/qt4-native.inc
index 4a0ccce..ee702e9 100644
--- a/recipes/qt4/qt4-tools-native.inc
+++ b/recipes/qt4/qt4-native.inc
@@ -1,11 +1,12 @@
-DESCRIPTION = "Native tools for Qt/[X11|Mac|Embedded] version 4.x"
+DESCRIPTION = "Native version Qt/[X11|Mac|Embedded]"
 DEPENDS = "zlib-native dbus-native"
 SECTION = "libs"
 HOMEPAGE = "http://www.trolltech.com"
 PRIORITY = "optional"
 LICENSE = "GPL"
+PROVIDES = "qt4-tools-native"
 
-INC_PR = "r10"
+INC_PR = "r0"
 
 inherit native
 
@@ -22,11 +23,11 @@ EXTRA_OECONF = "-prefix ${prefix} \
                 -no-libjpeg -no-libpng -no-libmng -no-libtiff \
                 -no-accessibility \
                 -no-cups \
-                -no-exceptions  \
                 -no-nas-sound \
                 -no-nis -no-openssl \
-                -verbose -release -static \
+                -verbose -release \
                 -embedded -no-freetype -no-glib -no-iconv \
+                -exceptions -xmlpatterns \
                 -qt3support"
 
 # yank default -e, otherwise we get the following error:
@@ -41,17 +42,15 @@ TOBUILD = "\
   src/tools/moc \
   src/corelib \
   src/sql \
-  src/dbus \
-  src/qt3support \
   src/xml \
+  src/network \
   src/tools/uic \
   src/tools/rcc \
-  src/network \
+  src/xmlpatterns \
+  src/dbus \
   src/gui \
-  src/tools/uic3 \
-  tools/linguist/lrelease \
-  tools/linguist/lupdate \
-  tools/qdbus \
+  src/testlib \
+  src/qt3support \
 "
 
 do_compile() {
@@ -63,16 +62,7 @@ do_compile() {
 NATIVE_INSTALL_WORKS = "1"
 
 do_install() {
-    install -d ${D}${bindir}/
-    install -m 0755 bin/qmake ${D}${bindir}/qmake2
-    for i in moc uic uic3 rcc lrelease lupdate qdbuscpp2xml qdbusxml2cpp; do
-        install -m 0755 bin/${i} ${D}${bindir}/${i}4
+    for i in ${TOBUILD}; do
+        cd ${S}/$i && oe_runmake install INSTALL_ROOT=${D}
     done
-    
-    install -d ${D}${datadir}/qt4/
-    cp -PfR mkspecs ${D}${datadir}/qt4/
-    ln -sf linux-g++ ${D}${datadir}/qt4/mkspecs/${BUILD_OS}-oe-g++
-    cp -f ${WORKDIR}/g++.conf ${WORKDIR}/linux.conf ${D}${datadir}/qt4/mkspecs/common/
-
-    install -m 0644 tools/porting/src/q3porting.xml ${D}${datadir}/qt4/
 }
diff --git a/recipes/qt4/qt4-tools-native_4.5.2.bb b/recipes/qt4/qt4-native_4.5.2.bb
similarity index 96%
rename from recipes/qt4/qt4-tools-native_4.5.2.bb
rename to recipes/qt4/qt4-native_4.5.2.bb
index 206e486..8a94694 100644
--- a/recipes/qt4/qt4-tools-native_4.5.2.bb
+++ b/recipes/qt4/qt4-native_4.5.2.bb
@@ -1,4 +1,4 @@
-require qt4-tools-native.inc
+require qt4-native.inc
 
 # Older releases have different source archive name, than .inc
 SRC_URI = "ftp://ftp.trolltech.com/qt/source/qt-embedded-linux-opensource-src-${PV}.tar.bz2 \
diff --git a/recipes/qt4/qt4-tools-native_4.6.3.bb b/recipes/qt4/qt4-native_4.6.3.bb
similarity index 91%
rename from recipes/qt4/qt4-tools-native_4.6.3.bb
rename to recipes/qt4/qt4-native_4.6.3.bb
index a188157..b0c9bcb 100644
--- a/recipes/qt4/qt4-tools-native_4.6.3.bb
+++ b/recipes/qt4/qt4-native_4.6.3.bb
@@ -1,6 +1,6 @@
 DEFAULT_PREFERENCE = "-1"
 
-require qt4-tools-native.inc
+require qt4-native.inc
 LICENSE = "LGPLv2.1 GPLv3"
 PR = "${INC_PR}.0"
 
diff --git a/recipes/qt4/qt4-tools-native_4.7.2.bb b/recipes/qt4/qt4-native_4.7.2.bb
similarity index 91%
rename from recipes/qt4/qt4-tools-native_4.7.2.bb
rename to recipes/qt4/qt4-native_4.7.2.bb
index 7dbb569..7e98035 100644
--- a/recipes/qt4/qt4-tools-native_4.7.2.bb
+++ b/recipes/qt4/qt4-native_4.7.2.bb
@@ -1,6 +1,4 @@
-DEFAULT_PREFERENCE = "-1"
-
-require qt4-tools-native.inc
+require qt4-native.inc
 LICENSE = "LGPLv2.1 GPLv3"
 
 PR = "${INC_PR}.0"





More information about the Openembedded-commits mailing list