summaryrefslogtreecommitdiff
path: root/packages/qt
diff options
context:
space:
mode:
authorRolf Leggewie <oe-devel@rolf.leggewie.biz>2007-06-06 14:13:56 +0000
committerRolf Leggewie <oe-devel@rolf.leggewie.biz>2007-06-06 14:13:56 +0000
commit2c8167306487b402abee1feffa8bf543fc44b33d (patch)
treeaa6eb893ff5b0f30c91a53c8c127e844d573b713 /packages/qt
parentc2c7d6b185a6b88381eeb4820f8bae76dfd9ac2b (diff)
parentdf08ea5a36b5ea679f95da93042a2d3c0cf21bd9 (diff)
merge of 'a4a93e205d5a389011745cf24cb1a68fbc0ed7e7'
and 'b271566db667a7d227532eeb896b9f11d7e009c9'
Diffstat (limited to 'packages/qt')
-rw-r--r--packages/qt/qt4-x11-free-4.3.0/0006-freetype-host-includes.patch23
-rw-r--r--packages/qt/qt4-x11-free-4.3.0/0007-openssl-host-includes.patch23
-rw-r--r--packages/qt/qt4-x11-free_4.1.2.bb13
-rw-r--r--packages/qt/qt4-x11-free_4.3.0.bb73
-rw-r--r--packages/qt/qt4_arch.inc13
5 files changed, 102 insertions, 43 deletions
diff --git a/packages/qt/qt4-x11-free-4.3.0/0006-freetype-host-includes.patch b/packages/qt/qt4-x11-free-4.3.0/0006-freetype-host-includes.patch
new file mode 100644
index 0000000000..cc8e115fee
--- /dev/null
+++ b/packages/qt/qt4-x11-free-4.3.0/0006-freetype-host-includes.patch
@@ -0,0 +1,23 @@
+From c9ab62bd9a56643574b3ae6e59e0ca776d4860d2 Mon Sep 17 00:00:00 2001
+From: Michael Krelin <hacker@klever.net>
+Date: Mon, 4 Jun 2007 14:48:50 +0200
+Subject: [PATCH] freetype host includes
+
+---
+ config.tests/unix/freetype/freetype.pri | 2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/config.tests/unix/freetype/freetype.pri b/config.tests/unix/freetype/freetype.pri
+index 84974bf..ab9a6f2 100644
+--- a/config.tests/unix/freetype/freetype.pri
++++ b/config.tests/unix/freetype/freetype.pri
+@@ -1,5 +1,5 @@
+ !cross_compile {
+- TRY_INCLUDEPATHS = /include /usr/include $$QMAKE_INCDIR $$QMAKE_INCDIR_X11 $$INCLUDEPATH
++ TRY_INCLUDEPATHS = $$QMAKE_INCDIR $$QMAKE_INCDIR_X11 $$INCLUDEPATH
+ for(p, TRY_INCLUDEPATHS) {
+ p = $$join(p, "", "", "/freetype2")
+ exists($$p):INCLUDEPATH *= $$p
+--
+1.5.0.7
+
diff --git a/packages/qt/qt4-x11-free-4.3.0/0007-openssl-host-includes.patch b/packages/qt/qt4-x11-free-4.3.0/0007-openssl-host-includes.patch
new file mode 100644
index 0000000000..35b71d9694
--- /dev/null
+++ b/packages/qt/qt4-x11-free-4.3.0/0007-openssl-host-includes.patch
@@ -0,0 +1,23 @@
+From d45943adb443ad4b85ca4504952dee743c675e1e Mon Sep 17 00:00:00 2001
+From: Michael Krelin <hacker@klever.net>
+Date: Mon, 4 Jun 2007 14:58:34 +0200
+Subject: [PATCH] openssl host includes
+
+---
+ config.tests/unix/openssl/openssl.pri | 2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/config.tests/unix/openssl/openssl.pri b/config.tests/unix/openssl/openssl.pri
+index 756e5fe..19b4061 100644
+--- a/config.tests/unix/openssl/openssl.pri
++++ b/config.tests/unix/openssl/openssl.pri
+@@ -1,5 +1,5 @@
+ !cross_compile {
+- TRY_INCLUDEPATHS = /include /usr/include /usr/local/include $$QMAKE_INCDIR $$INCLUDEPATH
++ TRY_INCLUDEPATHS = $$QMAKE_INCDIR $$INCLUDEPATH
+ for(p, TRY_INCLUDEPATHS) {
+ pp = $$join(p, "", "", "/openssl")
+ exists($$pp):INCLUDEPATH *= $$p
+--
+1.5.0.7
+
diff --git a/packages/qt/qt4-x11-free_4.1.2.bb b/packages/qt/qt4-x11-free_4.1.2.bb
index 25c64379d9..32eb3ced35 100644
--- a/packages/qt/qt4-x11-free_4.1.2.bb
+++ b/packages/qt/qt4-x11-free_4.1.2.bb
@@ -25,18 +25,7 @@ export QTDIR = "${S}"
STAGING_QT_DIR = "${STAGING_DIR}/${TARGET_SYS}/qt4"
EXTRA_OEMAKE = "-e"
-def qt_arch(d):
- import bb, re
- arch = bb.data.getVar('TARGET_ARCH', d, 1)
- if re.match("^i.86$", arch):
- arch = "x86"
- elif re.match("^arm.*", arch):
- arch = "arm"
- elif arch == "x86_64":
- arch = "x86"
- elif arch == "mipsel":
- arch = "mips"
- return arch
+require qt4_arch.inc
QT_ARCH := "${@qt_arch(d)}"
diff --git a/packages/qt/qt4-x11-free_4.3.0.bb b/packages/qt/qt4-x11-free_4.3.0.bb
index da9817d852..035efa989b 100644
--- a/packages/qt/qt4-x11-free_4.3.0.bb
+++ b/packages/qt/qt4-x11-free_4.3.0.bb
@@ -5,14 +5,17 @@ LICENSE = "GPL QPL"
DEPENDS = "uicmoc4-native qmake2-native freetype jpeg virtual/libx11 xft libxext libxrender libxrandr libxcursor dbus"
RDEPENDS_${PN} = "${QTPACKAGES}"
PROVIDES = "qt4x11"
-PR = "r1"
+
+PR = "r2"
SRC_URI = "ftp://ftp.trolltech.com/qt/source/qt-x11-opensource-src-${PV}.tar.gz \
file://0001-cross-compile.patch;patch=1 \
file://0002-fix-resinit-declaration.patch;patch=1 \
file://0003-no-tools.patch;patch=1 \
file://0004-no-qmake.patch;patch=1 \
- file://0005-fix-mkspecs.patch;patch=1"
+ file://0005-fix-mkspecs.patch;patch=1 \
+ file://0006-freetype-host-includes.patch;patch=1 \
+ file://0007-openssl-host-includes.patch;patch=1"
S = "${WORKDIR}/qt-x11-opensource-src-${PV}"
PARALLEL_MAKE = ""
@@ -23,18 +26,7 @@ export QTDIR = "${S}"
STAGING_QT_DIR = "${STAGING_DIR}/${TARGET_SYS}/qt4"
EXTRA_OEMAKE = "-e"
-def qt_arch(d):
- import bb, re
- arch = bb.data.getVar('TARGET_ARCH', d, 1)
- if re.match("^i.86$", arch):
- arch = "x86"
- elif re.match("^arm.*", arch):
- arch = "arm"
- elif arch == "x86_64":
- arch = "x86"
- elif arch == "mipsel":
- arch = "mips"
- return arch
+require qt4_arch.inc
QT_ARCH := "${@qt_arch(d)}"
@@ -45,7 +37,8 @@ QT_CONFIG_FLAGS = "-release -shared -qt-zlib -system-libjpeg -no-nas-sound -no-s
-no-sse -no-sse2 -no-mmx -no-3dnow \
-no-sql-ibase -no-sql-mysql -no-sql-odbc -no-sql-psql -no-sql-sqlite -no-sql-sqlite2 \
-qdbus \
- -verbose -stl -no-accessibility"
+ -verbose -stl -no-accessibility \
+ -pch -no-glib"
EXTRA_ENV = 'QMAKE="${STAGING_BINDIR_NATIVE}/qmake2 -after DEFINES+=QT_NO_XIM INCPATH+=${STAGING_INCDIR} \
INCPATH+=${STAGING_INCDIR}/freetype2 LIBS+=-L${STAGING_LIBDIR}" \
@@ -119,11 +112,16 @@ do_install() {
do
install -m 0755 $binary ${D}${bindir}/qt4-demos/
done
+ rm ${D}${bindir}/rcc ${D}${bindir}/uic ${D}${bindir}/moc
}
-QTPACKAGES = "libqtcore4 libqtgui4 libqtnetwork4 libqtsql4 libqtsvg4 libqttest4 libqtxml4 \
- libqtdesigner4 libqtdesignercomponents4 libqt3support4 \
- libqtassistantclient4 libqtscript4 libqtdbus4 \
+QTPACKAGES = "libqtcore4 libqtcore4-dev libqtgui4 libqtgui4-dev libqtnetwork4 libqtnetwork4-dev \
+ libqtsql4 libqtsql4-dev libqtsvg4 libqtsvg4-dev libqttest4 libqttest4-dev \
+ libqtxml4 libqtxml4-dev \
+ libqtdesigner4 libqtdesigner4-dev libqtdesignercomponents4 libqtdesignercomponents4-dev \
+ libqt3support4 libqt3support4-dev \
+ libqtassistantclient4 libqtassistantclient4-dev libqtscript4 libqtscript4-dev \
+ libqtdbus4 libqtdbus4-dev \
qt4-assistant qt4-common qt4-designer qt4-demos qt4-examples qt4-linguist \
qt4-pixeltool qt4-dbus \
qt4-plugins-accessible qt4-plugins-codecs qt4-plugins-designer qt4-plugins-imageformats qt4-plugins-sqldrivers \
@@ -133,19 +131,32 @@ PACKAGES += "${QTPACKAGES}"
ALLOW_EMPTY = "1"
FILES_${PN} = ""
-FILES_libqtcore4 = "${libdir}/libQtCore.so.*"
-FILES_libqtgui4 = "${libdir}/libQtGui.so.*"
-FILES_libqtnetwork4 = "${libdir}/libQtNetwork.so.*"
-FILES_libqtsql4 = "${libdir}/libQtSql.so.*"
-FILES_libqtsvg4 = "${libdir}/libQtSvg.so.*"
-FILES_libqttest4 = "${libdir}/libQtTest.so.*"
-FILES_libqtxml4 = "${libdir}/libQtXml.so.*"
-FILES_libqtdesigner4 = "${libdir}/libQtDesigner.so.*"
-FILES_libqtdesignercomponents4 = "${libdir}/libQtDesignerComponents.so.*"
-FILES_libqt3support4 = "${libdir}/libQt3Support.so.*"
-FILES_libqtassistantclient4 = "${libdir}/libQtAssistantClient.so.*"
-FILES_libqtscript4 = "${libdir}/libQtScript.so.*"
-FILES_libqtdbus4 = "${libdir}/libQtDBus.so.*"
+FILES_libqtcore4 = "${libdir}/libQtCore.so.*"
+FILES_libqtcore4-dev = "${libdir}/libQtCore.so"
+FILES_libqtgui4 = "${libdir}/libQtGui.so.*"
+FILES_libqtgui4-dev = "${libdir}/libQtGui.so"
+FILES_libqtnetwork4 = "${libdir}/libQtNetwork.so.*"
+FILES_libqtnetwork4-dev = "${libdir}/libQtNetwork.so"
+FILES_libqtsql4 = "${libdir}/libQtSql.so.*"
+FILES_libqtsql4-dev = "${libdir}/libQtSql.so"
+FILES_libqtsvg4 = "${libdir}/libQtSvg.so.*"
+FILES_libqtsvg4-dev = "${libdir}/libQtSvg.so"
+FILES_libqttest4 = "${libdir}/libQtTest.so.*"
+FILES_libqttest4-dev = "${libdir}/libQtTest.so"
+FILES_libqtxml4 = "${libdir}/libQtXml.so.*"
+FILES_libqtxml4-dev = "${libdir}/libQtXml.so"
+FILES_libqtdesigner4 = "${libdir}/libQtDesigner.so.*"
+FILES_libqtdesigner4-dev = "${libdir}/libQtDesigner.so"
+FILES_libqtdesignercomponents4 = "${libdir}/libQtDesignerComponents.so.*"
+FILES_libqtdesignercomponents4-dev = "${libdir}/libQtDesignerComponents.so"
+FILES_libqt3support4 = "${libdir}/libQt3Support.so.*"
+FILES_libqt3support4-dev = "${libdir}/libQt3Support.so"
+FILES_libqtassistantclient4 = "${libdir}/libQtAssistantClient.so.*"
+FILES_libqtassistantclient4-dev = "${libdir}/libQtAssistantClient.so"
+FILES_libqtscript4 = "${libdir}/libQtScript.so.*"
+FILES_libqtscript4-dev = "${libdir}/libQtScript.so"
+FILES_libqtdbus4 = "${libdir}/libQtDBus.so.*"
+FILES_libqtdbus4-dev = "${libdir}/libQtDBus.so"
FILES_qt4-plugins-accessible = "${libdir}/plugins/accessible/*.so"
FILES_qt4-plugins-codecs = "${libdir}/plugins/codecs/*.so"
diff --git a/packages/qt/qt4_arch.inc b/packages/qt/qt4_arch.inc
new file mode 100644
index 0000000000..11bfed8a1c
--- /dev/null
+++ b/packages/qt/qt4_arch.inc
@@ -0,0 +1,13 @@
+def qt_arch(d):
+ import bb, re
+ arch = bb.data.getVar('TARGET_ARCH', d, 1)
+ if re.match("^i.86$", arch):
+ arch = "x86"
+ elif re.match("^arm.*", arch):
+ arch = "arm"
+ elif arch == "x86_64":
+ arch = "x86"
+ elif arch == "mipsel":
+ arch = "mips"
+ return arch
+