qt5-native: Add initial draft
authorOtavio Salvador <otavio@ossystems.com.br>
Tue, 23 Oct 2012 17:51:25 +0000 (15:51 -0200)
committerPatrick Ohly <patrick.ohly@intel.com>
Fri, 9 Jan 2015 16:43:20 +0000 (08:43 -0800)
(From meta-qt5 rev: 4927bd8c5675151188efa8b4d36bba9640ee3556)

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
meta-qt5/recipes-qt/qt5/qt5-native.inc [new file with mode: 0644]
meta-qt5/recipes-qt/qt5/qt5-native_5.0.0.bb [new file with mode: 0644]
meta-qt5/recipes-qt/qt5/qt5.inc [new file with mode: 0644]

diff --git a/meta-qt5/recipes-qt/qt5/qt5-native.inc b/meta-qt5/recipes-qt/qt5/qt5-native.inc
new file mode 100644 (file)
index 0000000..f46817d
--- /dev/null
@@ -0,0 +1,49 @@
+DESCRIPTION = "Native version of Qt/[X11|Mac|Embedded]"
+DEPENDS = "zlib-native dbus-native"
+SECTION = "libs"
+HOMEPAGE = "http://qt-project.org"
+PROVIDES = "qt5-tools-native"
+
+LICENSE = "LGPLv2.1 | GPLv3"
+LIC_FILES_CHKSUM = "file://LICENSE.LGPL;md5=cc5963be04f8b19c3e3c46bc31f0f6e1 \
+                    file://LICENSE.GPL;md5=d32239bcb673463ab874e80d47fae504 \
+                    file://LGPL_EXCEPTION.txt;md5=411080a56ff917a5a1aa08c98acae354"
+
+INC_PR = "r0"
+
+include qt5.inc
+
+inherit native
+
+QT_MODULE = "qtbase"
+
+EXTRA_OECONF = "-prefix ${prefix} \
+                -L ${STAGING_LIBDIR_NATIVE} \
+                -I ${STAGING_INCDIR_NATIVE} \
+                -system-zlib \
+                -no-libjpeg \
+                -no-libpng \
+                -no-gif \
+                -no-accessibility \
+                -no-cups \
+                -no-nis \
+                -no-gui \
+                -no-qml-debug \
+                -no-sql-mysql \
+                -no-sql-sqlite \
+                -no-opengl \
+                -no-openssl \
+                -verbose -release \
+                -headerdir ${includedir}/qt5 \
+                -no-glib \
+                -no-iconv \
+                -no-fast \
+                -silent \
+                -no-rpath"
+
+do_configure() {
+       # Avoid setting QMAKE_LINK from LD (since we want the linker to be g++)
+       unset LD
+
+       (echo o; echo yes) | ./configure ${EXTRA_OECONF} || die "Configuring qt failed. EXTRA_OECONF was ${EXTRA_OECONF}"
+}
diff --git a/meta-qt5/recipes-qt/qt5/qt5-native_5.0.0.bb b/meta-qt5/recipes-qt/qt5/qt5-native_5.0.0.bb
new file mode 100644 (file)
index 0000000..a3e5e76
--- /dev/null
@@ -0,0 +1,6 @@
+require qt5-native.inc
+
+PR = "${INC_PR}.0"
+
+SRC_URI[md5sum] = "2e1e5198a3a139099bfefe75ed29e043"
+SRC_URI[sha256sum] = "d1a6b06fb3d44e83bbd5b7fe5bc1177ff437f992efafe0154cf37b18cfa87109"
diff --git a/meta-qt5/recipes-qt/qt5/qt5.inc b/meta-qt5/recipes-qt/qt5/qt5.inc
new file mode 100644 (file)
index 0000000..ff5f2b1
--- /dev/null
@@ -0,0 +1,8 @@
+# Copyright (C) 2012 O.S. Systems Software LTDA.
+
+QT_MODULE ?= "${PN}"
+QT_VERSION ?= "${PV}-beta1"
+
+SRC_URI = "http://releases.qt-project.org/qt5.0/beta1/split_sources/${QT_MODULE}-opensource-src-${QT_VERSION}.tar.xz"
+
+S = "${WORKDIR}/${QT_MODULE}-opensource-src-${QT_VERSION}"