[oe-commits] org.oe.dev packages/qt4/qt4-x11-free, qtopia-core: Move boilerplate lines to a .inc file

freyther commit openembedded-commits at lists.openembedded.org
Wed Dec 26 12:16:30 UTC 2007


packages/qt4/qt4-x11-free, qtopia-core: Move boilerplate lines to a .inc file

Author: freyther at openembedded.org
Branch: org.openembedded.dev
Revision: ca108ea11c09bb004df93c69ed0092f66cafac87
ViewMTN: http://monotone.openembedded.org/revision/info/ca108ea11c09bb004df93c69ed0092f66cafac87
Files:
1
packages/qt4/qt4-x11-free.inc
packages/qt4/qtopia-core.inc
packages/qt4/qt4-x11-free_4.3.3.bb
packages/qt4/qtopia-core_4.3.3.bb
Diffs:

#
# mt diff -r9261783a88a1b9fb027a40306404e41af5773921 -rca108ea11c09bb004df93c69ed0092f66cafac87
#
# 
# 
# add_file "packages/qt4/qt4-x11-free.inc"
#  content [e556e28503734006548dcdd8fe48621e5e727082]
# 
# add_file "packages/qt4/qtopia-core.inc"
#  content [691a7242f9708191f4b0e19105a1bf90c9dd1728]
# 
# patch "packages/qt4/qt4-x11-free_4.3.3.bb"
#  from [0a70ffaf67de6228ae4ebfa526b0a78b9d7ec5e2]
#    to [58d3f52356899445c4479f629c68d99d58176926]
# 
# patch "packages/qt4/qtopia-core_4.3.3.bb"
#  from [ae734e41040049cb29207dcf9ac7b5ae28e91764]
#    to [d7f1a4086fb76c236836ccc83f0af34b0167d0a9]
# 
============================================================
--- packages/qt4/qt4-x11-free.inc	e556e28503734006548dcdd8fe48621e5e727082
+++ packages/qt4/qt4-x11-free.inc	e556e28503734006548dcdd8fe48621e5e727082
@@ -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
============================================================
--- packages/qt4/qtopia-core.inc	691a7242f9708191f4b0e19105a1bf90c9dd1728
+++ packages/qt4/qtopia-core.inc	691a7242f9708191f4b0e19105a1bf90c9dd1728
@@ -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
============================================================
--- packages/qt4/qt4-x11-free_4.3.3.bb	0a70ffaf67de6228ae4ebfa526b0a78b9d7ec5e2
+++ packages/qt4/qt4-x11-free_4.3.3.bb	58d3f52356899445c4479f629c68d99d58176926
@@ -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
 }
 
+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 "
-QT_BASE_NAME = "qt4"
-QT_BASE_LIB  = "libqt"
-QT_LIBRARY_NAME = "libQt"
-require qt_packaging.inc
============================================================
--- packages/qt4/qtopia-core_4.3.3.bb	ae734e41040049cb29207dcf9ac7b5ae28e91764
+++ packages/qt4/qtopia-core_4.3.3.bb	d7f1a4086fb76c236836ccc83f0af34b0167d0a9
@@ -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}
 }
 
+require qtopia-core.inc
-
-QT_BASE_NAME = "qtopiacore"
-QT_BASE_LIB  = "libqtopiacore"
-QT_LIBRARY_NAME = "libQt"
-require qt_packaging.inc






More information about the Openembedded-commits mailing list