packages/qt4/qt4-x11-free, qtopia-core: Move boilerplate lines to a .inc file
authorHolger Freyther <zecke@selfish.org>
Mon, 24 Dec 2007 01:27:26 +0000 (01:27 +0000)
committerHolger Freyther <zecke@selfish.org>
Mon, 24 Dec 2007 01:27:26 +0000 (01:27 +0000)
packages/qt4/qt4-x11-free.inc [new file with mode: 0644]
packages/qt4/qt4-x11-free_4.3.3.bb
packages/qt4/qtopia-core.inc [new file with mode: 0644]
packages/qt4/qtopia-core_4.3.3.bb

diff --git a/packages/qt4/qt4-x11-free.inc b/packages/qt4/qt4-x11-free.inc
new file mode 100644 (file)
index 0000000..3dedb4f
--- /dev/null
@@ -0,0 +1,23 @@
+DESCRIPTION = "Qt is a versatile cross-platform application framework -- this is the X11 version."
+SECTION = "x11/libs"
+PRIORITY = "optional"
+HOMEPAGE = "http://www.trolltech.com"
+LICENSE = "GPL QPL"
+DEPENDS = "pkgconfig-native uicmoc4-native qmake2-native freetype jpeg virtual/libx11 \
+           xft libxext libxrender libxrandr libxcursor dbus openssl"
+PROVIDES = "qt4x11"
+PR = "r6"
+
+SRC_URI = "ftp://ftp.trolltech.com/qt/source/qt-x11-opensource-src-${PV}.tar.gz \
+           file://0001-cross-compile.patch;patch=1 \
+           file://0003-no-tools.patch;patch=1 \
+           file://0004-no-qmake.patch;patch=1 \
+           file://0005-fix-mkspecs.patch;patch=1"
+S = "${WORKDIR}/qt-x11-opensource-src-${PV}"
+
+inherit qmake_base qt4x11
+
+QT_BASE_NAME = "qt4"
+QT_BASE_LIB  = "libqt"
+QT_LIBRARY_NAME = "libQt"
+require qt_packaging.inc
index b52b1c0..b887654 100644 (file)
@@ -1,27 +1,4 @@
-DESCRIPTION = "Qt is a versatile cross-platform application framework -- this is the X11 version."
-SECTION = "x11/libs"
-PRIORITY = "optional"
-HOMEPAGE = "http://www.trolltech.com"
-LICENSE = "GPL QPL"
-DEPENDS = "pkgconfig-native uicmoc4-native qmake2-native freetype jpeg virtual/libx11 \
-           xft libxext libxrender libxrandr libxcursor dbus openssl"
-PROVIDES = "qt4x11"
-PR = "r6"
-
-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://0006-freetype-host-includes.patch;patch=1 \
-           file://0007-openssl-host-includes.patch;patch=1"
-S = "${WORKDIR}/qt-x11-opensource-src-${PV}"
-
 PARALLEL_MAKE = ""
-
-inherit qmake_base qt4x11
-
 export QTDIR = "${S}"
 STAGING_QT_DIR = "${STAGING_DIR}/${TARGET_SYS}/qt4"
 EXTRA_OEMAKE = "-e"
@@ -116,7 +93,9 @@ do_install() {
        rm ${D}${bindir}/rcc ${D}${bindir}/uic ${D}${bindir}/moc
 }
 
-QT_BASE_NAME = "qt4"
-QT_BASE_LIB  = "libqt"
-QT_LIBRARY_NAME = "libQt"
-require qt_packaging.inc
+require qt4-x11-free.inc
+
+SRC_URI += " \
+           file://0002-fix-resinit-declaration.patch;patch=1 \
+           file://0006-freetype-host-includes.patch;patch=1 \
+           file://0007-openssl-host-includes.patch;patch=1 "
diff --git a/packages/qt4/qtopia-core.inc b/packages/qt4/qtopia-core.inc
new file mode 100644 (file)
index 0000000..cf8c0cc
--- /dev/null
@@ -0,0 +1,17 @@
+SUMMARY = "QtopiaCore"
+SECTION = "libs"
+LICENSE = "GPL"
+PRIORITY = "optional"
+HOMEPAGE = "http://www.trolltech.com"
+DEPENDS = "freetype tslib"
+
+SRC_URI = "ftp://ftp.trolltech.com/qt/source/qtopia-core-opensource-src-${PV}.tar.gz \
+           file://linux-oe-qmake.conf"
+S = "${WORKDIR}/qtopia-core-opensource-src-${PV}"
+inherit pkgconfig
+
+
+QT_BASE_NAME = "qtopiacore"
+QT_BASE_LIB  = "libqtopiacore"
+QT_LIBRARY_NAME = "libQt"
+require qt_packaging.inc
index 3e66d9f..d1a811c 100644 (file)
@@ -1,19 +1,3 @@
-SUMMARY = "QtopiaCore"
-SECTION = "libs"
-LICENSE = "GPL"
-PRIORITY = "optional"
-HOMEPAGE = "http://www.trolltech.com"
-DEPENDS = "freetype tslib"
-
-PR = "r0"
-
-SRC_URI = "ftp://ftp.trolltech.com/qt/source/qtopia-core-opensource-src-${PV}.tar.gz \
-           file://linux-oe-qmake.conf"
-
-S = "${WORKDIR}/qtopia-core-opensource-src-${PV}"
-
-inherit pkgconfig
-
 # Qmake gets confused by environment variables, as it builds both HOST
 # and TARGET objects. The correct compiler settings come from the mkspec
 # and are set with the OE_QMAKE_ variables
@@ -148,8 +132,4 @@ do_stage() {
     rm -rf ${STAGE_TEMP}
 }
 
-
-QT_BASE_NAME = "qtopiacore"
-QT_BASE_LIB  = "libqtopiacore"
-QT_LIBRARY_NAME = "libQt"
-require qt_packaging.inc
+require qtopia-core.inc