diff options
-rw-r--r-- | meta/recipes-qt/qt4/qt4-embedded.inc | 2 | ||||
-rw-r--r-- | meta/recipes-qt/qt4/qt4-tools-nativesdk.inc | 5 | ||||
-rw-r--r-- | meta/recipes-qt/qt4/qt4-x11-free.inc | 2 | ||||
-rw-r--r-- | meta/recipes-qt/qt4/qt4.inc | 5 | ||||
-rw-r--r-- | meta/recipes-qt/qt4/qt4_arch.inc | 36 |
5 files changed, 24 insertions, 26 deletions
diff --git a/meta/recipes-qt/qt4/qt4-embedded.inc b/meta/recipes-qt/qt4/qt4-embedded.inc index 0b304a080b..05803d15e7 100644 --- a/meta/recipes-qt/qt4/qt4-embedded.inc +++ b/meta/recipes-qt/qt4/qt4-embedded.inc | |||
@@ -2,7 +2,7 @@ DESCRIPTION = "Qt is a versatile cross-platform application framework -- this is | |||
2 | SECTION = "libs" | 2 | SECTION = "libs" |
3 | HOMEPAGE = "http://qt.nokia.com" | 3 | HOMEPAGE = "http://qt.nokia.com" |
4 | DEPENDS += "directfb tslib" | 4 | DEPENDS += "directfb tslib" |
5 | INC_PR = "r45" | 5 | INC_PR = "r46" |
6 | 6 | ||
7 | QT_BASE_LIB ?= "libqt-embedded" | 7 | QT_BASE_LIB ?= "libqt-embedded" |
8 | 8 | ||
diff --git a/meta/recipes-qt/qt4/qt4-tools-nativesdk.inc b/meta/recipes-qt/qt4/qt4-tools-nativesdk.inc index efb61bf142..a1dd8df0d1 100644 --- a/meta/recipes-qt/qt4/qt4-tools-nativesdk.inc +++ b/meta/recipes-qt/qt4/qt4-tools-nativesdk.inc | |||
@@ -4,7 +4,7 @@ SECTION = "libs" | |||
4 | HOMEPAGE = "http://qt.nokia.com" | 4 | HOMEPAGE = "http://qt.nokia.com" |
5 | LICENSE = "LGPLv2.1 | GPLv3" | 5 | LICENSE = "LGPLv2.1 | GPLv3" |
6 | 6 | ||
7 | INC_PR = "r10" | 7 | INC_PR = "r11" |
8 | 8 | ||
9 | FILESEXTRAPATHS =. "${FILE_DIRNAME}/qt-${PV}:" | 9 | FILESEXTRAPATHS =. "${FILE_DIRNAME}/qt-${PV}:" |
10 | 10 | ||
@@ -40,7 +40,7 @@ EXTRA_OECONF = "-prefix ${prefix} \ | |||
40 | -verbose -release -fast -static \ | 40 | -verbose -release -fast -static \ |
41 | -platform ${TARGET_OS}-oe-g++ \ | 41 | -platform ${TARGET_OS}-oe-g++ \ |
42 | -xplatform ${TARGET_OS}-oe-g++ \ | 42 | -xplatform ${TARGET_OS}-oe-g++ \ |
43 | -arch ${@qt_arch(d)} \ | 43 | -arch ${QT_ARCH} \ |
44 | -embedded -no-freetype -no-glib -no-iconv \ | 44 | -embedded -no-freetype -no-glib -no-iconv \ |
45 | -qt3support \ | 45 | -qt3support \ |
46 | -I${STAGING_DIR_HOST}${SDKPATHNATIVE}/usr/include/dbus-1.0 \ | 46 | -I${STAGING_DIR_HOST}${SDKPATHNATIVE}/usr/include/dbus-1.0 \ |
@@ -71,6 +71,7 @@ do_configure() { | |||
71 | if [ ! -e bin/qmake ]; then | 71 | if [ ! -e bin/qmake ]; then |
72 | ln -sf ${STAGING_BINDIR_NATIVE}/qmake2 bin/qmake | 72 | ln -sf ${STAGING_BINDIR_NATIVE}/qmake2 bin/qmake |
73 | fi | 73 | fi |
74 | set_arch | ||
74 | (echo o; echo yes) | CC="${CC}" CXX="${CXX}" ./configure ${EXTRA_OECONF} || die "Configuring qt failed. EXTRA_OECONF was ${EXTRA_OECONF}" | 75 | (echo o; echo yes) | CC="${CC}" CXX="${CXX}" ./configure ${EXTRA_OECONF} || die "Configuring qt failed. EXTRA_OECONF was ${EXTRA_OECONF}" |
75 | } | 76 | } |
76 | 77 | ||
diff --git a/meta/recipes-qt/qt4/qt4-x11-free.inc b/meta/recipes-qt/qt4/qt4-x11-free.inc index da989623f1..29bbfc6be0 100644 --- a/meta/recipes-qt/qt4/qt4-x11-free.inc +++ b/meta/recipes-qt/qt4/qt4-x11-free.inc | |||
@@ -5,7 +5,7 @@ HOMEPAGE = "http://qt.nokia.com" | |||
5 | SECTION = "x11/libs" | 5 | SECTION = "x11/libs" |
6 | DEPENDS += "virtual/libgl virtual/libx11 fontconfig libxft libxext libxrender libxrandr libxcursor" | 6 | DEPENDS += "virtual/libgl virtual/libx11 fontconfig libxft libxext libxrender libxrandr libxcursor" |
7 | 7 | ||
8 | INC_PR = "r43" | 8 | INC_PR = "r44" |
9 | 9 | ||
10 | QT_GLFLAGS ?= "${@base_contains('DISTRO_FEATURES', 'opengl', '-opengl', '-no-opengl', d)} " | 10 | QT_GLFLAGS ?= "${@base_contains('DISTRO_FEATURES', 'opengl', '-opengl', '-no-opengl', d)} " |
11 | QT_GLFLAGS_qemux86 = "-opengl" | 11 | QT_GLFLAGS_qemux86 = "-opengl" |
diff --git a/meta/recipes-qt/qt4/qt4.inc b/meta/recipes-qt/qt4/qt4.inc index 468a46ff74..23fda336b2 100644 --- a/meta/recipes-qt/qt4/qt4.inc +++ b/meta/recipes-qt/qt4/qt4.inc | |||
@@ -4,8 +4,6 @@ DEPENDS += "qt4-tools-native freetype jpeg libpng zlib dbus openssl glib-2.0 gst | |||
4 | DEPENDS += "${@base_contains('DISTRO_FEATURES', 'pulseaudio', 'pulseaudio', '', d)}" | 4 | DEPENDS += "${@base_contains('DISTRO_FEATURES', 'pulseaudio', 'pulseaudio', '', d)}" |
5 | 5 | ||
6 | require qt4_arch.inc | 6 | require qt4_arch.inc |
7 | QT_ARCH := "${@qt_arch(d)}" | ||
8 | QT_ENDIAN = "${@qt_endian(d)}" | ||
9 | 7 | ||
10 | QT_DISTRO_FLAGS ?= "-no-accessibility -no-sm" | 8 | QT_DISTRO_FLAGS ?= "-no-accessibility -no-sm" |
11 | QT_DISTRO_FLAGS_linuxstdbase = "-sm" | 9 | QT_DISTRO_FLAGS_linuxstdbase = "-sm" |
@@ -200,6 +198,9 @@ do_configure() { | |||
200 | unset QMAKESPEC | 198 | unset QMAKESPEC |
201 | unset QTDIR | 199 | unset QTDIR |
202 | 200 | ||
201 | set_arch | ||
202 | set_endian | ||
203 | |||
203 | if [ ! -e bin/qmake ]; then | 204 | if [ ! -e bin/qmake ]; then |
204 | ln -sf ${STAGING_BINDIR_NATIVE}/qmake2 bin/qmake | 205 | ln -sf ${STAGING_BINDIR_NATIVE}/qmake2 bin/qmake |
205 | fi | 206 | fi |
diff --git a/meta/recipes-qt/qt4/qt4_arch.inc b/meta/recipes-qt/qt4/qt4_arch.inc index bde68dc2e0..c1d35ab726 100644 --- a/meta/recipes-qt/qt4/qt4_arch.inc +++ b/meta/recipes-qt/qt4/qt4_arch.inc | |||
@@ -2,24 +2,20 @@ inherit siteinfo | |||
2 | 2 | ||
3 | ARM_INSTRUCTION_SET = "arm" | 3 | ARM_INSTRUCTION_SET = "arm" |
4 | 4 | ||
5 | def qt_arch(d): | 5 | set_arch() { |
6 | import bb, re | 6 | case ${TARGET_ARCH} in |
7 | arch = d.getVar('TARGET_ARCH', True) | 7 | arm*) QT_ARCH=arm ;; |
8 | if re.match("^i.86$", arch): | 8 | i*86*) QT_ARCH=i386 ;; |
9 | arch = "i386" | 9 | mips*) QT_ARCH=mips ;; |
10 | elif re.match("^arm.*", arch): | 10 | powerpc*) QT_ARCH=powerpc ;; |
11 | arch = "arm" | 11 | x86_64*) QT_ARCH=x86_64 ;; |
12 | elif arch == "x86_64": | 12 | esac |
13 | arch = "x86" | 13 | } |
14 | elif arch == "mipsel": | ||
15 | arch = "mips" | ||
16 | return arch | ||
17 | 14 | ||
18 | def qt_endian(d): | 15 | set_endian() { |
19 | import bb | 16 | if [ ${SITEINFO_ENDIANNESS} = "le" ] ; then |
20 | if d.getVar('SITEINFO_ENDIANNESS', True) == "le": | 17 | QT_ENDIAN="-little-endian" |
21 | return "-little-endian" | 18 | elif [ ${SITEINFO_ENDIANNESS} = "be" ] ; then |
22 | elif d.getVar('SITEINFO_ENDIANNESS', True) == "be": | 19 | QT_ENDIAN="-big-endian" |
23 | return "-big-endian" | 20 | fi |
24 | else: | 21 | } |
25 | assert False | ||