diff options
author | Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> | 2011-10-03 01:46:11 +0400 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-10-04 22:29:23 +0100 |
commit | bad9759cf7092223c12af1b6960563b0f62ae1e4 (patch) | |
tree | 5befe5e6c0e34482b479a4f4a69b295ec93d3e28 /meta/recipes-qt/qt4 | |
parent | 13e659facb76747bc847c569dfc9ba8807ecf068 (diff) | |
download | poky-bad9759cf7092223c12af1b6960563b0f62ae1e4.tar.gz |
qt4: packaging fixup
Improve packaging:
* Add phrasebook packages to DYNAMIC_PACKAGES
* Correct phrasebook packages generation
* Include more files into -dbg packages
* Package fontdir and fonts README.
(From OE-Core rev: 4e3c29dd90f583cafe7a7fc863efb3720096d67b)
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-qt/qt4')
-rw-r--r-- | meta/recipes-qt/qt4/qt4-embedded.inc | 2 | ||||
-rw-r--r-- | meta/recipes-qt/qt4/qt4-x11-free.inc | 2 | ||||
-rw-r--r-- | meta/recipes-qt/qt4/qt4.inc | 13 |
3 files changed, 10 insertions, 7 deletions
diff --git a/meta/recipes-qt/qt4/qt4-embedded.inc b/meta/recipes-qt/qt4/qt4-embedded.inc index 53e1297076..79473c98ff 100644 --- a/meta/recipes-qt/qt4/qt4-embedded.inc +++ b/meta/recipes-qt/qt4/qt4-embedded.inc | |||
@@ -3,7 +3,7 @@ SECTION = "libs" | |||
3 | LICENSE = "LGPLv2.1 | GPLv3" | 3 | LICENSE = "LGPLv2.1 | GPLv3" |
4 | HOMEPAGE = "http://qt.nokia.com" | 4 | HOMEPAGE = "http://qt.nokia.com" |
5 | DEPENDS += "directfb tslib" | 5 | DEPENDS += "directfb tslib" |
6 | INC_PR = "r34" | 6 | INC_PR = "r35" |
7 | 7 | ||
8 | QT_BASE_NAME ?= "qt4-embedded" | 8 | QT_BASE_NAME ?= "qt4-embedded" |
9 | QT_BASE_LIB ?= "libqt-embedded" | 9 | QT_BASE_LIB ?= "libqt-embedded" |
diff --git a/meta/recipes-qt/qt4/qt4-x11-free.inc b/meta/recipes-qt/qt4/qt4-x11-free.inc index f76a97f932..f391028699 100644 --- a/meta/recipes-qt/qt4/qt4-x11-free.inc +++ b/meta/recipes-qt/qt4/qt4-x11-free.inc | |||
@@ -5,7 +5,7 @@ HOMEPAGE = "http://qt.nokia.com" | |||
5 | SECTION = "x11/libs" | 5 | SECTION = "x11/libs" |
6 | DEPENDS += "virtual/libgl virtual/libx11 fontconfig libxft libxext libxrender libxrandr libxcursor" | 6 | DEPENDS += "virtual/libgl virtual/libx11 fontconfig libxft libxext libxrender libxrandr libxcursor" |
7 | 7 | ||
8 | INC_PR = "r31" | 8 | INC_PR = "r32" |
9 | 9 | ||
10 | QT_GLFLAGS ?= "${@base_contains('DISTRO_FEATURES', 'opengl', '-opengl', '-no-opengl', d)} " | 10 | QT_GLFLAGS ?= "${@base_contains('DISTRO_FEATURES', 'opengl', '-opengl', '-no-opengl', d)} " |
11 | QT_GLFLAGS_qemux86 = "-opengl" | 11 | QT_GLFLAGS_qemux86 = "-opengl" |
diff --git a/meta/recipes-qt/qt4/qt4.inc b/meta/recipes-qt/qt4/qt4.inc index eb01a1b759..d6382f56d1 100644 --- a/meta/recipes-qt/qt4/qt4.inc +++ b/meta/recipes-qt/qt4/qt4.inc | |||
@@ -50,7 +50,7 @@ python __anonymous () { | |||
50 | ${libdir}/lib%(name)s${QT_LIBINFIX}.so | 50 | ${libdir}/lib%(name)s${QT_LIBINFIX}.so |
51 | ${includedir}/${QT_DIR_NAME}/%(incname)s | 51 | ${includedir}/${QT_DIR_NAME}/%(incname)s |
52 | ${libdir}/pkgconfig/%(name)s${QT_LIBINFIX}.pc""" % locals(), d) | 52 | ${libdir}/pkgconfig/%(name)s${QT_LIBINFIX}.pc""" % locals(), d) |
53 | bb.data.setVar("FILES_%s-dbg" % pkg, "${libdir}/.debug/lib%(name)s${QT_LIBINFIX}.so.*" % locals(), d) | 53 | bb.data.setVar("FILES_%s-dbg" % pkg, "${libdir}/.debug/lib%(name)s${QT_LIBINFIX}.so*" % locals(), d) |
54 | bb.data.setVar("RRECOMMENDS_%s-dbg" % pkg, "${PN}-dbg", d) | 54 | bb.data.setVar("RRECOMMENDS_%s-dbg" % pkg, "${PN}-dbg", d) |
55 | lib_packages.append(pkg) | 55 | lib_packages.append(pkg) |
56 | dev_packages.append("%s-dev" % pkg) | 56 | dev_packages.append("%s-dev" % pkg) |
@@ -67,7 +67,7 @@ python __anonymous () { | |||
67 | ${libdir}/lib%(name)s.so | 67 | ${libdir}/lib%(name)s.so |
68 | ${includedir}/${QT_DIR_NAME}/%(incname)s | 68 | ${includedir}/${QT_DIR_NAME}/%(incname)s |
69 | ${libdir}/pkgconfig/%(name)s.pc""" % locals(), d) | 69 | ${libdir}/pkgconfig/%(name)s.pc""" % locals(), d) |
70 | bb.data.setVar("FILES_%s-dbg" % pkg, "${libdir}/.debug/lib%(name)s.so.*" % locals(), d) | 70 | bb.data.setVar("FILES_%s-dbg" % pkg, "${libdir}/.debug/lib%(name)s.so*" % locals(), d) |
71 | bb.data.setVar("RRECOMMENDS_%s-dbg" % pkg, "${PN}-dbg", d) | 71 | bb.data.setVar("RRECOMMENDS_%s-dbg" % pkg, "${PN}-dbg", d) |
72 | lib_packages.append(pkg) | 72 | lib_packages.append(pkg) |
73 | dev_packages.append("%s-dev" % pkg) | 73 | dev_packages.append("%s-dev" % pkg) |
@@ -104,7 +104,7 @@ OTHER_PACKAGES = "\ | |||
104 | #We prepend so ${QT_BASE_NAME}-demos-doc comes before ${PN}-doc,so the packaging of FILES_ get done before. | 104 | #We prepend so ${QT_BASE_NAME}-demos-doc comes before ${PN}-doc,so the packaging of FILES_ get done before. |
105 | PACKAGES =+ "${QT_BASE_NAME}-demos-doc" | 105 | PACKAGES =+ "${QT_BASE_NAME}-demos-doc" |
106 | PACKAGES += "${LIB_PACKAGES} ${DEV_PACKAGES} ${DBG_PACKAGES} ${OTHER_PACKAGES}" | 106 | PACKAGES += "${LIB_PACKAGES} ${DEV_PACKAGES} ${DBG_PACKAGES} ${OTHER_PACKAGES}" |
107 | PACKAGES_DYNAMIC = "${QT_BASE_NAME}-plugin-* ${QT_BASE_NAME}-translation-* ${QT_BASE_NAME}-fonts-*" | 107 | PACKAGES_DYNAMIC = "${QT_BASE_NAME}-plugin-* ${QT_BASE_NAME}-translation-* ${QT_BASE_NAME}-phrasebook-* ${QT_BASE_NAME}-fonts-*" |
108 | 108 | ||
109 | ALLOW_EMPTY_${PN} = "1" | 109 | ALLOW_EMPTY_${PN} = "1" |
110 | ALLOW_EMPTY_${QT_BASE_NAME}-fonts = "1" | 110 | ALLOW_EMPTY_${QT_BASE_NAME}-fonts = "1" |
@@ -157,6 +157,7 @@ FILES_${QT_BASE_NAME}-fonts-ttf-dejavu = "${libdir}/fonts/DejaVu*.ttf" | |||
157 | FILES_${QT_BASE_NAME}-fonts-pfa = "${libdir}/fonts/*.pfa" | 157 | FILES_${QT_BASE_NAME}-fonts-pfa = "${libdir}/fonts/*.pfa" |
158 | FILES_${QT_BASE_NAME}-fonts-pfb = "${libdir}/fonts/*.pfb" | 158 | FILES_${QT_BASE_NAME}-fonts-pfb = "${libdir}/fonts/*.pfb" |
159 | FILES_${QT_BASE_NAME}-fonts-qpf = "${libdir}/fonts/*.qpf" | 159 | FILES_${QT_BASE_NAME}-fonts-qpf = "${libdir}/fonts/*.qpf" |
160 | FILES_${QT_BASE_NAME}-fonts = "${libdir}/fonts/README ${libdir}/fonts/fontdir" | ||
160 | FILES_${QT_BASE_NAME}-linguist = "${bindir}/*linguist* ${bindir}/lrelease ${bindir}/lupdate ${bindir}/lconvert ${bindir}/qm2ts" | 161 | FILES_${QT_BASE_NAME}-linguist = "${bindir}/*linguist* ${bindir}/lrelease ${bindir}/lupdate ${bindir}/lconvert ${bindir}/qm2ts" |
161 | FILES_${QT_BASE_NAME}-linguist-dbg = "${bindir}/.debug/*linguist* ${bindir}/.debug/lrelease ${bindir}/.debug/lupdate ${bindir}/.debug/lconvert ${bindir}/.debug/qm2ts" | 162 | FILES_${QT_BASE_NAME}-linguist-dbg = "${bindir}/.debug/*linguist* ${bindir}/.debug/lrelease ${bindir}/.debug/lupdate ${bindir}/.debug/lconvert ${bindir}/.debug/qm2ts" |
162 | FILES_${QT_BASE_NAME}-pixeltool = "${bindir}/pixeltool" | 163 | FILES_${QT_BASE_NAME}-pixeltool = "${bindir}/pixeltool" |
@@ -171,7 +172,7 @@ FILES_${QT_BASE_NAME}-mkspecs = "${datadir}/${QT_DIR_NAME}/mkspecs/ | |||
171 | FILES_${QT_BASE_NAME}-xmlpatterns = "${bindir}/xmlpatterns*" | 172 | FILES_${QT_BASE_NAME}-xmlpatterns = "${bindir}/xmlpatterns*" |
172 | FILES_${QT_BASE_NAME}-xmlpatterns-dbg = "${bindir}/.debug/xmlpatterns*" | 173 | FILES_${QT_BASE_NAME}-xmlpatterns-dbg = "${bindir}/.debug/xmlpatterns*" |
173 | FILES_${QT_BASE_NAME}-qml-plugins = "${libdir}/${QT_DIR_NAME}/imports/* ${libdir}/${QT_DIR_NAME}/plugins/qmltooling/*" | 174 | FILES_${QT_BASE_NAME}-qml-plugins = "${libdir}/${QT_DIR_NAME}/imports/* ${libdir}/${QT_DIR_NAME}/plugins/qmltooling/*" |
174 | FILES_${QT_BASE_NAME}-qml-plugins-dbg = "${libdir}/${QT_DIR_NAME}/imports/*/*/*/.debug/* ${libdir}/${QT_DIR_NAME}/imports/*/.debug" | 175 | FILES_${QT_BASE_NAME}-qml-plugins-dbg = "${libdir}/${QT_DIR_NAME}/imports/*/*/*/.debug/* ${libdir}/${QT_DIR_NAME}/imports/*/.debug ${libdir}/${QT_DIR_NAME}/plugins/qmltooling/.debug" |
175 | 176 | ||
176 | do_configure() { | 177 | do_configure() { |
177 | unset QMAKESPEC | 178 | unset QMAKESPEC |
@@ -233,8 +234,10 @@ python populate_packages_prepend() { | |||
233 | phrasebook_dir = bb.data.expand('${datadir}/${QT_DIR_NAME}/phrasebooks/', d) | 234 | phrasebook_dir = bb.data.expand('${datadir}/${QT_DIR_NAME}/phrasebooks/', d) |
234 | phrasebook_name = bb.data.expand('${QT_BASE_NAME}-phrasebook-%s', d) | 235 | phrasebook_name = bb.data.expand('${QT_BASE_NAME}-phrasebook-%s', d) |
235 | import os; | 236 | import os; |
236 | if os.path.exists(phrasebook_dir): | 237 | if os.path.exists("%s%s" % (bb.data.expand('${D}',d), phrasebook_dir)): |
237 | do_split_packages(d, phrasebook_dir, '^(.*)\.qph$', phrasebook_name, '${PN} phrasebook for %s', extra_depends='' ) | 238 | do_split_packages(d, phrasebook_dir, '^(.*)\.qph$', phrasebook_name, '${PN} phrasebook for %s', extra_depends='' ) |
239 | else: | ||
240 | bb.note("The path does not exist:", bb.data.expand('${D}', d), phrasebook_dir) | ||
238 | 241 | ||
239 | # Package all the plugins and their -dbg version and create a meta package | 242 | # Package all the plugins and their -dbg version and create a meta package |
240 | def qtopia_split(path, name, glob): | 243 | def qtopia_split(path, name, glob): |