Received: from gravedo.de ([85.214.79.159]) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1QIhGk-0000df-QK for openembedded-devel@lists.openembedded.org; Sat, 07 May 2011 15:10:02 +0200 Received: by gravedo.de (Postfix, from userid 5001) id 05A3615E0002; Sat, 7 May 2011 15:07:23 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on h1108419.serverkompetenz.net X-Spam-Level: X-Spam-Status: No, score=-3.1 required=6.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from localhost (p54899D60.dip.t-dialin.net [84.137.157.96]) by gravedo.de (Postfix) with ESMTPSA id 9B5F515E0001; Sat, 7 May 2011 15:07:21 +0200 (CEST) From: Simon Busch To: openembedded-devel@lists.openembedded.org Date: Sat, 7 May 2011 15:07:18 +0200 Message-Id: <1304773638-24877-1-git-send-email-morphis@gravedo.de> X-Mailer: git-send-email 1.7.4.1 Subject: [PATCH] qt4-libs-native: add initial recipe X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: openembedded-devel@lists.openembedded.org List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 May 2011 13:10:02 -0000 The native version of the qt4 libraries is needed by some other native recipes to build. It's mostly a copy of the qt4-tools-native recipes with some changed configuration optons and is only available for version 4.7.2 now. Signed-off-by: Simon Busch --- recipes/qt4/qt4-libs-native.inc | 67 ++++++++++++++++++++++++++++++++++ recipes/qt4/qt4-libs-native_4.7.2.bb | 19 ++++++++++ 2 files changed, 86 insertions(+), 0 deletions(-) create mode 100644 recipes/qt4/qt4-libs-native.inc create mode 100644 recipes/qt4/qt4-libs-native_4.7.2.bb diff --git a/recipes/qt4/qt4-libs-native.inc b/recipes/qt4/qt4-libs-native.inc new file mode 100644 index 0000000..7d2116a --- /dev/null +++ b/recipes/qt4/qt4-libs-native.inc @@ -0,0 +1,67 @@ +DESCRIPTION = "Native libraries for Qt/[X11|Mac|Embedded] version 4.x" +DEPENDS = "zlib-native dbus-native" +SECTION = "libs" +HOMEPAGE = "http://www.trolltech.com" +PRIORITY = "optional" +LICENSE = "GPL" + +INC_PR = "r0" + +inherit native + +SRC_URI = "ftp://ftp.trolltech.com/qt/source/qt-everywhere-opensource-src-${PV}.tar.gz \ + file://qt-config.patch \ + file://g++.conf \ + file://linux.conf" +S = "${WORKDIR}/qt-everywhere-opensource-src-${PV}" + +EXTRA_OECONF = "-prefix ${prefix} \ + -L ${STAGING_LIBDIR_NATIVE} \ + -I ${STAGING_INCDIR_NATIVE} \ + -qt-libjpeg -qt-gif -system-zlib \ + -no-libjpeg -no-libpng -no-libmng -no-libtiff \ + -no-accessibility \ + -no-cups \ + -no-nas-sound \ + -no-nis -no-openssl \ + -verbose -release \ + -embedded -no-freetype -no-glib -no-iconv \ + -exceptions -xmlpatterns \ + -qt3support" + +# yank default -e, otherwise we get the following error: +# moc_qbuffer.cpp: No such file or directory +EXTRA_OEMAKE = " " + +do_configure() { + (echo o; echo yes) | ./configure ${EXTRA_OECONF} || die "Configuring qt failed. EXTRA_OECONF was ${EXTRA_OECONF}" +} + +TOBUILD = "\ + src/tools/moc \ + src/corelib \ + src/sql \ + src/xml \ + src/network \ + src/tools/uic \ + src/tools/rcc \ + src/xmlpatterns \ + src/dbus \ + src/gui \ + src/testlib \ + src/qt3support \ +" + +do_compile() { + for i in ${TOBUILD}; do + cd ${S}/$i && oe_runmake CC="${CC}" CXX="${CXX}" + done +} + +NATIVE_INSTALL_WORKS = "1" + +do_install() { + for i in ${TOBUILD}; do + cd ${S}/$i && oe_runmake install INSTALL_ROOT=${D} + done +} diff --git a/recipes/qt4/qt4-libs-native_4.7.2.bb b/recipes/qt4/qt4-libs-native_4.7.2.bb new file mode 100644 index 0000000..23c5632 --- /dev/null +++ b/recipes/qt4/qt4-libs-native_4.7.2.bb @@ -0,0 +1,19 @@ +require qt4-libs-native.inc +LICENSE = "LGPLv2.1 GPLv3" + +PR = "${INC_PR}.0" + +# Find the g++.conf/linux.conf in the right directory. +FILESPATHPKG =. "qt-${PV}:" +SRC_URI = "ftp://ftp.trolltech.com/qt/source/qt-everywhere-opensource-src-${PV}.tar.gz \ + file://qt-config.patch \ + file://g++.conf \ + file://linux.conf" +S = "${WORKDIR}/qt-everywhere-opensource-src-${PV}" + +EXTRA_OECONF += " -no-fast -silent -no-rpath" + +TOBUILD := "src/tools/bootstrap ${TOBUILD}" + +SRC_URI[md5sum] = "66b992f5c21145df08c99d21847f4fdb" +SRC_URI[sha256sum] = "d4783b524b90bcd270ccf6e7a30d5fb51696c47eb5de49ebc2d553cd3eb49336" -- 1.7.4.1